Hi,
You need two custom actions one to start the service other to stop it. Schedule a custom actions under the "InstallService" standard action with the "FullPath" edited to:
Schedule the second CA under the "Uninstall" section with the "FullPath" edited to:
Use "Synchronous execution, ignore return code" as "Execution Properties" and "Deferred" as "Execution Option" for both CAs. Use "Romove = ALL" as "Execution Condition" for the second CA. Also you need to create a control operation under the "Services" page in order to start/stop the service on install/uninstall.
Note that I test with Tomcat5 and the service.bat file is located in the bin dir of the apache-tomcat-5.5.17 root dir. Hope this helps.
Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
FOLLOW US
Get the latest news in Application Packaging