Skip to content
⌘ NSIS Forum Archive

Network Path truncated

7 posts

Fr0st3D#

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
Fr0st3D#
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#
That comes from another line in the script, probably with the same kind of error. That line doesn't contain "ecup_cube.bat".
Fr0st3D#
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#
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"