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: Installscript custom action aborts setup
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
‎Nov 09, 2011
05:54 AM
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
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
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 09, 2011
02:22 PM
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;
export prototype NUMBER Sample(HWND);
function Sample(hMsi)
begin
// do something
return 0;
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2011
05:14 AM
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.
I am not sure but i think setup.rul needs the include of the custom actions code like
#include "CustomActions.rul"
too.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 13, 2011
12:10 PM
#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..........