Forum Discussion
Dmitry_Nikolaev
Staff
14 years agoHi Audrey,
Have you succeeded in automating the installation process?
Also, in addition to answering Alexei's questions, please follow the steps below:
1. Check whether your software is on the list of products installed with Windows Installer. To do this, execute the following command prompt:
wmic product get name
If the application is on the list, proceed to the next step.
2. Execute the following code:
computerName = "mykul009647w"
applicationName = "MYOB EXO Business"
Set wmiService = GetObject("WinMgmts:{impersonationLevel=impersonate}!\\" & computerName & "\root\cimv2")
Set objectsList = wmiService.ExecQuery("SELECT * FROM Win32_Product " & "WHERE Name='" & applicationName & "'")
Log.Message(objectsList.Count)
What result do you get in the log?
3. Execute the following code:
computerName = "mykul009647w"
applicationName = "MYOB EXO Business"
Set wmiService = GetObject("WinMgmts:{impersonationLevel=impersonate}!\\" & computerName & "\root\cimv2")
Set objectsList = wmiService.ExecQuery("SELECT * FROM Win32_Product WHERE Name='" & applicationName & "'",,0)
Log.Message(Err.Number)
What result do you get in the log?