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





0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



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 



Answered 08/08/2012 by: ontari.ontari
Black Belt

Please log in to comment

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.

Answered 08/08/2012 by: piyushnasa
Red Belt

Please log in to comment

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

Answered 08/08/2012 by: jagadeish
Red Belt

  • 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(_

    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


    Function RegEntryExists(theEntry)
    On Error Resume Next

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

    Set objShell = Nothing

Please log in to comment

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)

Answered 08/08/2012 by: SMal.tmcc
Red Belt

Please log in to comment