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
- :
- Re: Custom action return value from an exe file?
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
‎Feb 25, 2008
02:38 PM
Custom action return value from an exe file?
The ISE2008 user guide notes that use can be made of the return values from DLL files called in custom actions -
"When a non-zero value is returned by your function, the installation continues. If zero is returned, the installation exits. "
Is it possible to make use of return values from EXE files. I experimented and found a return of '0' was expected and any other value caused an error 1722 to be displayed. After a further notice screen, the installation process was then terminated.
Is there a better way? Can the 1722 error message be disabled?
Thank you in advance for any guidance.
"When a non-zero value is returned by your function, the installation continues. If zero is returned, the installation exits. "
Is it possible to make use of return values from EXE files. I experimented and found a return of '0' was expected and any other value caused an error 1722 to be displayed. After a further notice screen, the installation process was then terminated.
Is there a better way? Can the 1722 error message be disabled?
Thank you in advance for any guidance.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 26, 2008
09:45 AM
The 1722 error on non-zero return values from EXE files is MSI behavior. You can disable this by selecting "Ignore Exit Code" on your custom action, but you cannot change what value indicates a failure.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 26, 2008
02:19 PM
Michael,
Thank you for your prompt answer.
David
Thank you for your prompt answer.
David