ckoch
Posts: 13
Joined: Thu Sep 04, 2014 12:46 am

Uninstall Service

I have an installer that installs two files: a service and an exe. Install works, repair works. Uninstall appears to work. It runs and finishes without error and it is removed from add/remove programs. But the two files that were installed are still there. The service is still running.

This is on Windows Server 2012r2.

In my project, on Services, Control Operations, Actions, On uninstall, Stop and delete are checked. I'm not sure what else could be missing to cause the files to be left on the system after uninstall.
ckoch
Posts: 13
Joined: Thu Sep 04, 2014 12:46 am

Re: Uninstall Service

Further testing. I created another project from scratch. This one uninstalls the exe, but it leaves the service running and in place in the folder. It is not stopped and deleted despite the setting in Control Operations to do so.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstall Service

Hello,

I'm not sure why this happens. This may happen if the components of your service and EXE are shared between multiple installation packages that are installed on your test machine. Please take a look on our "How can I share a file between multiple packages so when one of the packages is uninstalled the file is not deleted?" faq.

Also, can you tell us if you can replicate the behavior on multiple clean machines? If so, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them. For testing purposes we always recommend to be used virtual machines so that you can easily revert them to a clean state of the testing environment.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ckoch
Posts: 13
Joined: Thu Sep 04, 2014 12:46 am

Re: Uninstall Service

I created a new hyperv to test and installed and uninstalled properly.

The machine I was working on that had the problem was a live machine with a previous version built in installshield (that we are abandoning and moving to advanced installer), similar to how our existing customers will experience the installer. I uninstalled everything on that machine and started from scratch but I guess that's not the same as a clean new machine. I suppose we can't do anything for existing customers except to advise them.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uninstall Service

Hello,

You can try to use an approach like it is exposed in our "Upgrade an older version of the package" how to, in order to remove the old version of your product installation, and see if this helps.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”