Removing a Windows Service not working when uninstalling
Posted: Mon Jun 18, 2007 4:41 pm
Hi,
I am installing a Windows Service and when running uninstall to remove the application, the service is not being removed from the Services Panel.
Can anybody tell me what am I doing wrong here:
When the above code run, I expect the service to be removed from the Services Panel, but it is not happening.
Thanks!
I am installing a Windows Service and when running uninstall to remove the application, the service is not being removed from the Services Panel.
Can anybody tell me what am I doing wrong here:
Code: Select all
[DEFINE REGION: Perform Uninstallation]
if Variable REMOVE Equals TRUE
Comment: Uninstall product
Comment: TO-DO: Insert any additional uninstall commands here
Apply Uninstall (get result into variable SUCCESS)
if Variable SUCCESS not Equals ERROR
if Variable SUCCESS not Equals CANCEL
Run Program $BootDrive$\\Progytech\\ezCallTrack\\cdrServer\\R2.bat (WAIT)
Terminate Program
Control Service ezCallTrack_Service: stop and delete on uninstall [wait for completion]
end
end
Set Variable PROGRESS to 100
END REGION
Code: Select all
~InstallAware Clipboard Data~
~Code Folding Region~
~{21EA8D3E-4D4F-48A9-A9A3-36FD1838CED9}~
~FALSE~
~~
~Else~
~{C0B5F0A1-FC97-401C-98E0-ECD9B4EB1B3A}~
~Set Variable~
~{2E82A4FB-4008-4C0B-88CA-1BAAAFAD28D5}~
~PROGRESS~
~100~
~End~
~{96BC4C1C-B51E-468E-9E34-C9AADA6E61E0}~
~End~
~{A9E53720-DADB-49D7-9F1F-A1C1483DFC93}~
~Control Service~
~{5FFBC9CE-A277-4033-BEDE-80D68AD058D7}~
~ezCallTrack_Service~
~~
~5~
~2~
~TRUE~
~Terminate Program~
~{F33BC218-A452-4D0B-8F1E-55E61E79C71B}~
~~
~CDRServerLib.WinServiceProcessing~
~Run Program~
~{5EB2D5A5-C49B-4093-82E9-EAAB5E7DE6D7}~
~$BootDrive$\\Progytech\\ezCallTrack\\cdrServer\\R2.bat~
~TRUE~
~~
~TRUE~
~~
~Run Program~
~{3E7C0B38-F0D1-4049-AA1C-2AE896295D51}~
~$BootDrive$\\Progytech\\ezCallTrack\\cdrServer\\RegAsm.exe~
~TRUE~
~$BootDrive$\\Progytech\\ezCallTrack\\cdrServer\\CDRcryptolib.dll" /silent /unregister~
~TRUE~
~~
~If~
~{B83A0853-7592-49DE-A579-CFF59889F876}~
~SUCCESS~
~0~
~CANCEL~
~TRUE~
~If~
~{EA2F5773-EB22-48FC-BA35-9BED5409EAF1}~
~SUCCESS~
~0~
~ERROR~
~TRUE~
~Apply Changes~
~{D59A2781-84C4-49C3-A728-1C037223C379}~
~progress~
~SUCCESS~
~FALSE~
~TRUE~
~Comment~
~{F69F7142-0D77-4690-98FD-9EF1F40DA024}~
~TO-DO: Insert any additional uninstall commands here~
~Comment~
~{4A34ECC4-DCB2-4A96-8626-0392ECB62314}~
~Uninstall product~
~If~
~{B4825525-0856-4BC3-B82A-B5DF2BC32720}~
~REMOVE~
~0~
~TRUE~
~FALSE~
~Code Folding Region~
~{7C057E02-39B7-4FB5-8758-3F6743FE5D49}~
~TRUE~
~Perform Uninstallation~
When the above code run, I expect the service to be removed from the Services Panel, but it is not happening.
Thanks!