qwertyuiop
Posts: 35
Joined: Wed Dec 12, 2012 6:05 am

service installation

Hi,

I need to pass the batch file while start and stop of service since it is required for my application.it is possible to do with installer.

Thanks,
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: service installation

Hello,

If you want to pass the related batch file as a service parameter when the service starts, then you can add the batch file in "Files and Folders" page and set the "Arguments" field, from "Services -> Service Properties" right pane, like this:

Code: Select all

[#MyFile.bat]
Let us know if this helps, otherwise please give us more details about your scenario (maybe exemplify).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
qwertyuiop
Posts: 35
Joined: Wed Dec 12, 2012 6:05 am

Re: service installation

Hi,


I had created the service and downloaded the java service example.jar file from the URL :http://www.advancedinstaller.com/user-g ... rvice.html.

Service started successfully at end.My application has to call the batch file which contains "taskkill/javaw.exe/F" when i try to stop the service through control panel->administrative tool->services.

while pressing the stop in services the application placed in trayicon need to stop.For that i need to call the batch file during stop the services through control panel.

The solution given by you is not calling the batch file while stopping the service.Any other way to do so.

Thanks
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: service installation

Hello,

I'm afraid we don't have support for this. However, in order to achieve what you want you can try to develop your own custom action in order to achieve what you want.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”