Return value from Wise Installer Editor
Updated: 21 May 2010 | 1 comment
Hi,
I'm using Wise Installer project (.wsi). I'm calling an exe using 'Execute Program From Installation' action, i want to get the return value of the exe which i'm running. i tried using INSTALL_RESULT but its not working in wsi projects. Is there a way to get the return value of an exe using 'Execute Program From Installation' action?
Thanks for the Help,
Panneer.
discussion Filed Under:
Comments
How do you want to get the return value?
The help file MSI.CHM has a lot of information about custom actions, and their types, plus the return codes - for example the topic "Logging of Action Return Values" describes the numeric values entered into the MSI log (if logging is enabled) for different return scenarios.
If your intention, however, is to handle the return code programmatically, then these "standard" custom actions will not be appropriate. You would still need to have additional code to analyse the exit code of your executed program, so you would find it simpler to use a custom action such as "Run VBScript from Embedded", which would be sequenced in deferred after the installfiles action, and which would execute the EXE that your program installed, handle the return code itself, and take appropriate action if the code indicates a problem - whether that action is to continue after displaying an error message, or roll back, it's entirely up to you.
Should you just leave the native logic in windows installer to handle this, a failed install of the EXE **should** normally result in an exit code which would cause the install to roll back.
If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.
Would you like to reply?
Login or Register to post your comment.