smljoju
Posts: 41
Joined: Fri Jun 27, 2014 1:36 pm

Run exe after post-install prerequisite done

Using this guide I tried to run installed after after install (http://www.advancedinstaller.com/user-g ... ation.html) but issue is that CustomAction executes prior to Post-Install prerequisite end. So what I need to happen is that:

Post-Install prerequisite start
Post-Install prerequisite end
Run exe (CustomAction)

Note that there is no ExitDialog in this case
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Run exe after post-install prerequisite done

Hello,

Please note that you can also add the EXE as a post-install prerequisite, under the existing one. This way, you will know for sure that it will run after the existing prerequisite.

Let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
smljoju
Posts: 41
Joined: Fri Jun 27, 2014 1:36 pm

Re: Run exe after post-install prerequisite done

ok, so is this the only solution in this case? It cannot be a custom action?
smljoju
Posts: 41
Joined: Fri Jun 27, 2014 1:36 pm

Re: Run exe after post-install prerequisite done

And also is there a way to only run the prerequisite on silent install?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Run exe after post-install prerequisite done

Hello,
ok, so is this the only solution in this case? It cannot be a custom action?
Please note that you can run the related .EXE after a post-install prerequisite. Just make sure you schedule the custom action that launch the .EXE file after the Finish Execution stage from the Wizard Dialogs Stage.
And also is there a way to only run the prerequisite on silent install?
I'm not sure I fully understand your scenario. Can you please give us more details?

If you want to install silent a prerequisite, then you can through the Install Command Lines section from the Prerequisite Setup Tab you can add optional command lines for launching the prerequisite under different UI environments.
For details, please check the How can I install silent a prerequisite? article.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
smljoju
Posts: 41
Joined: Fri Jun 27, 2014 1:36 pm

Re: Run exe after post-install prerequisite done

Please note that you can run the related .EXE after a post-install prerequisite. Just make sure you schedule the custom action that launch the .EXE file after the Finish Execution stage from the Wizard Dialogs Stage.
I have already tried this, this works without issues when NOT doing silent install, issue with silent install is that Finish Execution stage is triggered even before post-install prerequisite installation is completed. I even tried adding custom action to run exe AFTER InstallFinalize stage and still same issue
And also is there a way to only run the prerequisite on silent install?
I'm not sure I fully understand your scenario. Can you please give us more details?
Ok, I'll explain. I only want to run exe WHEN doing silent install, so yes I can run related EXE after a post install so now how do I know that installer is running on silent install? again I need to know this because I only want to run exe WHEN doing silent install. And one more thing related to this, how can I run exe found in install path as prerequisite? - All of these can be done using custom action but there is also issue with custom action as I mentioned in previous paragraph
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Run exe after post-install prerequisite done

Hello,
I need to know this because I only want to run exe WHEN doing silent install.
The installer sets the UILevel property to the level of the user interface.

For post-install prerequisites we have an .EXE custom action, asynchronous execution which is launched after the install execute state from the main package ends. We do this because for silent installation there is no UI sequence, so we cannot schedule a custom action to be executed before install execute sequence starts.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”