|
|
#1 |
|
Junior Member
Join Date: Mar 2012
Posts: 2
|
Write "$1" as the value of a registry key
Hello,
I've been trying to figure out how to write "$1" to the registry key without luck. I want the value of my key to be "...QuickShortcut.exe $1", unfortunately the $1 is seen as a variable and it doesn't work. WriteRegStr HKCR "*\shell\QuickApp\command" "" "$INSTDIR\QuickShortcut.exe $1" Any suggestions? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
$$1.
Stu |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2012
Posts: 2
|
Thank you,
|
|
|
|
|
|
#4 |
|
Major Dude
Join Date: May 2003
Posts: 681
|
should be
"$INSTDIR\QuickShortcut.exe $\"$1$\"" if $1 contains spaces, eg path |
|
|
|
|
|
#5 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Shouldn't that be $\"$$1$\"" , then?
|
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Yes, or how about: `"$INSTDIR\QuickShortcut.exe" "$$1"`?
Stu |
|
|
|
|
|
#7 |
|
Major Dude
Join Date: May 2003
Posts: 681
|
erm - NO - should not $$1 - cause it already was treated as text in ""
this one puts "blabla" code: with $$1 it puts "$1\$1" "$1" which is wrong. $$ is used if you want to write the number or string of variable eg messagebox mb_ok "value $$R9: '$R9'" similar to \\ in dialogs with input boxes. |
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
|
|
|
|
|
|
#9 |
|
Major Dude
Join Date: May 2003
Posts: 681
|
$1 is a nsis variable - i dont thinks this was purpose.
otherwise typo and it should have been %1 as a context variable of windows $$1 makes neither nor sense. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|