clint
Posts: 135
Joined: Fri Jun 19, 2009 9:46 am
Location: Germany

BrowserDlg: Test for or prevent Network folder selection

Hi,
I am using the Enhanced mode.

And I have an additional Folder Dialog to allow the user to select two additional folders.

1. Is there some way to prevent the Folder Browser from allowing a Network path selection, as can be typically done when using VS.NET?

Or do I need to use a CustomAction and a vbs Script to check afterwards if the user selected a Network folder?


2. If the user is installing a package on a Virtual Machine, Is there some way to prevent the Folder Browser from allowing a user to select as the Installation location, a Partion on the Host Machine which is activated through the Integrated Features.

The option "Install feature locally" doesn't seem to prevent this.


Thank you!

clint
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: BrowserDlg: Test for or prevent Network folder selection

Hello Clint,
1. Is there some way to prevent the Folder Browser from allowing a Network path selection, as can be typically done when using VS.NET?

Or do I need to use a CustomAction and a vbs Script to check afterwards if the user selected a Network folder?
In order to achieve this you should make sure you are building a setup package which doesn't use the "Enhanced User Interface" feature. When the "Enhanced User Interface" is disabled the BrowseDlg will not display the network locations.

However, if you have enabled the "Enhanced User Interface" feature in your project, then we don't have predefined support to disallow a network path selection in BrowseDlg. In order to achieve this you should create your own custom action which will check the selected path.
2. If the user is installing a package on a Virtual Machine, Is there some way to prevent the Folder Browser from allowing a user to select as the Installation location, a Partion on the Host Machine which is activated through the Integrated Features.
I'm afraid we don't have support for this. As a workaround you can try to create your own custom action with the desired functionality.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
clint
Posts: 135
Joined: Fri Jun 19, 2009 9:46 am
Location: Germany

Re: BrowserDlg: Test for or prevent Network folder selection

I went back to not using Enhanced Mode to prevent the user from selecting "Network" in the Folder Browser Dialog.

I guess I'll need to create a file browser with an AI Dialog.

(Would be nice if AI could make the AI classic Built-in Folder BrowseDlg dialog as a optional choice, published event, instead of the Windows dialog)

Thank you.

Clint
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: BrowserDlg: Test for or prevent Network folder selection

Hello Clint,
(Would be nice if AI could make the AI classic Built-in Folder BrowseDlg dialog as a optional choice, published event, instead of the Windows dialog)
I'm afraid I don't fully understand what you mean. Can you please give us more details about this (maybe exemplify)?

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

Return to “Building Installers”