Different install type in asp.net application - Advanced Installer Community
apachemaven
Posts: 10
Joined: Wed Jul 11, 2012 10:29 am

Different install type in asp.net application

I have an asp.net application which I want to depoly with advanced installer.

This is the folder structure(in the target computer):

Code: Select all

app_admin_site
  admin
    iis
app_webservice_site
app_admin_site and app_webservice_site would be two new create web sites in the target computer. And I want this port of the two site can be specified by user in the install wizard.

This application have two kinds of install type: type1 and type2 for example.

1 for type1
  • 1) The `admin` and `iis` folder will be set as "web application"
    2) I have to gather three pairs of username-password which I want to update them in the web.config
2 for type2
  • 1) only the `iis` folder will be set as "web application"
    2) I have to gather only one pairs of username-password.
    3) all contents under `admin` exclude `iis` should be deleted
After read the document at advanced installer site,I can implement the basic function.

But I do not know how to change the wizard and set different "web application" for different install type.

Anyone can do me a favor?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Different install type in asp.net application

Hello and welcome to Advanced Installer forums,

In order to achieve what you want you can proceed like this:
- Go to "Files and Folders" view and add the resource files and folders of your web sites.
- Go to "Dialogs" page and create a new dialog containing a radio button group with two radio buttons.
- Select the radio button group and set the "Property Name" field, from "Properties" right pane, to TYPE.
- Select the first radio button and set the "Value" field, from "Properties" right pane, to type1.
- Select the second radio button and set the "Value" field, from "Properties" right pane, to type2.
- Go to "IIS" page and add your web sites and your web applications.
- Select the "admin" web application and set the "Install Condition" field, from "Virtual Directory" tab, with the following condition:
  • TYPE = "type1"
- Go to "Organization" page and select the components of the resource files and folders of your "admin" web application. Set the "Condition" field, from "Component Properties" right pane, with the following condition:
  • TYPE = "type1"
- Build and run your project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
apachemaven
Posts: 10
Joined: Wed Jul 11, 2012 10:29 am

Re: Different install type in asp.net application

Hi Daniel.Radu:

Thank you very much,following your steps, we make it. And it works well.

However our application is under development,so once we make some change we have to re-package the application.

And there are so many resources, so put them in different components in the "Organization" page is a nightmare.

So I wonder if there are some quick manner to make it?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Different install type in asp.net application

Hello,

If you want to condition more components at once you can try this:
- Go to "Organization" page.
- Select the feature which contains the components and from its context menu select "Add Children to List" option or press SHIFT+F4.
- In the "Search Results" pane select the components you want to condition.
- Right-click the selection and from the context menu select the "Properties" option.
- In the "Edit Component Properties" dialog set the "Condition" field with the desired condition.

Also, you can move the selected components in a separate feature and, then you can condition the related feature installation. Select the related feature and in the "Feature Properties" right pane enable "Install based on condition" option.

Let us know if this helped.

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

Return to “Common Problems”