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

Installshield 2009 Basic MSI setup

Setup is installed on Windows 7. Setup has script to invoke exe at the end of installation. Sometimes, exe is popped up and sometimes, it is not popped up.

Administrator privileges are there for the System where setup is run.

Can any one help in this issue. why it behaves differently each time?

Thanks in advance
lalitha
Labels (1)
0 Kudos
(5) Replies
MSIYER
Level 8

Where exactly are you invoking the exe?
i.e., the point of invocation in the sequence?
0 Kudos
lalitha
Level 3

My function has two statements:

1. LaunchAppAndWait - to call required exe
2. Function to reboot the system

Custom action is created and is linked with the above function.

This custom action is called in "Finish" event of "SetupcompleteSuccess" dialog. Just before the exit dialog, i am calling custom action.


As I said earlier, sometimes exe is popped and system reboot dialog is displayed. Sometimes, it skips calling exe and only system reboot dialog appears.

Any solution ?
0 Kudos
MSIYER
Level 8

Check the parameters that you pass to LaunchAppAndWait.
0 Kudos
lalitha
Level 3

I have used:
LaunchAppAndWait(Exefilename,"",LAAW_OPTION_WAIT);
0 Kudos
MSIYER
Level 8

Use the return value of LaunchAppAndWait to check if the call was successful.

Also, use the LAAW_PARAMETERS system variable's nLaunchResult to see if the exe you launched exited properly.

This will help you narrow down the problem.
0 Kudos