JamesKiller
25th July 2007 17:20 UTC
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.
Red Wine
25th July 2007 17:38 UTC
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)
JamesKiller
25th July 2007 17:54 UTC
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.
Red Wine
25th July 2007 18:05 UTC
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...
JamesKiller
26th July 2007 20:41 UTC
I figured it out, use !execute 'copy filename1 filename2'
but somehow, xcopy doesn't work.
Afrow UK
26th July 2007 20:48 UTC
Using !system instead of !execute should work for xcopy.
Stu
JamesKiller
26th July 2007 21:08 UTC
yeah. I used !system ,but somehow xcopy wont work....
Afrow UK
26th July 2007 22:10 UTC
!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