Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Copying files from a network path (http://forums.winamp.com/showthread.php?t=369862)

melance 28th August 2013 14:54

Copying files from a network path
 
I am trying to copy files from a network path during installation, however; the files are not copied.

code:
!define FileCopy `!insertmacro FileCopy`
!macro FileCopy FilePath TargetDir
CreateDirectory '${TargetDir}'
CopyFiles '${FilePath}' '${TargetDir}'
!macroend



code:
Section "!Application" SecApplication
SectionIn RO

${FileCopy} '\\networkpath\path\file.txt' '$INSTDIR'

SectionEnd



Is there something I'm missing?

T.Slappy 2nd September 2013 07:59

There maybe several reasons:

1) Maybe not every user has the same mapping for \\networkpath\ - file cannot be found
2) Is target dir. accessible (UAC problems) ?
3) Was target dir. created? Check error flag

And do not use the same name 'FileCopy' for symbol and macro name.


All times are GMT. The time now is 14:45.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.