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!

Lapp
Posts: 2
Joined: Sat Oct 22, 2016 5:20 pm

Specifying a folder for data only

Sorry for being so ignorant about this, but all I want to do with 99% of my installs is to allow the user during the install to specify a default folder where the program files will be installed (with a suggested location), and allow the user to specify where the data files are located (with a suggested location). The first parameter would correspond to the Windows desktop icon property "Target", and the second parameter would correspond to the Windows desktop icon property "Start In". That's it, really. How do I accomplish this in Advanced Installer" Free version.

Bonus: Once the program is installed it would extra nice if the next time the installer is launched if it would remember what the "Start In" data location was if the user changed it in the original install from the suggested location.

I know this is simple stuff for you all, but I'm new to this and just can't figure it out. Thanks for your help.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Specifying a folder for data only

Hello and welcome to our forums!

Using the Freeware version of Advanced Installer you can change the default install location in "Install Parameters" page - "Application Folder" and the user can also edit it at install on "FolderDlg" dialog. However, to browse for the data folder you will need to implement our How to browse for a folder at install time? article settings. It is noteworthy to mention that for this operation you will need the Dialog Editor feature which is available starting with the Enterprise edition of Advanced Installer.

If you want to create a shortcut to an installed file you can take a look at Creating Shortcuts in the Files and Folders Page article.

To store the data folder path and to display it on installer on next time run, you can create a registry value in the Windows Registry during installation and retrieve it when the installer run. In order to do this you can go to "Registry" page and create a new registry value (e.g. "DataFolder") using as value the property that stores the path to the data folder (the one that is used in the dialog). Then, to get the value when the installer run you can perform a registry search (configure it in the "Search" page). Please note that the registry search support is available starting with Professional edition of Advanced Installer.

just let us know if you have any further questions or doubts.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Lapp
Posts: 2
Joined: Sat Oct 22, 2016 5:20 pm

Re: Specifying a folder for data only

Thank you!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Specifying a folder for data only

You're welcome.

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

Return to “Building Installers”