Old 13th September 2014, 19:13   #1
hellik
Junior Member
 
Join Date: Mar 2010
Posts: 14
Quote:
Originally Posted by Afrow UK View Post
Have you checked your source path is correct?

Stu
yes, the source path is correct.

I think I've narrowed down the issue a little bit more:

in the nsis-script [1] there's the section [2] with the optional download of these gzipped and tared files which, after unzpping and untaring, should be copied to C:\Program Files\myprogram\subfolder.

this section calls [3] the function [4] which download [5] and unzip/untar [6] the archive and then copies some files [7].

now for more testing, I've added some copying commands as the first action of the nsis-installer:

code:
;test copy files
CreateDirectory "$INSTALL_DIR\extrabin"
CopyFiles "C:\wd\checkdllnsis\*.dll" "$INSTALL_DIR\extrabin"
CopyFiles "C:\wd\checkdllnsis\*.txt" "$INSTALL_DIR\extrabin"
CopyFiles "C:\wd\checkdllnsis\*.exe" "$INSTALL_DIR\extrabin"
CopyFiles "C:\wd\checkdllnsis\*.dll" "C:\wd\checkdllnsis\copiedf"
CopyFiles "C:\wd\checkdllnsis\*.txt" "C:\wd\checkdllnsis\copiedf"
CopyFiles "C:\wd\checkdllnsis\*.exe" "C:\wd\checkdllnsis\copiedf"



and all of these test files are copied.

as summary, CopyFiles doesn't seem to work, if the command is nested in a function called in a section; but CopyFiles works, if it is in the main nsis script and not nested in function.

intended behaviour? bug? ... should this be reported anywhere?

best
Helmut



[1] http://trac.osgeo.org/grass/browser/...aller.nsi.tmpl
[2] http://trac.osgeo.org/grass/browser/....nsi.tmpl#L966
[3] http://trac.osgeo.org/grass/browser/....nsi.tmpl#L979
[4] http://trac.osgeo.org/grass/browser/....nsi.tmpl#L900
[5] http://trac.osgeo.org/grass/browser/....nsi.tmpl#L929
[6] http://trac.osgeo.org/grass/browser/....nsi.tmpl#L935
[7] http://trac.osgeo.org/grass/browser/....nsi.tmpl#L943
hellik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

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