Fr0st3D
27th August 2006 13:08 UTC
Network Path truncated
Hello,
I've created, with NSIS, an installation which create a shortcut on the user's desktop : the target of this shortcut is on an hidden network path like this
\\mypath\myfolder$\myscript.bat
And when i look at the build log i can see my path which is truncated to
\\mypath\myfolderyscript.bat
Regards
kichik
27th August 2006 16:14 UTC
Double that dollar, it needs to be escaped.
\\mypath\myfolder$$\myscript.bat
Fr0st3D
28th August 2006 10:56 UTC
I try to double this letter but, there is an error
1 warning:
unknown variable/constant "
ecup_cube.bat" detected, ignoring (D:\Outils\Script NSIS\Recup.nsi:35)
Here is the syntax for my shortcut :
CreateShortCut "Recup_cube.lnk" "\\myserveur\myshare$$\myscript.bat"
kichik
28th August 2006 12:15 UTC
That comes from another line in the script, probably with the same kind of error. That line doesn't contain "ecup_cube.bat".
Fr0st3D
28th August 2006 15:29 UTC
Sorry for the mistake, here is the correct code:
CreateShortCut "Recup_cube.lnk" "\\myserveur\myshare$$\myscript.bat"
and then my shortcut is truncated to \\myserveur\myshareyscript.bat
kichik
29th August 2006 00:11 UTC
Still the incorrect line, but I see what's going on. Use this instead:
!define share \\myserver\myshare$$
CreateShortcut recup_cube.lnk "${share}\recup_cube.bat"
Fr0st3D
29th August 2006 13:25 UTC
Thks a lot, now it works