This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- How do I query for an EXE Action return code
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 11, 2016
09:17 AM
How do I query for an EXE Action return code
Hello,
I'm working on Advanced UI\Suite project in InstallShield 2015. I need to run an executable and test the return code I got from it.
I created an action with ignore, abort and reboot codes and I see them in the debug log, but I couldn't find where it is being saved and how to question it in a condition.
Thanks,
Alex
I'm working on Advanced UI\Suite project in InstallShield 2015. I need to run an executable and test the return code I got from it.
I created an action with ignore, abort and reboot codes and I see them in the debug log, but I couldn't find where it is being saved and how to question it in a condition.
Thanks,
Alex
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 16, 2016
01:26 PM
If you set the Return Processing on your Custom Action to either
Asynchronous (Wait for exit code)
or
Synchronous (Check exit code)
Then it does one thing. It will check each custom action return code for a value of 1. To it, 1 indicates success and any other value is a failure.
To check the exact value of the return code you might want to look at calling your EXE from InstallScript or some other language. If you used InstallScript then you can run your EXE by using LaunchAppAndWait() function which allows you to do error handling on the function.
See here for more info.
http://helpnet.installshield.com/installshield22helplib/Subsystems/installshield22langref/helplibrary/LangrefLaunchAppAndWait_example.htm
Chad
Asynchronous (Wait for exit code)
or
Synchronous (Check exit code)
Then it does one thing. It will check each custom action return code for a value of 1. To it, 1 indicates success and any other value is a failure.
To check the exact value of the return code you might want to look at calling your EXE from InstallScript or some other language. If you used InstallScript then you can run your EXE by using LaunchAppAndWait() function which allows you to do error handling on the function.
See here for more info.
http://helpnet.installshield.com/installshield22helplib/Subsystems/installshield22langref/helplibrary/LangrefLaunchAppAndWait_example.htm
Chad