Advanced installer registry permissions Win7 64 bit - 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!

jsharam
Posts: 4
Joined: Thu Aug 30, 2012 12:33 pm

Advanced installer registry permissions Win7 64 bit

Hi,

I am authoring a mixed 32/64 bit installer that needs to create a few registry keys and one registry value under HKEY_LOCAL_MACHINE. I have set up these registry keys (on both 32 and 64 bit) to be created with full control and read permissions for both "Everyone" and "Administrators". When installing on 32 bit windows 7 everything works correctly and they are set up with the correct permissions. When installing on 64 bit windows 7 only the read permissions get set on the registry key for "Users", not full control. Administrators does get set correctly though.

All other registry keys are set up correctly in this way. The only thing that is different about this particular key is that I also set a value under it. Is this likely to have any effect on anything?

I am using Advanced installer 8.1.3 if that makes any difference.

Thanks in advance.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Advanced installer registry permissions Win7 64 bit

Hello and welcome to Advanced Installer forums,

Please keep in mind that if you set permissions on a registry key which contains a registry value having its component marked as 64-bit component, then the related registry key (if its components isn't marked as 64-bit component) will be created under specified location on 32-bit machines, and under Wow6432Node registry key on 64-bit machines. So, in order to create the related registry key in the 64-bit registry location on 64-bit machines you should mark its component as 64-bit component.

Let us know if this helps, otherwise give us more details about your scenario (maybe exemplify). Also, can you attach a sample reproducing the behavior?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jsharam
Posts: 4
Joined: Thu Aug 30, 2012 12:33 pm

Re: Advanced installer registry permissions Win7 64 bit

Thanks for the suggestion, however, I think the project is already set up with the component marked as a 64-bit component.

I'll see if I can put together a test project that reproduces the issue and post back once it is complete.

Thanks.
jsharam
Posts: 4
Joined: Thu Aug 30, 2012 12:33 pm

Re: Advanced installer registry permissions Win7 64 bit

Hi,

I have now realised what the problem is. In the permissions settings for the registry key I can set full control for Everybody and Administrators. I want to be able to set full control for all users on the current machine. For example, on my machine (called PC7 on the network) full permissions should be granted to "PC7\Users" as well as "Everybody" and "Administrators". I can also set full permissions on "[USERNAME]" to grant access to "PC7\user" (the user who installed the program) but this does not set it for all users.

Is there a way to set full permissions for all users on the current system in this way?

Thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Advanced installer registry permissions Win7 64 bit

Hello,

I've tested your scenario, using version 9.4 of Advanced Installer, but I cannot reproduce the behavior. Can you attach a sample reproducing the behavior?
Is there a way to set full permissions for all users on the current system in this way?
In order to set full permissions for all users you should set the "Username" field with "Everyone" generic group, from "Permission" dialog, and you should check "Full Control" field.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DimasSup
Posts: 31
Joined: Fri Aug 17, 2012 3:12 pm

Re: Advanced installer registry permissions Win7 64 bit

Hello,
For different windows locale "Everyone" user has different name("Все"- for russian), and Win7 and winXP - "Everyone"(Win7) and "All"(XP)
I dont know if worked it in Advanced installer, but for Win7 for evryone better user SID - "*S-1-1-0"
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Advanced installer registry permissions Win7 64 bit

Hello,

Please keep in mind that "Everyone" and "Administrators" groups names have the same meaning on every NT machine, independent of the locale settings (they are not localized). Please take a look on our "How do I localize user or group accounts?" article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jsharam
Posts: 4
Joined: Thu Aug 30, 2012 12:33 pm

Re: Advanced installer registry permissions Win7 64 bit

Just a note to say that I have managed to fix the issue now.

It appears that it may have been a problem converting our project from an old version of Advanced installer. When editing the .aip file I noticed the line:

<ROW LockObject="data5_1" Table="Registry" User="Everyone" Permission="131209"/>

All other registry values are set with permission "1880096767". After changing the above line manually to 1880096767 it fixed the installer problem.

The object that it is setting permissions on is a registry value, not a key, so it is impossible to edit it from within the editor.

Thanks for the help.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Advanced installer registry permissions Win7 64 bit

Hello,

This could have been an Advanced Installer 8.1.3 issue. Can you please test your scenario using our latest version (9.4) of Advanced Installer and see if the behavior still reproduce? If so, can you please attach a sample reproducing the behavior?

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

Return to “Common Problems”