/build/static/layout/Breadcrumb_cap_w.png

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?

1 Comment   [ + ] Show comment
  • You can try to add '-s' to the command line to make it silent. If this doesn't help you can try to create a reponse file (run this command line with -r switch) and then run the removal with created .iss file.

    http://www.itninja.com/blog/view/installshield-setup-silent-installation-switches - rad33k 8 years ago

Answers (1)

Posted by: rajumaddu 8 years ago
White Belt
1
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
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ