Dynamic Folder Name based on user input value - 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!

fdzuno
Posts: 3
Joined: Tue Mar 26, 2013 6:42 pm

Dynamic Folder Name based on user input value

Need to install files into a custom folder under the main install directory
Custom folder name must be specified by a user - in a custom dialog via input textbox (custom property called ISI_PROP_SYSTEM_FOLDER)
ISI_PROP_SYSTEM_FOLDER default value is set to System2
Properly configured a property-based folder pointing to the ISI_PROP_SYSTEM_FOLDER property.

Example:
I need to install all my configuration files in C:\Program Files\[CompanyName]\[ProductName]\[ISI_PROP_SYSTEM_FOLDER]
However, when install runs and user enters value into the ISI_PROP_SYSTEM_FOLDER textbox, the folder name is not named according to the user input. Instead, a new folder called "System2" is created -the default property value.
If I display the value of the property in a messagebox, the correct value is displayed.

Followed the http://www.advancedinstaller.com/user-g ... older.html, spent 2 days on it already, no success.

Frank
Attachments
Example.png
Example.png (65.77 KiB) Viewed 3423 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Dynamic Folder Name based on user input value

Hello Frank and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Please keep in mind that this happens because you've used the related property name as a PseudoFormatted data type (which is resolved at build time) in the folder name.

In order to create a property-based folder you can take a look on our "Folders" article.

Here's attached a sample, created using our 10.0 version of Advanced Installer, which implements a similar scenario.
sample.zip
(2.88 KiB) Downloaded 220 times
If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fdzuno
Posts: 3
Joined: Tue Mar 26, 2013 6:42 pm

Re: Dynamic Folder Name based on user input value

Unfortunately,

I do not have version 10. I just bought version 9.9 - just couple days before you released the version 10 :( .
Obviously, I got an error when I tried to open the sample.

Could you please send me the example in the 9.9 version?

Frank
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Dynamic Folder Name based on user input value

Hello Frank,
I do not have version 10. I just bought version 9.9 - just couple days before you released the version 10 :( .
Obviously, I got an error when I tried to open the sample.
Please note that each Advanced Installer license purchase includes a free 6-month maintenance plan. So, if your maintenance plan it is valid you can download and register our last version of Advanced Installer. You can check if your maintenance plan is valid from our Maintenance Plans page (just enter your license key).
Could you please send me the example in the 9.9 version?
Here's attached a sample, created using our 9.9 version of Advanced Installer, which implements a similar scenario.
sample.zip
(3.04 KiB) Downloaded 197 times
Let us know if you have an questions.

All the best,
Daniel,
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
fdzuno
Posts: 3
Joined: Tue Mar 26, 2013 6:42 pm

Re: Dynamic Folder Name based on user input value

Thanks a lot for your help. It worked . Maybe you should think of adding it to your help topics. I can imagine a lot of users have the same requirements.
It was not 100% clear from the documentation. I actually followed the instructions and tried to make it happen for 2 long days.

Again, I am impressed. Thank you, Advanced Installer. Btw., I was able to upgrade my installer version to the latest version based on your instructions. Thanks for the info.

Frank
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Dynamic Folder Name based on user input value

Hello Frank,

You're welcome. I'm glad you got this working.
Maybe you should think of adding it to your help topics.
We already have an article (Install files in a custom folder) which debates a similar issue. However, we'll consider this in a future version. Thank you for your suggestion.

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

Return to “Common Problems”