cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ajecooy
Level 2

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

Labels (1)
0 Kudos
2 Replies
shunt
Revenera Moderator Revenera Moderator
Revenera Moderator

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

0 Kudos

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

0 Kudos