sugi
Posts: 3
Joined: Sun Oct 14, 2007 11:46 am

Create user and add to admin group

Hello,

due to the different name in different languages of Windows I cannot just use my computer as reference because the group Administratoren will not exist e.g. on an english Windows version.
I have already managed to get this name into a property, so I just need a way to specify the property as the name of the group. Do I need a custom action for this, or is there an easier way?

Regards
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that this cannot be done because currently the Groups are recognized by their name.

However, I have added on our TODO list a feature that will allow you to set a standard group name which will be recognized by all systems (no matter what language they use).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sugi
Posts: 3
Joined: Sun Oct 14, 2007 11:46 am

Like I said, I already have the name of the admin group in a property (see http://www.microsoft.com/technet/script ... y1102.mspx for the trick).
What I did for now, was create a custom action that runs:
[SystemFolder]net.exe localgroup [ADMINGROUP] MyUser /add
with no impersonation. Seems to work fine, but is not as clean as I'd like to have it.
Daniela Petrescu
Posts: 30
Joined: Tue Aug 14, 2007 10:03 am

Hi,

This feature has been added to Advanced Installer 6.2.

You can read more about latest features added to Advanced Installer 6.2 on http://www.advancedinstaller.com/release-6.2.html.

Regards,
Daniela
_________________
Daniela Petrescu
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”