bloodhard
Posts: 1
Joined: Mon Apr 05, 2010 5:28 am

Create website under IIS using IISBrowser result

Hi,

I am creating a installer which allow user to pick a website in local IIS to install this asp.net web application i created.

I have obtained the website from "IISBrowseComboBox" property in a IISBrowser dialog, so what should I do now to ensure the application is installed under the website user has just selected?

thanks alot

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

Re: Create website under IIS using IISBrowser result

Hi Eric,

- All you need to do now is go to IIS page in Advanced Installer, create a new website in the tree and select it.
- In the right pane under the General tab, in the Name field, insert your property in square brackets. Now the website should be installed in whatever directory the property holds.

Let me know if this helped.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
h.k.foysol
Posts: 17
Joined: Thu Oct 13, 2016 10:34 am
Contact: Skype

Re: Create website under IIS using IISBrowser result

Same case, so not creating a separate thread. I am installing my web app under existing web site.
Action if Duplicate is set to "Prompt user to overwrite item or rollback installation".

Now the existing web site I am using, it has binding settings set to run under port 8080. Note that it could be any port number.
My intention is to keep the existing port number and overwrite the existing site with my web app.

Question is how can I do that without disturbing the port number of existing website. It looks like I am forced to provide a binding settings.
Image
Humayun Kabir Foysol
Team Lead
Enosis Solutions
http://www.enosisbd.com
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Create website under IIS using IISBrowser result

Hello,

You can install the web app without overwriting the website. In order to do this, you can set Action if Duplicate to "Skip item installation" in the site's "Basic Site Settings" tab from "IIS" page.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
h.k.foysol
Posts: 17
Joined: Thu Oct 13, 2016 10:34 am
Contact: Skype

Re: Create website under IIS using IISBrowser result

Thanks Daniel for the reply.

"Skip item installation" is not really helping my cause. What I want to do it as below

Say I already have a web site called "WebSite2" pointing to physical location "C:\WebSite2" and running under port 8070.
During installation when user choose to deploy the web site being installed using existing "WebSite2", what I want to do is change the "WebSite2" physical location to my installation directory, say "C:\Program Files\RND\WebSite" but I do not want to change any other settings of the website2. Such as the port number the web site is running.

If I go with "Skip item installation" then WebSite2 remain in its old physical path which is "C:\WebSite2"
Humayun Kabir Foysol
Team Lead
Enosis Solutions
http://www.enosisbd.com
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Create website under IIS using IISBrowser result

Hello,

We don't have out of the box support for this, but you can try to use your own custom action for your requirement. For instance, you can set Action if Duplicate to "Skip item installation" in the site's "Basic Site Settings" tab from "IIS" page. Then, you can use a "Launch file" custom action to call the appcmd to set the web site physical path.

Let me knoe if this helped.

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

Return to “Common Problems”