- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Deferred custom action
- 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
Deferred custom action
Hi,
I'm new to InstallShield so this may be a silly question.
I have a custom action running as deferred execution. How can I indicate failure to InstallShield so that it displays the "SetupCompleteError" dialog and not the "SetupCompleteSuccess" dialog? The custom action type is standard DLL.
regards
Kenneth
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Within your custom action settings set the "Return Processing" value to either:
Asynchronous (Wait for exit code)
or
Synchronous (Check exit code)
These values will check the return code of the custom action. If the return code is 1 then it indicates success anything else is a failure and would result in the installation also failing.
Hope this helps,
Stuart
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi,
I have Synchronous (Check exit code) selected for return processing. The dll function is declared as (written in C)
__declspec(dllexport) UINT __stdcall MyFunc(MSIHANDLE Handle)
in InstallShield
NUMBER=[InstallResult] MyDll::MyFunc(in HANDLE=MsiHandle)
Doesn't matter if I return 0 , 1 or any other value I always get the "SetupCompleteSuccess" dialog.
Regards
Kenneth