Hi,
I have a third party executable that I need to install as pre-req.
The problem I am facing is that this executable reboots in the middle of its execution.
When it tries to shut down (automatically), I am getting the "Force Close Program" window for my Installaware installer (it makes sense because I'm using the Run Program command with the WAIT mode).
How get I install this executable and let it do what it wants without being a problem for my installaware installer ?
Is it possible to solve it ?
Thank you,
Morgane
Reboot in a middle of a 3rd party executable
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Reboot in a middle of a 3rd party executable
Dear Morgane,
as first I suggest you to verify if that third party installer provides any "Delay Reboot" command line switch.
If this is true, you just need to use that switch option with "Run Program".
In the event that the above switch can't be used, unfortunately there are not so many options available.
A- Do not include such 3rd party executable and inform the user about the necessity of that prerequisite to start your installer.
B- Do NOT use "Wait For Program to Finish" flag with Run Program and terminate your installer just after.
In this case inform the user about the necessity to restart your package installer once the 3rd party installation is completed.
NOTE!
It is also possible to use the "RunOnce" technique to automatically start your package at next the Reboot. In this case you should store the "RunOnce" registry key before the 3rd party installation gets executed. However, I do not recommend such possibility ... it can generate problems (unwanted reboot loops), in the event that the 3rd party installation doesn't complete correctly and if your installer checks for the 3rd party Runtime presence at startup.http://msdn.microsoft.com/en-us/library/aa376977(v=vs.85).aspx
Hope this helps you.
Regards
as first I suggest you to verify if that third party installer provides any "Delay Reboot" command line switch.
If this is true, you just need to use that switch option with "Run Program".
In the event that the above switch can't be used, unfortunately there are not so many options available.
A- Do not include such 3rd party executable and inform the user about the necessity of that prerequisite to start your installer.
B- Do NOT use "Wait For Program to Finish" flag with Run Program and terminate your installer just after.
In this case inform the user about the necessity to restart your package installer once the 3rd party installation is completed.
NOTE!
It is also possible to use the "RunOnce" technique to automatically start your package at next the Reboot. In this case you should store the "RunOnce" registry key before the 3rd party installation gets executed. However, I do not recommend such possibility ... it can generate problems (unwanted reboot loops), in the event that the 3rd party installation doesn't complete correctly and if your installer checks for the 3rd party Runtime presence at startup.http://msdn.microsoft.com/en-us/library/aa376977(v=vs.85).aspx
Hope this helps you.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Reboot in a middle of a 3rd party executable
Dear Francesco,
Thank you for your help. I was not able to solve it using Installaware as it does not have any Delay Reboot or other command line arguments.
However, I succeed to do what I wanted by using .bat file where I run the third party library and copy a temp .bat file into the Startup folder that will run my installer.
It's not a very clean solution but it will do the job.
Thanks again,
Morgane
Thank you for your help. I was not able to solve it using Installaware as it does not have any Delay Reboot or other command line arguments.
However, I succeed to do what I wanted by using .bat file where I run the third party library and copy a temp .bat file into the Startup folder that will run my installer.
It's not a very clean solution but it will do the job.
Thanks again,
Morgane
Who is online
Users browsing this forum: No registered users and 138 guests