|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Sorry, I don't understand your problem.
What do you mean by "can't browse subkey" -Stu
Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
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 |
|
|
|
|
|
#4 |
|
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? |
|
|
|
|
|
#5 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
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 |
|
|
|
|
|
#6 |
|
NSIS Dev
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. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|