Two outfiles
I want the compiler to wrire 2 outfiles:
One in the directory of the compiler (where is my stuff) and other in c:\ at once. Is it possible? I mean : How is it possible?
Archive: Two outfiles
Two outfiles
I want the compiler to wrire 2 outfiles:
One in the directory of the compiler (where is my stuff) and other in c:\ at once. Is it possible? I mean : How is it possible?
You'll have to script that. Use your build system to copy the file after building or write a batch file to build your installer and then copy the .exe to another directory.
I don't got it.
I use Nis Edit (editor/compiler). Then, I press "compile".
There is a matter of time. I think that it is not possible copy before the compiler finishes, and after that, the compiler do nothing else.
I'm talking about only one click: Compile.
Nis, at END, writes the OutFile.exe.
Have an idea?
Nis Edit doesn't support any post compilation actions (as far as I know) so you'll have to script this action (or do it yourself). What you need to do is create a batch file that will invoke the compiler (makensis.exe). When that finishes, have it copy the generated installer to where ever you want the second copy of it. It will need to look something like this:
NSISDIR=C:\Program Files\NSIS
%NSISDIR%\makensis.exe "installer.nsi"
copy Setup.exe C:\Setup.exe
Or just make an nsis script that does the same:
Name "Script Example"
OutFile "scriptit.exe"
Page InstFiles
Section
ExecWait '"${NSISDIR}\makensis.exe" $EXEDIR\yourscript.nsi'
CopyFiles "$EXEDIR\setup.exe" "C:\setup.exe"
SetAutoClose True
SectionEnd