Archive: Network Path truncated


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

Double that dollar, it needs to be escaped.

\\mypath\myfolder$$\myscript.bat

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"

That comes from another line in the script, probably with the same kind of error. That line doesn't contain "ecup_cube.bat".


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

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"

Thks a lot, now it works