werelord
Posts: 16
Joined: Thu Nov 05, 2009 3:47 pm

property-based folders

Couple bugs, not sure when they were introduced..

Advanced Installer v8.1.2, brand new Professional project.. I've created a property "foo"="bar"..

Files and folders pane.. Right click on "Application Folder", New Folder, property-based. You're given a dialog to chose your property; select "foo".. The problem is that the directory isn't created under "Application Folder", its showing under the root "Target Computer". This folder is also not property-based; instead its named the same name that the property was named (in this case, "foo" directly).

So I create a new normal folder under "Application Folder", with an arbitrary name.. Went into the settings, tried to rename it, setting the Target Name and Source Name to "[|foo]".. AI would not accept that; it gives an error "Invalid folder name!". This one is relatively new; I was able to rename this to a property under AI 7.7..

We have a couple projects that used this in the past, mostly using [|companyname] or [|productname] as the folder name.. but when we upgraded to the latest version we're no longer able to edit the properties of these folders, as when anything is clicked on the properties we get the "invalid folder name" error..
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: property-based folders

Hello,
Files and folders pane.. Right click on "Application Folder", New Folder, property-based. You're given a dialog to chose your property; select "foo".. The problem is that the directory isn't created under "Application Folder", its showing under the root "Target Computer". This folder is also not property-based; instead its named the same name that the property was named (in this case, "foo" directly).
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 folders will be 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. For more information about how to add a functional property based folder, please follow our user guide.
So I create a new normal folder under "Application Folder", with an arbitrary name.. Went into the settings, tried to rename it, setting the Target Name and Source Name to "[|foo]".. AI would not accept that; it gives an error "Invalid folder name!". This one is relatively new; I was able to rename this to a property under AI 7.7..
This behavior is caused by a bug in Advanced Installer. We are aware of it and included the fix in the 8.2 release which will be very soon.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”