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
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- How can I checheck whether the Windows service was seccessfully started
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
‎Apr 28, 2008
05:22 AM
How can I checheck whether the Windows service was seccessfully started
Hello!
I'm creating a service for my application in the post-install section with the 'execute target' action an then start it with the action 'Start Windows Service' with the option 'wait for the end of the service installation'. How can I check, whether the service was successfully started?
Thanks for any advice
Anna
I'm creating a service for my application in the post-install section with the 'execute target' action an then start it with the action 'Start Windows Service' with the option 'wait for the end of the service installation'. How can I check, whether the service was successfully started?
Thanks for any advice
Anna
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 03, 2008
07:13 AM
In the Post-Install view, add 'Execute Command'action after 'Start Windows Service' action and configure as follows:
Command Line: sc query
Then add 'Show message Dialog' configure it with some message stating 'Service Started Successfully', add 'Compare InstallAnywhere variables' rule to this action and configure as follows:
$EXECUTE_STDOUT$ Contains RUNNING
Where $EXECUTE_STDOUT$ contains the results of the 'Execute Command' action.
Thanks,
vr
Command Line: sc query
Then add 'Show message Dialog' configure it with some message stating 'Service Started Successfully', add 'Compare InstallAnywhere variables' rule to this action and configure as follows:
$EXECUTE_STDOUT$ Contains RUNNING
Where $EXECUTE_STDOUT$ contains the results of the 'Execute Command' action.
Thanks,
vr
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2008
08:58 AM
Thank you,
I've got another advice:
this action writes its results into the IA Variables EXECUTE_EXITCODE, EXECUTE_STDERR and EXECUTE_STDOUT. You can see it when you add action "Output Debug Information" with "Select the data to be output:" to "IA variables" and check the "Output to a file" checkbox
I've got another advice:
this action writes its results into the IA Variables EXECUTE_EXITCODE, EXECUTE_STDERR and EXECUTE_STDOUT. You can see it when you add action "Output Debug Information" with "Select the data to be output:" to "IA variables" and check the "Output to a file" checkbox