d95pari
Posts: 6
Joined: Fri Sep 09, 2011 9:21 am

How do I not remove web application in IIS during uninstall?

In my installation (AI 7.7) I create two web applications in the IIS configuration page. If I install version 1.0 of my software it will look like this:

Default Web Site
WebInterface
WebInterface1.0

The web application WebInterface will point to the same folder as WebInterface1.0. This reason for this is that we want to have one web application that the "normal" user always may access (i.e. WebInterface), and one web application that is specific to the version installed (used by the technical staff).

When we upgrade our product it is essential that all new files are separated from the current installed files. The IIS is configured with the new web application WebInterface1.1 and the existing WebInterface is changed to point to WebInterface1.1 instead of WebInterface1.0. The IIS will then look like this:

Default Web Site
WebInterface (Points to same folder as WebInterface1.1)
WebInterface1.0
WebInterface1.1

The normal user access WebInterface and will get to the newest version of the web, but advanced users may still access the old web using the WebInterface1.0 web application. So far so good.

The problem is when we decide to uninstall version 1.0 of our software, then is WebInterface1.0 and WebInterface removed. I just want to remove WebInterface1.0, WebInterface should still be pointing to WebInterface1.1.

How can we not remove web application WebInterface during the uninstallation?

Best regards,
Patrick
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: How do I not remove web application in IIS during uninst

Hi Patrick,

Unfortunately this cannot be done. You cannot condition the uninstall or install of only one IIS entity.

Although it's not your case, here's a post in which Bogdan explains how to condition all entities:
http://www.advancedinstaller.com/forums ... 477#p44134

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”