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!

blinton
Posts: 1
Joined: Mon Feb 02, 2015 4:55 am

Dialog Populate Username and Domain

Hi I am trying to populate a custom dialog with the logged on users username and domain into separate Edit Control text boxes. I have tried to use a Init Event but it does not appear to be working can someone please give me a hand figuring this out.

Thanks,
Brandon
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dialog Populate Username and Domain

Hi Brandon and welcome to Advanced Installer forums,

In order to display the logged on user, you can use the LogonUser property for the related control.
To display the user domain, you can set the related control through a set installer property value - init event as follow:

  • Property: USER_DOMAIN_PROP
    Argument: [%USERDOMAIN]
The sample project is attached to this thread, so if you are interested to take a look directly at my project, you are more than welcome to download the ZIP file.

Please let us know if that helped.

Best regards,
Dan
Attachments
DomainAndUserSample.zip
(2.93 KiB) Downloaded 181 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”