|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Junior Member
Join Date: Feb 2015
Posts: 25
|
createShortcut with quotes in the parameter of final shortcut
CreateShortCut "$InstDir\Prog.lnk" "$PROGRAMFILES\DOS\DOSEmu.exe" "-conf $InstDir\DosConfig.conf"
In the actual created shortcut I want the section with "$InstDir\DosConfig.conf" to actually have quotes around it in the shortcut file. What would I use to do this? I have tried the """ technique and having it actually place a ' around the parameter. Neither of which work. |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Feb 2007
Location: Rijeka, Croatia
Posts: 225
|
Use $\" to escape quotes.
PostEnd: |
![]() |
![]() |
![]() |
#3 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Or use ` or ' for quoting the argument so no escaping is required.
I.e. '-conf "$InstDir\DosConfig.conf"' `-conf "$InstDir\DosConfig.conf"` Stu |
![]() |
![]() |
![]() |
#4 | |
Junior Member
Join Date: Feb 2015
Posts: 25
|
It seems the following code just cuts off the part after the -conf parameter. I am guessing that the $\" is actually being taken as a parameter break for CreateShortcut instead of passing it to the final Shortcut parameter.
It is also cutting off the "-" part. I am not sure why on this one. Quote:
|
|
![]() |
![]() |
![]() |
#5 | ||
Junior Member
Join Date: Feb 2015
Posts: 25
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#6 | ||
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,451
|
Both escaping and single quotes work for me:
Quote:
Quote:
IntOp $PostCount $PostCount + 1 |
||
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|