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: Detecting the end of installation
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
‎Sep 02, 2007
03:14 PM
Detecting the end of installation
I am starting setup.exe from my autorun.exe via ShellExecute, which is supposed to handle UAC and other stuff. The autorun.exe waits for setup.exe to finish and then starts installed application.
It runs okay from the folder, but when placed in ISO file and mounted, everything changes. In such case, autorun.exe receives info that setup.exe has finished immediately after it's started, so it attempts to run the application while the installation is still in progress.
I suspect that this is because ISO is not writable and setup.exe starts new copy of itself from writable location (e.g. temp folder or something). Unfortunately ,u autorun.exe doesn't have any handle to that process and can't wait for it to finish.
How can I detect that the setup has finished (successfully or not, it doesn't matter)?
It runs okay from the folder, but when placed in ISO file and mounted, everything changes. In such case, autorun.exe receives info that setup.exe has finished immediately after it's started, so it attempts to run the application while the installation is still in progress.
I suspect that this is because ISO is not writable and setup.exe starts new copy of itself from writable location (e.g. temp folder or something). Unfortunately ,u autorun.exe doesn't have any handle to that process and can't wait for it to finish.
How can I detect that the setup has finished (successfully or not, it doesn't matter)?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 17, 2008
08:07 AM
the following can be an approach
http://msdn2.microsoft.com/en-us/library/aa368560(VS.85).aspx
but is there any other event or something by which we can find out the setup finished successfully or not?
http://msdn2.microsoft.com/en-us/library/aa368560(VS.85).aspx
but is there any other event or something by which we can find out the setup finished successfully or not?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 17, 2008
08:46 AM
My solution was to write a file (semafor) at the end of installation to sign that the process over. That worked for me.