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

Trying to Assign Simple CA to Button

I have a dialog button and I want to test out a CA script assigned to it.

In my setup.rul, I have the following:

export function NUMBER ServerDialog

function NUMBER ServerDialog( )
begin
MessageBox("HELLO", INFORMATION);
return 0;
end; //function end


Then in the Custom Actions, I created using the Wizard, I did an InstallScript Action with that function ServerDialog. I named it TestAction

I assigned it to my PushButton1 with "Do Action", TestAction, Condition = 1.

When I push the button in the installer, it takes me to the dialog saying that "Install Shield was Interrupted... rerun setup." Something on that line, and I had to push finish. Basically, I don't know what is happening behind the curtains.

-Pizzaman
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

An InstallScript custom action function wants a particular signature; perhaps try something like:
export prototype ServerDialog(HWND);

function ServerDialog(hInstall)
begin
MessageBox("Made it.", INFORMATION);
return ERROR_SUCCESS;
end;
The InstallShield help on "entry-point functions" should have more information.
0 Kudos
Pizzaman
Level 3

Thanks! That did the trick. The response is kinda slow though, I'd expect it to be a split second response. Oh well.

-Pizzaman
0 Kudos
Christopher_Pai
Level 16

0 Kudos