within
11th December 2012 16:01 UTC
VPatchFile with space in path to file: failed
Hi there,
In order to update some files, I use VPatch to do this.
Unfortunately, the defined path for the original file to be replaced contains a space into it.
I did use "$0\Sources\XYZ\Source files\XYZ___X.C", but it fails in "making" the EXE from the nsi script.
within my script, it fails on this line:
!insertmacro VPatchFile "PatchBX1.pat" "$0\Sources\XYZ\Source files\XYZ___X.C" "XYZ___X_NEW.C"
Thanks for your help.
w
MSG
11th December 2012 17:03 UTC
Try different quotes. ` or '.
within
12th December 2012 07:42 UTC
none of the quotes worked, unfortunately.
I also tried to "trick" the script in using a define like ths:
!define SRC "Source files"
!insertmacro VPatchFile "PatchBX1.pat" "$0\Sources\XYZ\${SRC}\XYZ___X.C" "XYZ___X_NEW.C"
but didn't work either :weird:
it seems the VPatch macro does NOT support space in its parameters... Maybe someone has another idea...
Thanks in advance
MSG
12th December 2012 10:07 UTC
https://sourceforge.net/tracker/inde...49&atid=373085
Also, why don't you use the vpatch plugin directly if the macro is still broken?
within
1st January 2013 19:13 UTC
will try the macro change. Thanks!