How to Run batch file using nsis script?
I have batch file in my project.I have successfully created exe file using nsis script.Final step of installation step is to run the batch file if the user select the check box.I have following code to start the batch file,
!define MUI_FINISHPAGE_RUN net
!define MUI_FINISHPAGE_RUN_PARAMETERS "start servciename"
but the above is not working fine.service is not started.The service has been installed successfully using following code,
Exec "$INSTDIR\batch.bat.
problem:
Before installing batch file Run command has been executed.so the RUN command is not working.so Run command should be executed after installing batch file? How to do this?