skr
skr

Reputation: 1811

How can i get Inno setup uninstaller script to remove a service

I have a created a installer using inno setup.This setup install my application as a service .when i am trying to uninstall my application it deletes the folder but i just want it to first search for a particular service and remove it and then procede to delete.

Upvotes: 2

Views: 3535

Answers (1)

AAzami
AAzami

Reputation: 406

If I recall correctly you can remove a service in by

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

Upvotes: 5

Related Questions