Difficulties controlling property-based folder - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

TomGarrett
Posts: 25
Joined: Fri Nov 16, 2007 12:44 pm

Difficulties controlling property-based folder

Hi guys,

I have setup my installer with a property based folder - the property is defaulted so that the dialog option will be pre-populated.

Using the organisation pane I set the files included to only be installed on a Complete Install.

I have some Custom Actions firing to place files created at Install time into some of the subfolders of the property-based folder.

So, in a Client install I want NONE of these files or folders to be created. In a Standalone install I want ALL of these files and folders created.

What is currently happening is that the folders do not appear under the Organisation pane, and as such I cannot control their installation. This results in the folders ALWAYS being created but the files only appearing when needed.

Any advice?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that the folders in the "Files and Folders" page are created if files in them are created or if the feature which contains them is installed.

If you want a folder to be created only when a specific feature is installed, then you need to make sure that all the files in the folder are in the feature. Also, the files in the folder (or duplicates of their components) must not be contained by other features.

Note that you control the installation of the folders indirectly, by controlling the components of the resources in the folder (files, shortcuts, file operations etc.)

Also, when you create a folder and add files to it, in the "Files and Folders" page you can set the current feature (the feature in which the folder and the files are added) by using the combo in the right-upper corner.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TomGarrett
Posts: 25
Joined: Fri Nov 16, 2007 12:44 pm

Hi Cosmin,

I've been trying to tackle this for some time. The folder containing files 1 and 2 is added as empty if the feature is NOT installed.
So, install option A (Complete) installs the folder and files 1 and 2, but install option B (Typical) simply adds the folder.
The files belong under a feature that has the condition of InstallLevel 4 (Complete).

I've checked there are no duplicates using the "Find" control in the Organisation pane.

Also, I don't believe the "current feature" combo works...because, even though when I select my folder and then choose the feature it does change to the new feature, subsequent selection of other folders doesn't switch the current feature back to the main one.
i.e. Feature "Main" should include all folders barring the one in question
Feature "Folder" includes just the folder in question.
Selecting the folder in question, setting it's feature to "Folder" and then selecting anything from the main feature will NOT change the value of the combo box back to "Main".

Maybe the last issue can be overcome by modifying the xml?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that the current feature must be selected before you create the folder, not after. This way, the folder will be created for the current feature.

If the problem persists please send us the AIP to support at advancedinstaller dot com so we can investigate it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TomGarrett
Posts: 25
Joined: Fri Nov 16, 2007 12:44 pm

Thanks ever so much Cosmin, after I recreated the folders under that feature it worked just like I wanted!

As always, the efficient and clear instructions are appreciated.

Tom

Return to “Common Problems”