JTrax
Posts: 12
Joined: Wed May 04, 2016 7:13 pm

Create Local User Account

is it not possible to create a local user account that is tied to a property value? So, if I want to create a user under Users and Groups from a dialog that a user has a text box control where they can type the name of the account. I set the property to [LOCAL_USER_ACCOUNT] and what they type there should be the name of the user account. See attached screen shot.
I see a password can be set to a property in the dialog. I renamed my User to [LOCAL_USER_ACCOUNT] and I am not sure that is correct since [ and ] are not valid in username for local computers.
Attachments
Captureuser.PNG
Captureuser.PNG (22.1 KiB) Viewed 2615 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Create Local User Account

Hi,

Yes, both user and groups names can use Windows Installer Formatted Type. If you provide a formatted reference, the names will be resolved accordingly at install time. In your case, the name of the user will be set to the value contained by the [LOCAL_USER_ACCOUNT] property.

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

Return to “Building Installers”