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
- :
- Cannot get Custom Action to execute.
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
‎Aug 11, 2010
10:58 AM
Cannot get Custom Action to execute.
I did the custome action to try to get an InstallScript function to delete a directory.
I used the DeleteDir function example in the help but cannot get this to run during install.
I put a message box in it and it doesn't show either.
So I put message box in MyFunction(hMSI) and it didn't run either. What is going on with this?
I have
Function name : MyFunction.
Type: Run INstallScript Code
Source: MyFunction
Synchronous (Check exit code)
In-Script Execution: Immediate Execution
Execution Scheduling: Always Execute
Install UI Sequence:
Install Execute Sequence:
Setting wrong? or missing something?
I used the DeleteDir function example in the help but cannot get this to run during install.
I put a message box in it and it doesn't show either.
So I put message box in MyFunction(hMSI) and it didn't run either. What is going on with this?
I have
Function name : MyFunction.
Type: Run INstallScript Code
Source: MyFunction
Synchronous (Check exit code)
In-Script Execution: Immediate Execution
Execution Scheduling: Always Execute
Install UI Sequence:
Install Execute Sequence:
Setting wrong? or missing something?
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2010
11:15 AM
You need to sequence the action in either the Install UI Sequence or Install Execute Sequence. The both settings are currently set to "".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2010
11:31 AM
hidenori wrote:
You need to sequence the action in either the Install UI Sequence or Install Execute Sequence. The both settings are currently set to "".
I have no idea what each of these choices and selections are but
I selected these to:
After InstalWelcome
After InstallInitialize
After Install Initialize
After SEtupInitialization
After INstallInitialze
and still, no message box. Can anbody give an example of how to show a message box in a custom action??
I would think this is very basic to do but the Custom Actions wizzard seems way too complicated.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2010
11:32 AM
How do you Custom action this??
function MyFunction(hMSI)
// To Do: Declare local variables.
begin
MessageBox("test", INFORMATION);
// To Do: Write script that will be executed when MyFunction is called.
end;
function MyFunction(hMSI)
// To Do: Declare local variables.
begin
MessageBox("test", INFORMATION);
// To Do: Write script that will be executed when MyFunction is called.
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2010
12:50 PM
Try sequencing "After CostFinalize" in the Install UI Sequence and see if the message box is poped up.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 11, 2010
02:08 PM
I finally got it with After SetupInitialization.
thanks.
thanks.