Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Network Path truncated (http://forums.winamp.com/showthread.php?t=254236)

Fr0st3D 27th August 2006 12:08

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

code:
\\mypath\myfolder$\myscript.bat


And when i look at the build log i can see my path which is truncated to

code:
\\mypath\myfolderyscript.bat


Regards

kichik 27th August 2006 15:14

Double that dollar, it needs to be escaped.
code:
\\mypath\myfolder$$\myscript.bat

Fr0st3D 28th August 2006 09:56

I try to double this letter but, there is an error

code:
1 warning:
unknown variable/constant "
ecup_cube.bat" detected, ignoring (D:\Outils\Script NSIS\Recup.nsi:35)



Here is the syntax for my shortcut :

code:

CreateShortCut "Recup_cube.lnk" "\\myserveur\myshare$$\myscript.bat"


kichik 28th August 2006 11:15

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 14:29

Sorry for the mistake, here is the correct code:

code:

CreateShortCut "Recup_cube.lnk" "\\myserveur\myshare$$\myscript.bat"



and then my shortcut is truncated to \\myserveur\myshareyscript.bat

kichik 28th August 2006 23:11

Still the incorrect line, but I see what's going on. Use this instead:
code:
!define share \\myserver\myshare$$
CreateShortcut recup_cube.lnk "${share}\recup_cube.bat"


Fr0st3D 29th August 2006 12:25

Thks a lot, now it works


All times are GMT. The time now is 04:17.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.