Reputation: 243
I have zip file containing my installation files. I'm extracting this zip and copying these files into installation directory with the script shown below:
ZipDLL::extractall "$OUTDIR\demo.zip" "C:\myapp\demo\"
if I remove zip file from $OUTDIR
than installer is not able to find zip file as expected. What I want to do is embedding this zip or its extracted folders into exe itself. I added
File -r "$OUTDIR/demo"
but this script didn't worked as well.
Upvotes: 0
Views: 595
Reputation: 11465
demo.zip
) by using its place at run time: along the installer.exe.File
statement to embed some files into the produced installer, you need to refer to the files by using their place at compile time.Replace the $OUTDIR
in the File
statement by the path relative to the .nsi
script.
BTW, you should take the habit to check at the compilation log, NSIS probably tells you about that kind of problem when paths are incorrect at compile-time.
Upvotes: 2