Hello,
My setupscript installs en starts a service in de Windows Service controller.
All is done in Pascal scripting. Works like a charm.
Now i need the uninstaller to work as follows:
If service is installed and
can be stopped and
can be uninstalled from the ServiceControler
then continue uninstall. (Remove files)
otherwise
abort the uninstall with a message
end
How to do this for the uninstaller only.
In other words: Where to put the code below?
var lDone: Boolean;
lDone := false
If IsServiceInstalled('{ServiceId}') then begin
If IsServiceStop('{ServiceId}') then begin
If ServiceRemove('{ServiceId}') then begin ;
lDone := true;
end;
end;
End;
Return
Regards,
Jack Duijf