Browse for folders - Advanced Installer Community
hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

Browse for folders

I am trying to let the user who installs our software select some additional folder paths, like data storage and log file location. I read http://www.advancedinstaller.com/user-g ... older.html and followed the instructions there, with some success. However, when I launch the installer, it complains "Could not access notwork location Your Value" before the install path selection page opens, giving me only the options to cancel or retry. "Your Value" is the value of the new property which should later be assigned the custom folder name.
I downloaded the sample BrowseForFolder.aip and built and ran it. It also assigns "Your Value" to the new property MY_DIR but it doesn't try to use "Your Value" as a network name. What could be the difference which I am missing?
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Browse for folders

Hello,

This behaviour is triggered by the fact that the value of MY_DIR property is not set to a valid path. Please take note that in our sample project, in "Custom Actions" page. there is a custom action that sets this installer property to [WindowsVolume]. Please include a similar set installer custom action in your project as well. You should place this first in "Wizard Dialogs Stage" and drag and drop it while pressing shift key to "Install Execution Stage" on first position as well.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

Re: Browse for folders

Thanks Sorin, the custom action was what was missing. It took some attempts to find the correct place to plug it in, but now it works, I can display a custom paths dialog and see predefined values for all paths :D
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Browse for folders

Hello,

I'm glad that you've got things working. Please let me know if you have any other questions.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”