njkowalski
Posts: 4
Joined: Mon Feb 01, 2010 5:09 pm

IIS Settings on Uninstall/Reinstall.

Is there a way to not have the websites and virtual directories, that are created by our install, get removed when a user does an uninstall/reinstall?

Our customers are asking for us not to touch the configured websites and virtual directories from the installation if they do an uninstall.

Thanks,
Nick Kowalski
Visual Software, Inc.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: IIS Settings on Uninstall/Reinstall.

Hello,

You might want to consider a change of approach in deploying your product, meaning organizing your product into features. Keep the website in one feature, and the rest of your product in one/other features. Thus users can uninstall the part of your product they don't need while leaving the website feature intact and installed on their computers. This way, they will be able to remove it properly if they decide to do so later on.

If you still decide to not follow the above suggestion, you can work around your issue by going to the Table Editor page and selecting InstallExecuteSequence. Find the AI_IIsUninstall custom action and condition it not to run during an uninstall.
However leaving your website on your users' computers with your product uninstalled is not recommended.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
njkowalski
Posts: 4
Joined: Mon Feb 01, 2010 5:09 pm

Re: IIS Settings on Uninstall/Reinstall.

Gabriel,
Our installer is broken into different features such as Websites and Databases.

Our current process for giving our customers updates to our software is to do an upgrade.

We have multiple products using the Advanced Installer software. Each of them installs one or more Virtual Directories under the same website. Currently when one of the products is upgraded or uninstalled it is effecting other products' Virtual Directories as well as the top level website that contains them. We cannot have it effecting the other products.

Is there a way to avoid this situation?

Thanks,
Nicholas Kowalski
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: IIS Settings on Uninstall/Reinstall.

Hello,

I am not sure what you mean by "affecting other virtual directories and the top level website". Could you explain this in more detail?

Thank you,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
njkowalski
Posts: 4
Joined: Mon Feb 01, 2010 5:09 pm

Re: IIS Settings on Uninstall/Reinstall.

Gabriel,
The installer to our products creates a Website under IIS named Visual Software. It then creates a Virtual Directory for each product. Since both products use the Visual Software website if we do an upgrade to one of the products or an uninstall it removes the Visual Software Website and then recreates it. However when it removes we lose the Virtual Directories for our other product.

Thanks,
Nicholas
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: IIS Settings on Uninstall/Reinstall.

Hello,

We have studied the problem and it appears that there is indeed an issue with this scenario.
A fix has already been made and it will be available in the very next release which is due to come out soon.
In the meantime we can provide you with the fix via email (support at advancedinstaller dot com) should you need it urgently.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
njkowalski
Posts: 4
Joined: Mon Feb 01, 2010 5:09 pm

Re: IIS Settings on Uninstall/Reinstall.

Gabriel,
Could you please send me the fix as this is needed immediately. *removed by moderator to protect privacy*

On another note, will this new release have the ability to set the SSL port in IIS?

Thanks,
Nicholas Kowalski
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: IIS Settings on Uninstall/Reinstall.

Hello,

I have sent the fix through email.
On another note, will this new release have the ability to set the SSL port in IIS?
This feature is not yet implemented in this new release, however it is amongst our top IIS priorities and will be available in a future version of Advanced Installer.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
jfree
Posts: 4
Joined: Fri Jun 18, 2010 3:25 pm

Re: IIS Settings on Uninstall/Reinstall.

I have the same problem and need this solution ASAP as well if possible. How can I get it?

Thanks in advance,
Jules
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: IIS Settings on Uninstall/Reinstall.

Hi Jules,

Can you please specify what version of Advanced Installer are you using?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
julians
Posts: 3
Joined: Fri Aug 12, 2011 2:51 am

Re: IIS Settings on Uninstall/Reinstall.

Hi, I'm running advanced installer 8.3. Can you please let me know where the option is to keep the IIS web site on uninstall?

Thanks
Julian
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: IIS Settings on Uninstall/Reinstall.

Hi Julian,

There is no direct option in IIS page to disable the uninstall operation of your web site. However, this can be accomplished very easily if you have an Enterprise license.
Just go to Table Editor page, in "InstallExecuteSequence" table and set a false condition on action "AI_IIsUninstall", for example "1=2".

This will make the uninstall action that removed all that was installed from IIS page to never be executed.

Very important! Please note that this setting will make the package never to remove all the web sites/virtual directories/web apps/application pools installed
from IIS page. You cannot set the package to skip the uninstall operation for just a certain web site from that page.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
julians
Posts: 3
Joined: Fri Aug 12, 2011 2:51 am

Re: IIS Settings on Uninstall/Reinstall.

Perfect, thanks.
Bogdan
Posts: 2791
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: IIS Settings on Uninstall/Reinstall.

You're welcome.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”