|
-
Dec 28th, 2005, 09:44 AM
#1
Thread Starter
New Member
Set rights for given SID
Hi all,
during the installation of a program I have to set write-rights for all users on a registry-key (HKLM/Software/MyApp). In this key application-settings are stored. I want to set the rights during the first start of the application. The first start will be done by an admin.
I know that the SID for "Everyone" is S-1-1-0. My question:
How can I assign "Everyone" to this key? I have to use the SID and not the groupname "Everyone" since my app will be installed in different countries, and in any non-english-Windows "Everyone" has another name.
Thanks in advance,
awue
-
Dec 28th, 2005, 05:01 PM
#2
New Member
Re: Set rights for given SID
If you are using an MSI installation you can do this with an MSI call. You can also do this with WMI inside your application.
Keep in mind the user has to have administrative rights to that area to set the security permissions.
-
Dec 30th, 2005, 09:31 AM
#3
Thread Starter
New Member
Re: Set rights for given SID
Hi tometa,
You can also do this with WMI inside your application.
Do you have a sample how to do it? At this point I'm not working with MSI; so I have to do it during the first start of my app. And yes: during the first start the user has admin rights.
Thanks, and a very good new year!
awue
-
Dec 30th, 2005, 05:51 PM
#4
New Member
Re: Set rights for given SID
There are actually several options in this article including WMI and Regini
http://www.windowsitlibrary.com/Content/237/2.html
-
Dec 31st, 2005, 05:31 AM
#5
Thread Starter
New Member
Re: Set rights for given SID
Thanks a lot! Looks very promising.
A very good year!
awue
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|