Create custom directory under IIS Root - Advanced Installer Community
mrichards0
Posts: 4
Joined: Wed May 07, 2014 6:07 pm

Create custom directory under IIS Root

I'm trying to create a custom directory name (not virtual directory) under the IIS WWW Root. When I try "New Folder/Property Based" it places the directory under the Target Computer and doesn't allow me to move it to IIS WWW Root. If I build the install and try to run it, it fails right away with an error. I'm "Right Clicking" the "IIS WWW Root" directory and selecting "New Folder/Property Based." A different approach I tried was "Right Clicking" the "IIS WWW Root" directory and selecting "New Folder/Regular" it created a sub directory under IIS WWW Root. I tried making the target name = [PROPERTYNAME] and also PROPERTYNAME, but all it does is create a subdirectory under inetpub called PROPERTYNAME, not the property from the dialog. Does anyone know how to create a property based sub-directory? Is this a bug? I'm using 11.1 Enterprise License. Any help is greatly appreciated.
mrichards0
Posts: 4
Joined: Wed May 07, 2014 6:07 pm

Re: Create custom directory under IIS Root

Actually, I just figured it out. Sorry about the post. When I pressed "[" I get a drop down to add a property (I ignored it the first few times). I was typing [PROPERTYNAME] and should have used [|PROPERTYNAME]. It works if I create a folder (not a property based folder) and modified the target name. I'm not sure what property based folders are for.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Create custom directory under IIS Root

Hello and welcome to Advanced Installer forums,
It works if I create a folder (not a property based folder) and modified the target name. I'm not sure what property based folders are for.
I'm glad you got this working.
This is the normal behavior when creating a property based folder. It will not be created under any Windows Installer Folders, but at the end of the folder tree list as you correctly observed.
Property based foldersare resolved at install time to the values from the respective property. This property can be one of the Windows Installer Folders, the result of a Search operation or a custom property set in the Install Parameters page.

The property based folders from the Files and Folders view are useful, for example, when you want to add some files in other application folder. For this scenario, you can perform a search in order get the installation path for the related application (e.g. define a search operation in the Search page). The property which you had assigned to the search operation you will use it for a property based folder. In this property based folder you will add the files which need to be added in the related folder.

You can take a look on the How do I install files in a custom folder? article with related information for hints and guidance.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”