Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 27th January 2003, 14:06   #1
titoo
Junior Member
 
Join Date: Jan 2003
Posts: 2
HKCR HKLM HKCU write permissions

Hi all,

In my install I set some registry keys in:
!define CAPEC_SK "Software\CAPEC\ICAS\Structure"

WriteRegStr HKCU "${CAPEC_SK}" "MainPath" "$INSTDIR"

WriteRegStr HKLM "${CAPEC_SK}" "MainPath" "$INSTDIR"

WriteRegStr HKCR ".ICS" "" "ICAS.Document"

My problem is to know if the user has the right to do that, even if he is not Administrator.
For example a poweruser, or a user with some rights etc...

Do you know if by default a power user can write in these keys?
The right managment is a bite of mystery for me in this Windows registry. Unix is much more simple!

By the way, why this question?

It is because we have created a software which need to be installed on computer of big company members. These people have sometime limited access to their computer, (no administrator rights, but a mix) so if a request them to have admin rights to install the software, they will need to call their IT department and ask to install the software, but it will be done under the "administrator" account, and then for the shortcuts etc... it is a mess.

Thank you...
titoo
titoo is offline   Reply With Quote
Old 27th January 2003, 14:13   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
What you can do to find out is read the value out of the key in question and then try to write the same value back to it. If you get an error (use IfErrors) then the user can't write there.

Quote:
The right managment is a bite of mystery for me in this Windows registry. Unix is much more simple!
I fully agree

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 27th January 2003, 14:21   #3
titoo
Junior Member
 
Join Date: Jan 2003
Posts: 2
Thank you! I will look at the IfError function and do that.

titoo
titoo is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump