R.Depl
Posts: 4
Joined: Fri May 19, 2017 7:49 am

Fix defined Target Folder Path -> disable browse location option

Fri May 19, 2017 8:10 am

Our application must be installed explicitly on C:\123.
I can define this fix under "Install Parameters\Application folder".

Is there an option where it can be defined that the customer can not redefine\browse the install location, so that the selection will not displayed in the install dialogs?

Other installers have the following option:
Do you want your users to be able to modify the installation location of your application?
Yes/No

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Fix defined Target Folder Path -> disable browse location option

Mon May 22, 2017 2:45 pm

Hi and welcome to Advanced Installer forums.

To block the user from changing the installation location of your application, you can simply go in the "Dialogs" page and delete the "FolderDlg" dialog. However, the user may still be able to change that path by setting the "APPDIR" property from the command line.

In order to prevent this too, you can go in the "Custom Actions" page and add a "Set installer property" custom action after the "Wizard Dialogs Stage -> Searches" action group which sets the "APPDIR" property to the path that you want. Also, right-click on that custom action and select the "Sequence -> Install Execution" option to share it between the UI and the Install stages.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

R.Depl
Posts: 4
Joined: Fri May 19, 2017 7:49 am

Re: Fix defined Target Folder Path -> disable browse location option

Tue May 23, 2017 10:42 am

Hi Eusebiu

Thank's for your reply and your approach.
The solution is actually quite simple and logical, and I will implement it like this.

I had already thought about customizing dialogs (with the dialog editor or delete 'FolderDlg'), only the thing with the Appdir command line wouldn't never occurred to me.

Thank you very much.

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Fix defined Target Folder Path -> disable browse location option

Tue May 23, 2017 10:45 am

You're welcome. Glad to help.

Just let us know anytime you need assistance.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Feature Requests”