Set user privileges OS language independent - Advanced Installer Community

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!

pstrooij
Posts: 8
Joined: Wed Nov 16, 2011 3:43 pm

Set user privileges OS language independent

In our installer I have to set rw-permissions on the application folder for the local user group (Windows OS). But, is it possible to set those permissions in the properties of the application folder independent of the OS language?

For example: I want to create 1 installer that sets rw-permissions on English OS for the group 'USERS' but on Dutch OS for the group 'GEBRUIKERS'.

Is this possible, and if so: how do I configure this in my script?
Teodor
Posts: 73
Joined: Thu Jul 25, 2013 9:56 am

Re: Set user privileges OS language independent

Hi
pstrooij wrote:I want to create 1 installer that sets rw-permissions on English OS for the group 'USERS' but on Dutch OS for the group 'GEBRUIKERS'.
Please read How do I localize user or group accounts? FAQ.
More specifically, you need to use the GRP_USERS localized property when setting the folder permissions in Advanced Installer.

Best regards
Teodor Micu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Set user privileges OS language independent

I tried this on 11.3 with GRP_ADMINISTRATORS and GRP_USER and it seemed to lock me out of the folder. I noticed the following in the installer logfie:

Action 14:22:03: CreateFolders. Creating folders
Action start 14:22:03: CreateFolders.
MSI (s) (A4:34) [14:22:03:636]: Using well known SID for System
MSI (s) (A4:34) [14:22:03:636]: Finished allocating new user SID
CreateFolders: Folder: Creating folders
MSI (s) (A4:34) [14:22:03:636]: Finished allocating new user SID
MSI (s) (A4:34) [14:22:03:636]: Using well known SID for Administrators
MSI (s) (A4:34) [14:22:03:636]: Finished allocating new user SID
MSI (s) (A4:34) [14:22:03:652]: SID WARNING: User account '[GRP_USERS]' resolved to an empty string!
MSI (s) (A4:34) [14:22:03:652]: Finished allocating new user SID
MSI (s) (A4:34) [14:22:03:652]: SID WARNING: User account '[GRP_ADMINISTRATORS]' resolved to an empty string!
MSI (s) (A4:34) [14:22:03:652]: Finished allocating new user SID
MSI (s) (A4:34) [14:22:03:652]: SID WARNING: User account '[GRP_USERS]' resolved to an empty string!
MSI (s) (A4:34) [14:22:03:652]: Finished allocating new user SID
MSI (s) (A4:34) [14:22:03:652]: SID WARNING: User account '[GRP_ADMINISTRATORS]' resolved to an empty string!
MSI (s) (A4:34) [14:22:03:652]: Finished allocating new user SID
Action ended 14:22:03: CreateFolders. Return value 1.
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Set user privileges OS language independent

Hi,

I tested this scenario, but I couldn't reproduce the problem. Can you please send me the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so I can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sjeslis
Posts: 308
Joined: Mon Aug 22, 2011 11:40 pm
Contact: Website

Re: Set user privileges OS language independent

Eusebiu,

Before I go through collecting all that (because I had to undo this change and use the XCALCS.vbs method) I failed to mention that I was using these properties in a merge module.

Does that help?
Scott Jeslis
Senior Software Engineer
Cicero, Inc.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Set user privileges OS language independent

Hello,

We cannot say for sure what trigger the related behavior. Please send us the .AIPs (project file) or your main project and of your merge module and a verbose log of the installation to support at advancedinstaller dot com so we can test and investigate them on our side.

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

Return to “Building Installers”