Forum Discussion
Dmitry_Nikolaev
14 years agoStaff
Hi 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?
Related Content
- 3 years ago
- 6 months ago
Recent Discussions
- 2 hours ago
- 6 hours ago