'Script to Install Desktop Central Agent '========================================== 'To install agent with the share path given as argument '=================================================================== Set WSHShell = WScript.CreateObject("WScript.Shell") On Error Resume Next ' Get Location and arguments of the script currdir = WSCript.Arguments.Item(0) agentVersion = WshShell.RegRead("HKEY_LOCAL_MACHINE\Software\AdventNet\DesktopCentral\DCAgent\DCAgentVersion") if Err Then Err.Clear wshshell.Run "msiexec.exe /i """&currdir&""" ENABLESILENT=yes REBOOT=ReallySuppress /qn",0,True End If