Managed Installations - Uninstall
I copied the uninstall command from the software record:
RunDll32 C:\PROGRA~2\COMMON~1\INSTAL~1\PROFES~1\RunTime\11\00\Intel32\Ctor.dll,LaunchSetup "C:\Program Files (x86)\InstallShield Installation Information\{E1020C75-AA99-4740-9B3F-8273D76C413A}\setup.exe" -l0x9 -removeonly
I tried running that command right on the computer and it worked but it required me to click YES. Do you have any idea if i can add a parameter to make it silent, or to send a 'y' when it runs?
RunDll32 C:\PROGRA~2\COMMON~1\INSTAL~1\PROFES~1\RunTime\11\00\Intel32\Ctor.dll,LaunchSetup "C:\Program Files (x86)\InstallShield Installation Information\{E1020C75-AA99-4740-9B3F-8273D76C413A}\setup.exe" -l0x9 -removeonly
I tried running that command right on the computer and it worked but it required me to click YES. Do you have any idea if i can add a parameter to make it silent, or to send a 'y' when it runs?
1 Comment
[ + ] Show comment
Answers (1)
Please log in to answer
Posted by:
rajumaddu
8 years ago
Can you tell me the entry of the software in "Programs and Features"? So that I can give you a script to uninstall any software by using that entry.
save the below script as .vbs file after changed the underlined name by your software name.
On Error Resume Next
const AppName = "VLC media player"
const HKEY_LOCAL_MACHINE = &H80000002
Set WshShell = WScript.CreateObject("WScript.Shell")
'First, find the GUID
strComputer = "."
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\"&_
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
For Each subkey In arrSubKeys
InstalledAppName = ""
InstalledAppName = WshShell.RegRead("HKLM\" & strKeyPath & "\" & subkey & "\DisplayName")
If InStr(InstalledAppName, AppName) > 0 then
RawGUID = ""
GUID = ""
RawGUID = WshShell.RegRead("HKLM\" & strKeyPath & "\" & subkey & "\UninstallString")
GUID = Mid(RawGUID, instr(RawGUID, "{"), 38)
If GUID<>"" then
' Found matching GUID, Uninstalling...
WshShell.Run "msiexec /x " & GUID & " /qn"
Exit For
End If
End If
Next
Comments:
-
Wow. Thanks. I will give it a try - jfrasier 8 years ago
http://www.itninja.com/blog/view/installshield-setup-silent-installation-switches - rad33k 8 years ago