cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
USchumacher
Level 3

Installscript custom action aborts setup

Hi all,

i have an installscript function like

export prototype NUMBER Sample();
function Sample()
begin

// do something
return 0;

end;

Now i have created a custom action to call my function with:
Synchronous (Check exit code)
Immediate execution
Always execute

I placed my custom action in Sequences > Installation > Execute after "CostFinalize".

The effect is that my setup aborts. What was wrong?

Thanks a lot
Ulrich
Labels (1)
0 Kudos
(3) Replies
hidenori
Level 17

I think the function signature for InstallScript custom actions needs to be as follows:

export prototype NUMBER Sample(HWND);
function Sample(hMsi)
begin

// do something
return 0;

end;
0 Kudos
USchumacher
Level 3

This works. Thanks a lot!

I am not sure but i think setup.rul needs the include of the custom actions code like
#include "CustomActions.rul"
too.
0 Kudos
rrinblue22
Level 9

#include "CustomActions.rul" is not needed as the custom action setting's drop down will simply list the function which is exported in your setup.rul..........
0 Kudos