Old 28th August 2013, 15:54   #1
Junior Member
Join Date: Aug 2013
Posts: 1
Copying files from a network path

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

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

Section "!Application" SecApplication
SectionIn RO

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


Is there something I'm missing?
melance is offline   Reply With Quote
Old 2nd September 2013, 08:59   #2
Major Dude
T.Slappy's Avatar
Join Date: Jan 2006
Location: Slovakia
Posts: 552
Send a message via ICQ to T.Slappy
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.

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

file copy, network

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump