Uppgrade Changes iis website port - Advanced Installer Community
Borgas
Posts: 60
Joined: Tue Jan 22, 2008 10:49 pm

Uppgrade Changes iis website port

Hi!

My application is installing website with port 80.

After installation I my for some reason change port to 8080.

If i then run an uppgrade it will restore port to 80. Is ther an easy way to make setup to reuse the last used port 8080?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uppgrade Changes iis website port

Hello,

Unfortunately, currently we don't have support to preserve web site settings during upgrade. We have such an improvement on our TODO list and hopefully it will be available soon. We will notify you on this thread when such option will be available.

Until then, the only workaround will be to use your own custom action to read the current configured web site port and set it after the web site is installed. The get port custom action should run at the beginning of the installation and the set port action should be scheduled at the installation end.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Borgas
Posts: 60
Joined: Tue Jan 22, 2008 10:49 pm

Re: Uppgrade Changes iis website port

Thanks!

I will wait....
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uppgrade Changes iis website port

You're welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Borgas
Posts: 60
Joined: Tue Jan 22, 2008 10:49 pm

Re: Uppgrade Changes iis website port

Is there an exampel on custom action to retrive current bindings and customaction to set one or many bindings?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Uppgrade Changes iis website port

Hello Boris,

Here are two stackoverflow thread which could help you:

1. How can I get the port by websites name via C# from IIS?

2. Change http port for “Default Web Site”

Also, please take a look on our article about how to build a C# custom action.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Uppgrade Changes iis website port

Hello,

This improvement has been added in version 16.5 of Advanced Installer, released on November 13th, 2019.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”