I am trying to install a 3rd party software (primalscripttrial.exe) on the remote computer using the local admin previledges. Here is the working code that i have written
***** the connection to WMI is working fine, so I havent mentioned the code for that, because it includes the user credentials.
patch = "C:\primalscripttrial.exe"
strexecute = mid(patch, instrRev((patch), "\")+1)
Set objStartup = objSWbemServices.Get("Win32_ProcessStartup")
Set objConfig = objStartup.SpawnInstance_
objConfig.ShowWindow = 5
Set oprocess = objSWbemServices.Get("Win32_Process")
errReturn = oprocess.Create(Mid(share,1,1) & ":\"& strexecute ,Mid(share,1,1) & ":\"& sTempDir,objConfig,lintprocessID)
The errReturn returns a value = 0, so my code works fine.
But when I go and see the desktop of the remote computer, there is no visible installation window shown.But if i open up the task manager, under processes i see the primalscripttrial.exe process running with 0% memory utilization.
I really would like to see the software installation process visible on the remote computer, Does anybody know how to set it up ?