User defined install folder - Advanced Installer Community
Paul954
Posts: 6
Joined: Fri Aug 22, 2014 6:30 pm

User defined install folder

I am trying to install my web app in a folder that is determined during the install.

A normal install path would be C:\inetpub\wwwroot\webappname.

I am using the BrowseIIS dialog and would like the webappname to be determined by the property name of the Virtual Directory edit box. I have set this property name to be MY_WEBAPP.

If, during the install, I input webappnameA into the Virtual Directory edit box, I would like the web app to be installed into C:\inetpub\wwwroot\webappnameA.

I have gone through several of the Help and How To's without any success.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User defined install folder

Hello,

In order to achieve what you want you can use a custom installer property (e.g. MY_WEBAPP_FOLDER) to create a property-based folder under which will be installed your web application. Here are the steps to proceed:
1. go to "Install Parameters" page and add a new installer property like this:
  • Name: MY_WEBAPP_FOLDER
    Value: Your Value
2. go to "Files and Folders" page and create a property-based folder using the above property
3. go to "IIS" page, select your web application entry and in the "Folder" field from "Basic Application Settings" tab set the "MY_WEBAPP_FOLDER" directory
4. go to "Custom actions" page and add a "Set installer property" custom action with sequence, scheduled after "Install Execution Stage -> Searches" actions group like this:
  • Property: MY_WEBAPP_FOLDER
    Value: [IIsWWWRootFolder][MY_WEBAPP]
5. select the above custom action and , while keeping [SHIFT] key press drag and drop it under "Wizard Dialogs Stage -> Searches" actions group (in this way the custom action will be shared between the two installation sequence.)
6. rebuild and test again the scenario

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Paul954
Posts: 6
Joined: Fri Aug 22, 2014 6:30 pm

Re: User defined install folder

I can not drag and drop the Set Property Action. It doesn't do anything when I try.
Attachments
Image 2.png
Image 2.png (24.12 KiB) Viewed 3589 times
Paul954
Posts: 6
Joined: Fri Aug 22, 2014 6:30 pm

Re: User defined install folder

I have figured it out.

Thank you for the info. I have it working now
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User defined install folder

You're welcome. I'm glad you sorted things out.

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

Return to “Common Problems”