Property Based Folder - nested property folders - 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!

ntodorov
Posts: 7
Joined: Tue Aug 07, 2007 3:41 pm

Property Based Folder - nested property folders

Can I use user input (for example "CLIENT_ID" and users inputs in custom dialog is "777") and then put it as folder name under the "Common Application Data"?

The result must be something like this [Common Application Data]Prefix_[CLENT_ID].
Expanded variant:
c:\PogramData\Prefix_777\

How to achieve this goal?

10x in advance.

Nik
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Nik,

Here is how you can achieve this:

Create two properties in the "Install Parameters" page like this:
CLIENT_ID and MY_FOLDER, where MY_FOLDER represents the property you use as "Property Based Folder" in the "Files and Folders" page.

In the "Custom action" page create two custom actions like this:
1. Under "InstallUISequence->Begin" create a "Property Set With Formatted" custom action. Set MY_FOLDER as "Property Name" and [Common Application Data]Prefix_[CLENT_ID] as "Formatted Text".

2. Now drag & drop (while shift key is pressed) this custom action to "InstallExecuteSequence->Begin".

In the "Dialogs" page you can create an "EditBox" with CLENT_ID as associated property. In this way you can change the folder name at install time.

Hope this helps.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
ntodorov
Posts: 7
Joined: Tue Aug 07, 2007 3:41 pm

Its working!

10x a lot!

Nik

Return to “Common Problems”