Install Hangs During 'Execute Program From Installed Files'
I'm trying to create my first MSI from scratch. It's fairly basic; just installs a couple files to an install directory, creates a HKLM\RUN registry entry, and creates a start menu shortcut. The app is designed to run in the Systray and I'm trying to get it to launch automatically during or after the install completes. I'm trying to use the 'Execute Program From Installed Files' action and it works fine; the app launches to the systray as expected. The problem is that the install hangs at this point and never moves on. If I remove the 'Execute Program' action the install completes normally. I've tried adding the action after InstallFinalize in Execute Immediate and in Execute Deferred but get the same results either way.
BTW, I have enabled logging and checked the Event Logs. No indicators there that I can find.
Any idea what I might be doing wrong?
BTW, I have enabled logging and checked the Event Logs. No indicators there that I can find.
Any idea what I might be doing wrong?
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
michaelnowell
13 years ago
Which tool are you using to create your MSI? I'm assuming that your using Wise from how you described the custom action.
It hanging because the installation is waiting for your exe to complete and report an exit code.
Open up your custom action, select the properties tab and set 'Processing' to 'Asynch, No wait'
It hanging because the installation is waiting for your exe to complete and report an exit code.
Open up your custom action, select the properties tab and set 'Processing' to 'Asynch, No wait'

so that the conversation will remain readable.