enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Windows Service-- after uninstall the service is still there

I use Advanced Installer to create a Windows Service Package-- and it seems that after I install the package, I can't uninstall it.
  1. Unzip the file
  2. the file will contain an aip file and the exe
  3. change the path in the aip file so that you can install it
  4. Do the installation
  5. Now go to Control Panel->Administrative tools->service, the relevant service MyNewService is there. Good
  6. Now uninstall the installation package, go to Control Panel->Administrative tools->service again, the MyNewService is still there!
Worse still, it seems that now I can no longer remove the MyNewService from the services list, I try to reinstall back the package, register back the service manually using installutil.exe, unregister it manually, and uninstall the MyNewService. The MyNewService is still there in Admin tools->service. Any idea on how to fix this?
Attachments
testWinServicePackage.zip
(6.05 KiB) Downloaded 548 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Windows Service-- after uninstall the service is still there

Hi,

Please note that Windows Installer uses control operations to control services. The User Guide contains a service tutorial which may help you. In your package you can try using a service control operation which stops and deletes the service on uninstall.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
enigma
Posts: 89
Joined: Fri Jun 08, 2007 10:12 am

Re: Windows Service-- after uninstall the service is still there

cosmin wrote:Hi,

Please note that Windows Installer uses control operations to control services. The User Guide contains a service tutorial which may help you. In your package you can try using a service control operation which stops and deletes the service on uninstall.

Regards,
Cosmin
Thanks, it works well
alec.jones
Posts: 6
Joined: Thu May 07, 2009 3:43 pm

Re: Windows Service-- after uninstall the service is still there

Hi,
I have a related problem to this, in that the uninstaller removes the service and its related files, but does not remove the entry in the service table, and yes I did hit the refresh button :) . Any clues on this one ?

Best regards
Alec
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Windows Service-- after uninstall the service is still there

Hi Alec,

I'm not sure why you are encountering this behavior. Can you reproduce it on a clean machine? If so, please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alec.jones
Posts: 6
Joined: Thu May 07, 2009 3:43 pm

Re: Windows Service-- after uninstall the service is still there

Hi Cosmin,
Still happens on a clean install. aip is in the post

Best regards
Alec
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Windows Service-- after uninstall the service is still there

Hi Alec,

Your post doesn't contain any attachments. Can you please send us the .AIP file with the problem to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alec.jones
Posts: 6
Joined: Thu May 07, 2009 3:43 pm

Re: Windows Service-- after uninstall the service is still there

Hi Cosmin,
The problem was resolved by gigi. It was down to name of the service control operation being different to the naem of the service

Best regards
Alec

Return to “Common Problems”