Old 13th September 2014, 00:14   #1
hellik
Junior Member
 
Join Date: Mar 2010
Posts: 14
Quote:
Originally Posted by hellik View Post
thanks for your reply.

in the project there are many files organized in different subfolders (e.g. bin, lib and extrabin) [1] and included in the installer [2].

so 'extrabin', 'bin', 'lib' etc subfolders are there when the many files are installed to c:\Program Files\myprogram.

it could be that the 'extrabin' subfolder isn't ready/created when the extra files are copied by CopyFiles?

will have a look regarding this.

best
Helmut

[1] http://trac.osgeo.org/grass/browser/...r.bat.tmpl#L45
[2] http://trac.osgeo.org/grass/browser/....nsi.tmpl#L527
several test done:

[a] folder c:\Program Files\myprogram\extrabin created as one of the first actions taken by the nsis-installer

code:
;create extrabin folder for ms runtime installation
CreateDirectory "$INSTALL_DIR\extrabin"



files are not copied to c:\Program Files\myprogram\extrabin

[b] folder c:\Program Files\myprogram\extrabin created as one of the first actions taken by the nsis-installer

code:
;create extrabin folder for ms runtime installation
CreateDirectory "$INSTALL_DIR\extrabin"



and explicitly copying files to c:\Program Files\myprogram\extrabin by commands

code:
CopyFiles "$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\msvcp60.dll" "$INSTALL_DIR\extrabin"
CopyFiles "$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\msvcp70.dll" "$INSTALL_DIR\extrabin"
CopyFiles "$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\msvcp71.dll" "$INSTALL_DIR\extrabin"
CopyFiles "$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\msvcr71.dll" "$INSTALL_DIR\extrabin"
CopyFiles "$TEMP\$ORIGINAL_UNTAR_FOLDER\bin\msvcrt.dll" "$INSTALL_DIR\extrabin"



no files are copied.

any ideas/hints?

best
Helmut
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