/build/static/layout/Breadcrumb_cap_w.png

Uninstall an Nested MSI on Installshield 11.5

Hello,

can anyone tell me how to uninstall an nested MSI ? I can uninstall the Main-MSI but the Nested always
is installed...

Thanks

Joe

 

 


0 Comments   [ + ] Show comments

Answers (4)

Posted by: ontari.ontari 11 years ago
Black Belt
1

could you provide the application name that you are trying to uninstall?? for this type of applications usually If I uninstall main msi it will automatically uninstalls the nested msi's in it [For example Nero software] 

Otherwise as Jagadiesh mantioned above you can use the vbscript/batch script 

 

Thanks

Posted by: piyushnasa 11 years ago
Red Belt
1

MSI give you the functionality via Custom Action to Install and uninstall MSI. In the command line mention /x instead of /i when you want to uninstall a nested MSI.

However, I would not recommend a nested MSI install or uninstall because most of the times it gives issue.

Posted by: jagadeish 11 years ago
Red Belt
0

You can write a VBScript / Batch Script which will uninstall them one by one as per uninstallation order using {ProductCode}


Comments:
  • Option Explicit

    'On Error Resume Next

    Dim objshell,UnInstallKeys, Key, ProgramFiles, theEntry, Entry, X

    Set objShell = CreateObject("WScript.Shell")
    ProgramFiles = objShell.ExpandEnvironmentStrings("%ProgramFiles%")

    UninstallKeys = Array(_
    "{ProductCode}",_
    "{ProductCode}",_
    "{ProductCode}",_
    "{ProductCode}")


    For X = 0 to Ubound(UninstallKeys)

    Key="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & UninstallKeys(X) & "\"


    If RegEntryExists(Key) Then

    objShell.Run "msiexec /x " & UninstallKeys(X) & " /qb!", 1, True

    End If


    Next



    Function RegEntryExists(theEntry)
    On Error Resume Next

    Entry = objShell.RegRead(theEntry)
    If Err.Number <> 0 Then
    Err.Clear
    RegEntryExists = FALSE
    Else
    Err.Clear
    RegEntryExists = TRUE
    End If
    End Function

    Set objShell = Nothing

    WScript.Quit - jagadeish 11 years ago
Posted by: SMal.tmcc 11 years ago
Red Belt
-2

See if you can located the nested msi in c:\windows\installer and use it to call a second uninstall.  (if you add subject and author to the columns it usually will show the vendor)

 
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