Old 14th August 2003, 10:56   #1
dpy
Junior Member
 
Join Date: Aug 2003
Posts: 2
modify registry key under Xp

Hello,
I used NSIS to deploy a simulator which is hardware dependent.
Under NT4, I directly modified a registry parameter via WriteRegDWORD.
But now under Xp, the key is under an UID, and I don't know how to browse the subkey. Any idea?
thanks by advance
dpy is offline   Reply With Quote
Old 14th August 2003, 11:40   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Sorry, I don't understand your problem.
What do you mean by "can't browse subkey"

-Stu
Afrow UK is offline   Reply With Quote
Old 14th August 2003, 11:51   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Use EnumRegKey and EnumRegValue if you can't find a native way of finding out what that UID is. If it's under a UID it's safe to assume there can easily be more like this. Unless you can verify that the found key is the right one, a better solution, in my opnion, would be to get this UID from another reg key or using an API call.

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 14th August 2003, 12:48   #4
dpy
Junior Member
 
Join Date: Aug 2003
Posts: 2
registry modification

Hello,

Thanks for your response, I've a small application which enumerate all the subkey, and so I can modify the key thanks to it.
Question: how can I use NSIS to call my application (example: test.exe value)? Do I need to use !system call?
dpy is offline   Reply With Quote
Old 14th August 2003, 12:52   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You should use !system if you want to execute it on compile time. If you want to execute it on runtime you should use Exec, ExecShell, ExecWait or nsExec (a plug-in, see Contrib\nsExec for a readme).

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 14th August 2003, 21:38   #6
iceman_k
NSIS Dev
 
iceman_k's Avatar
 
Join Date: Feb 2003
Location: Boston, MA, U.S.A.
Posts: 455
Why are you using an external program for registry modification?
NSIS contains all the commands you will need for registry editing.

Cheers,
Iceman_K

EclipseNSIS - An NSIS IDE for the Eclipse Platform | My contributions to the wiki
iceman_k is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast 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