I have successfully created exe file using NSIS.I have installed my application as windows service using following code:
Exec "$INSTDIR\bin\batch.bat"
I have checked this path
Start Menu -> Control Panel -> Administrative Tools -> Services.
My service name successfully installed. Final step of my installation process start the application using following code:
!define MUI_FINISHPAGE_RUN net start servicename
But this code did not working well.If i select the checkbox it does not start the services.
My scenario is:
Final step of my installation process is, I have one checkbox.If the user select checkbox then the service started immediately.else dont start the service.but both the cases the service must be installed.How to solve this? How to start the service using nsis scrit?