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)
Please log in to answer
Posted by:
ontari.ontari
12 years ago
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
12 years ago
Posted by:
jagadeish
12 years ago
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 12 years ago
Posted by:
SMal.tmcc
12 years ago