Problems setting registry permissions - 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!

stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Problems setting registry permissions

I am having multiple problems setting registry permissions. Here's what I want to do:

1) create a new user "Foo"
2) create a registry key
3) give Foo full control of the key
4) give Administrators full control of the key
5) give Users read-control of the key

- If, in the AI registry key permissions tab, I give full control to Everyone, I can give full control to Foo, and installation succeeds
- if I instead give permissions per 3,4,5 above, installation fails with this error:

"An error occurred while applying security settings. STEVEFALCOMPUTER\Foo is not a valid user or group. This could be a problem with the package, or a problem connecting to a domain controller on the network Check your..."

Note that I am not using a domain controller.

I originally thought that this was happening because the action for creating the user Foo had not executed before the action to apply my registry permissions. But I think I solved that by moving the RegisterUser action earlier (btw, can this order be set back to defaults, or do I need to do that manually?).

But I then removed the permission entry for Foo, and found that I got the same error wrt permissions I am attempting to give Users, which is a build-in account.

So know I don't know why this error is occurring.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problems setting registry permissions

Hi,

Can you please give me more details about how you are setting the permissions on the registry key? Are you using the Advanced Installer support or a custom action? Also, can you please send us the AIP (project) file with the problem to support at advancedinstaller dot com so we can investigate it?
can this order be set back to defaults, or do I need to do that manually?
Currently this can be done only manually. However, we will consider adding this improvement in a future version of Advanced Installer. Thank you for your suggestion.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: Problems setting registry permissions

I am using the AI registry key Permissions tab, not a custom action. I've sent a project file that demonstrates the issue.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problems setting registry permissions

Hi Steve,

Are the groups and the custom user in a domain? Please note that most computers don't use domains. If they are not in a domain, please make sure that the "Domain" field in the Permission dialog is empty.

Note that you need to set specific permissions in order to set a right (read, write or full). For more details please see this page:
http://www.advancedinstaller.com/user-g ... ialog.html

I also noticed that you are setting permissions for an user named "Test", while in the "Users and Groups" page you have an user called "New User" with the "Description" test. In this case, the permissions should be set for "New User", not for "Test".

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: Problems setting registry permissions

Thanks Cosmin,

Isn't there always a domain? If a machine is not part of network domain it is at least it's own domain, right?

I was using [%USERDOMAIN], and that resolves to the machine's domain.

But I have also tried leaving the domain field empty, and that fails too.

I fixed the name of the user. That was an issue in the Test project I sent you, not the project I'm actually working on.

Nonetheless, attached is the project with that issue corrected, and the domain field left blank. It still doesn't work.

-Steve
stevefal
Posts: 119
Joined: Wed Sep 03, 2008 9:02 pm
Location: Washington USA
Contact: Website

Re: Problems setting registry permissions

Reply from Cosmin:
~~~~~~~~~~~~~
Hi Steve,

> Isn't there always a domain?

Not exactly. Most user accounts are using workgroups:
http://www.tech-forums.net/pc/f57/what- ... oup-15245/

> I was using [%USERDOMAIN], and that resolves to the machine's domain.

Please note that USERDOMAIN is an environment variable. If this variable has a value it doesn't mean that the machine uses a domain.

I checked with our development team and it seems that an user account created by the installation cannot be used for permissions in the same install.

A solution for this is to use a separate package to create the user account. This package can then be added as a prerequisite to your main
installation:
http://www.advancedinstaller.com/user-g ... requisites

Regards,
Cosmin

Return to “Common Problems”