Jonathan Kay
05-26-2010, 03:06 AM
Hi,
On my final wizard dialog I have a check box the offers to restart a service when the install completes. Although I have the code (open a wait dialog, stop the service, sleep for a few seconds, start the service and close the wait dialog) I can't seem to get it to run when the 'Finish' button is clicked. If I put the code after the final 'Loop Wizard' it doesn't execute at all, and if I put it in the 'Execute Programs' section it runs before the 'Finish' dialog appears.
I don't want to have to create a separate exe to restart the service. Where must I put my code to do this, or what other changes do I need to make?
TIA,
Jon.
On my final wizard dialog I have a check box the offers to restart a service when the install completes. Although I have the code (open a wait dialog, stop the service, sleep for a few seconds, start the service and close the wait dialog) I can't seem to get it to run when the 'Finish' button is clicked. If I put the code after the final 'Loop Wizard' it doesn't execute at all, and if I put it in the 'Execute Programs' section it runs before the 'Finish' dialog appears.
I don't want to have to create a separate exe to restart the service. Where must I put my code to do this, or what other changes do I need to make?
TIA,
Jon.