melgaard
Posts: 6
Joined: Tue Sep 06, 2011 6:23 pm

Show a "Select User or Group" dialog and set property.

Does anyone know a way of showing the windows "Select User or Group" dialog like the one below or a similar dialog and set a property and text field from Advanced Installer (8.4)?

http://help.globalscape.com/help/eft6-2 ... groups.gif

We have an installation where the user should provide 2 user groups to restrict access to certain features in an application, and it would be really great if the user was able to use the built in dialog.
I am guessing this could maybe be done through some sort of custom action?... (I know how to open the dialog from e.g. C# and fetch out values).
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Show a "Select User or Group" dialog and set property.

Hello,

Unfortunately we have no predefined support to display available users or groups at install time. However, you can try to recreate the intended functionality using the Dialog editor and UI Custom Actions. This functionality is available starting with the Enterprise edition.

Here is the tutorial on how to create a dialog.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
melgaard
Posts: 6
Joined: Tue Sep 06, 2011 6:23 pm

Re: Show a "Select User or Group" dialog and set property.

Hello.

Yes i have an Enterprise License, but building that dialog is way to much work...

But it does not have to be a dialog as part of the wizard, it could just be executing a .NET custom action maybe?...
I know when writing normal windows installers using the functionality in Visual Studio, we are able to display message boxes and dialogs as custom actions are executed, however these are positioned at the end after all installer dialogs.

Advanced installer have the ability to fire custom actions as to user input (click on a button) as far as I can tell, but I don't quite have the same choices to add actions under the UI Sequence???
Question is if there is one of those that is available that could enable us to launch a .NET custom action (calling a dll fuction with input parameters and a return value).
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Show a "Select User or Group" dialog and set property.

Hello,

Unfortunately, a .NET custom action cannot be executed before the Install standard action. This is because the .DLL must be present on the target drive and available when the custom action is executed.

As an alternative, you can follow this article to create a .NET custom action which will be attached to the installation.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”