|
![]() |
#1 |
Junior Member
Join Date: Mar 2014
Posts: 17
|
![]()
Hey folks, new to NSIS here.... I've been banging my head against the wall trying to figure out why this isn't working. I have a variable defined for my GUID:
code: Writing the variable into a registry value data works great: code: Writing the variable as a registry key doesn't work at all: code: Is it the curly brackets? I've tried using escape characters but it doesn't help. What am I missing? ![]() |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,333
|
Are you running as administrator (elevated with UAC)?
The only thing you have to escape in NSIS is $. You current code also ends up with \\ because CLSID\$CLSID will expand to CLSID\\{1368ABFA-B1AB-49DB-9CB8-2C231D54B1BF\}. To really debug this problem you can use Process Monitor... IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Mar 2014
Posts: 17
|
Oh, those extra back slashes were from my frustrated attempts at finding a solution. I am running as an admin and have them removed at the moment, but no luck. I have no problem creating those keys from a batch file, just can't seem to do it through NSIS. Am I overlooking something? Does \{ mean something in this scripting language?
|
![]() |
![]() |
![]() |
#4 |
Major Dude
Join Date: Feb 2007
Posts: 672
|
Why do you use the backslash in the CLSID?
No need for escape characters or something (backslash alone isn't an escape character anyway...) |
![]() |
![]() |
![]() |
#5 | |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,333
|
Quote:
IntOp $PostCount $PostCount + 1 |
|
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Mar 2014
Posts: 17
|
Ah ok... I see it under the Wow6432node hive. SetRegView 64 gave me the desired outcome... I wonder why some of it was writing to the expected location and the rest of it wasn't. Anyway thanks for your tip!
|
![]() |
![]() |
![]() |
#7 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,333
|
Some things under HKCR is reflected in both views and others only exist where you write them. This is of course related to compatibility and has changed from XPx64 to Vista and Vista to 7. See MSDN for more information...
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Tags |
writeregstr |
Thread Tools | Search this Thread |
Display Modes | |
|
|