Archive: Those quotes again


Those quotes again
my code works like this

!insertmacro ReplaceInFile "default.nsi" "##BitmapPlaceholder$R0" "File 'test.bmp' $\r$\n##BitmapPlaceholder$R1"


and that works fine.. until the bitmap file has a ' in its filename.

when i change the line to

!insertmacro ReplaceInFile "default.nsi" "##BitmapPlaceholder$R0" 'File "test.bmp" $\r$\n##BitmapPlaceholder$R1'


i get an error while compiling. any solution?

i got around the problem by replacing the quotes with variables.


You can escape ' using $\'

You can also put ` around a parameter.