Hello everybody! Recently I started to build a msi file with WIX so far so good. My last activity was to integrate a vbs script in msi package. This was no problem. But now I have one problem how can I implement an error handling in msi? Example I have this code which start the Main.vbs <CustomAction Id="CA1" Script="vbscript" Execute="deferred"><![CDATA[ Dim properties Set objShell = CreateObject("WScript.Shell") properties = Split(Session.Property("CustomActionData"), ";", -1, 1) MsgBox properties(0) & ", " & properties(1) objshell.Run cscript & "D:\Main.vbs " & properties(0) & " " & properties(1),0,true ]]></CustomAction> <CustomAction Id="SetProperty" Property="CA1" Value="[VERSION];[LOGFILE]" /> <InstallExecuteSequence> <Custom Action="SetProperty" Before="InstallInitialize">Not Installed</Custom> <Custom Action="CA1" Before="InstallFinalize">Not Installed</Custom> </InstallExecuteSequence>
The Main.vbs has only one line WScript.Quit(-1) After the installation I try to control ERRORLEVEL in cmd Echo %ERRORLEVEL% so the result is 0 (Null) why??? How can I get the errorlevel from vbs script? Thank folks! -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users