Hi,
How we can identify that installation is failed, are we having any action/condition based on that we can find that install is failed or
canceled.
Thanx,
Sumit
This depends on where do you need this error code. In C++ you would use the "GetExitCodeProcess" API function. In a batch file you would use the %ERRORLEVEL% dynamic environment variable (available for WinNT OSs) or use a conditional command as follows:I want to know how we can read the error code returned by msiexec.
Code: Select all
IF ERRORLEVEL 0 GOTO SUCCESSThe EXE bootstrapper generated by AI creates only a single "msiexec" process. However, Windows Installer runs a service when the Execute Sequence is processed and several "msiexec" instances are created due to the way Custom Actions are executed.Another doubt is that installer exe generated by advanced installer project spawns more than one msiexec.
Code: Select all
sSource = "http://localhost:8080/moneycenter%2Finstalls%2Fcsd%2Fhttp%253A%252F%252Flocalhost%253A8080%252Fmoneycenter_70_do%2FMoneyCenter_LoginHelperunicode.exe"
sDest = "C:\installer.exe"
msgbox "test"
set oHTTP = CreateObject("MSXML2.ServerXMLHTTP")
set oStream = createobject("adodb.stream")
oStream.type = 1
msgbox "test1"
oHTTP.open "GET", sSource, False
oHTTP.send
msgbox "test2"
oStream.open
oStream.write oHTTP.responseBody
oStream.savetofile sDest,2
Set oShell = CreateObject("WScript.Shell")
intRetVal = oShell.Run(sDest,1,True) [/color]
msgbox "error code " & intRetVal
FOLLOW US
Get the latest news in Application Packaging