I'm trying to run msiexec.exe using a script within the installer.
Function installer()
dim action
dim version64
dim removeAction
version64 = Session.Property("VersionNT64")
removeAction = Session.Property("REMOVE")
if removeAction <>"" then
action = "msiexec.exe /qn /uninstall " & chr(34) & Session.Property("APPDIR") & "64BitModules.msi" & chr(34)
else
action = "msiexec.exe /qn /i " & chr(34) & Session.Property("APPDIR") & "64BitModules.msi" & chr(34)
end if
MsgBox(action)
set Wsh = CreateObject("WScript.Shell")
'If the machine uses Windows 64bits
If version64 <>"" then
Wsh.Run action,1,false
End If
End Function
When I'm installing I'm doing it in the step Install IIS and everything is working fine, but when uninstalling I'm doing it in the stopsservices step and the msiexec.exe simply will not execute although it still exist in the install directory. Should I do the uninstall in a different step? is there a problem executing the msiexec while the installer is running?
Thank you
FOLLOW US
Get the latest news in Application Packaging