uninstall help
I need to automate the uninstall of TechneSIS popup. I am trying this:
-------------------------
msiexec /uninstall | /x "Technesis PopUp.msi" | 2DCB1FF7-04E5-47CF-A7AA-73111C5B7E57
But I don't have the syntax or something quite right. Any help?
I also tried this:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery _
("Select * from Win32_Product Where Name = 'technesis popup'")
For Each objSoftware in colSoftware
objSoftware.Uninstall()
Next
------------------------
It ran the uninstaller but did not actually uninstall the program. Plus it ran a popup message that would need to be suppressed.
ThANKS
-------------------------
msiexec /uninstall | /x "Technesis PopUp.msi" | 2DCB1FF7-04E5-47CF-A7AA-73111C5B7E57
But I don't have the syntax or something quite right. Any help?
I also tried this:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery _
("Select * from Win32_Product Where Name = 'technesis popup'")
For Each objSoftware in colSoftware
objSoftware.Uninstall()
Next
------------------------
It ran the uninstaller but did not actually uninstall the program. Plus it ran a popup message that would need to be suppressed.
ThANKS
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
revizor
19 years ago
#1. The popup part...
In the msiexec command line, did you try adding /qb switch?
msiexec.exe /x {guid} /qb
#2. The not removing files part...
Check the package installer with some msi editor tool to see if the installed files are set to remain on the system after uninstallation of the package.
Also, verbous logging will help you troubleshoot msi issues (/Lvoicewarmup option).
In the msiexec command line, did you try adding /qb switch?
msiexec.exe /x {guid} /qb
#2. The not removing files part...
Check the package installer with some msi editor tool to see if the installed files are set to remain on the system after uninstallation of the package.
Also, verbous logging will help you troubleshoot msi issues (/Lvoicewarmup option).
Posted by:
ixoni
19 years ago
Thanks for the info. Interestingly enough, msiexec does not recognize the product or guid as a valid package. However, I discovered that the vb script does work, it just requires a reboot. However, there is the popup message that needs to be suppresed, although looking at the uninstall method, I am not sure that is possible. I'll cross post this to the script forum.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.