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

Comments

Please log in to comment

Answers

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

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

Please log in to comment
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.

Answered 08/08/2012 by: piyushnasa
Red Belt

Please log in to comment
0

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(_
    "{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
Please log in to comment
-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)

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

Please log in to comment
Answer this question or Comment on this question for clarity

Share