inno add exe in service 1

inno add exe in service

[run]
Filename: {sys}\sc.exe; Parameters: "create mysrv start= auto binPath= ""{app}\mysrv.exe""" ; Flags: runhidden

[UninstallRun]
Filename: {sys}\sc.exe; Parameters: "stop mysrv" ; Flags: runhidden
Filename: {sys}\sc.exe; Parameters: "delete mysrv" ; Flags: runhidden

Here is what the above code is Doing:
1. The [Setup] section defines the name of the installer, the output directory, and the default installation directory.
2. The [Files] section defines the files to be installed.
3. The [Run] section defines the commands to be executed after the installation is complete.
4. The [UninstallRun] section defines the commands to be executed after the uninstallation is complete.

The above code is saved as a .iss file.

To create the installer, run the following command:

iscc mysrv.iss

The above command will create the installer in the same directory as the .iss file.

To install the service, run the installer.

To uninstall the service, run the uninstaller.

To start the service, run the following command:

sc start mysrv

To stop the service, run the following command:

sc stop mysrv

To delete the service, run the following command:

sc delete mysrv

To view the status of the service, run the following command:

sc query mysrv

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %windir%\system32\LogFiles\svchost.log

To view the log of the service, run the following command:

type %wind

Similar Posts