osageproduction
3rd August 2005 14:05 UTC
Zip2Exe
Is there a way that i can convert have the .exe launch a certain file after it extracts? I'm using zip2exe and it will extract the files to the proper directory but i don't know how to tell it to run a specific file from that directory after extracting. Thanks for any help you can give.
...Derek
Comperio
3rd August 2005 19:11 UTC
Here's a few options:
Option #1:
You might be able to modify the base.nsh file (located in ${NSISDIR}\Contrib\zip2exe). But, you'd have to modify this each time you ran if the EXE changes with each compile.
Option #2:
Use another self-extracting utility from the Wiki
Option #3:
Create your own self-extracting utility using InstallOptions.
The idea in option 3 is that you'd build 2 installation. The first would be a wizard style interface that would output a header file. The 2nd would then use that header file to compile a self-extractor which you'd send to the end-user. (You'd have to include a plugin that could extract ZIP files. There's some on the wiki if you need.)