Archive: when compiling the nsi file, can i copy external foder to output folder.


when compiling the nsi file, can i copy external foder to output folder.
when I compile the nsi file, i need to copy some folders to output directory.
for example:
c:\Release>
\images\
\data\
setup.exe
something like that, how can copy images and data folders when i compile it.


You could create your own "executor" with nsis, it's just a few lines of code.
1. Copies images and data to the new location
2. Executes the compiler (makensis.exe)


that means i need to ceate a Dos batch file...hmmmm, can i integrate with .nsi , i found a compile time command '!execute' , but it seems not to work.


Could be a dos batch, more complicated though.
What I mean is something like this:
An executable written in nsis with a custom page for instance where you browse for the saved installer.nsi and for additional directories that you want to copy/move to a new location.
This is able to copy/move files/directories locally and launch makensis.exe to compile installer.nsi

Just my thoughts...


I figured it out, use !execute 'copy filename1 filename2'
but somehow, xcopy doesn't work.


Using !system instead of !execute should work for xcopy.

Stu


yeah. I used !system ,but somehow xcopy wont work....


!system: "xcopy"
Invalid number of parameters
0 File(s) copied
!system: returned 4

Invalid number of parameters
0 File(s) copied
!execute: "xcopy"

Shows that both work for me.

Stu