I need to install and run a service when install an application (installer.exe is created using Inno Setup)
I used codes below
[Run]
Filename:"{sys}\myservice.exe "; Parameters: "-install"
I am not sure if this is correct
(I add codes to reminder reboot but I wonder if it is possible to run the service immediately after installation without reboot pc.)
[Setup]
AlwaysRestart=yes
Welcome any comment.
PS: don't install your service in any of the Windows systems folder. They should be regarded as Windows private folders. Unless you have very, very good reasons to write there (i.e. drivers), you should never install software there. Install it in your application folders.