Silently Uninstalling Epson Drivers through Sccm Deployment
Just wondering if someone can help with an issue I have encountered trying to uninstall Epson software silently via a script. I have an upgrade approaching and need to completely uninstall these drivers automatically. First I tried the following vbscript:
On Error Resume Next
Dim strComputer
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery("Select * from Win32_Product Where Name LIKE 'EPSON%'")
For Each objSoftware In colSoftware
objSoftware.Uninstall()
wscript.echo "Uninstalling: " & objSoftware.Name
Next
This did work for only one of the four installed epson softwares (The one that via: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall was an msi), the other uninstall strings were listed as setup files in the InstallShield Installation Information directory. I tried these strings directly through a command prompt using different switch combinations (-runfromtemp -l0x0009 -removeonly /s /sms /silent /verysilent). I cannot seem to get them to uninstall.
Any suggestions on any other methods I could try to get these applications uninstalled completely?
3 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
dedenker
9 years ago
You can check in registry at:
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\
Search the GUID's for your software, then the UninstallString row can be used for uninstalling.
Or you can put together a nice script that goes over this, search in the DisplayName then read and execute the UninstallString.
Using the Win32_Products very buggy and can also trigger reinstallation of other software.
There are multiple articles on this matter.
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\
Search the GUID's for your software, then the UninstallString row can be used for uninstalling.
Or you can put together a nice script that goes over this, search in the DisplayName then read and execute the UninstallString.
Using the Win32_Products very buggy and can also trigger reinstallation of other software.
There are multiple articles on this matter.
Comments:
-
I have tried running the exact uninstall string from that location but it still requires user intervention to confirm the uninstallation. The issue is that I want to uninstall them silently without needed user intervention and therefore be able to script this and run via a package and deploy to multiple systems to automate the task. - NewSccmAdmin 9 years ago
-
I see, some office appliation have the same problem.
The solution I use there is AutoIT, with this you can create scripts that can take over these "user actions". - dedenker 9 years ago
http://www.itninja.com/blog/view/installshield-setup-silent-installation-switches - rad33k 9 years ago