Reputation: 1811
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
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