Commandline Extract .nsi?
Hi all,
I'm having a bit of difficulty creating a "hidden" section that extracts the .nsi files when presented with a commandline option. Basically, I want to bundle the .nsi files with the installer, and if I run setup.exe /WITHSOURCE or something, it also extracts the .nsi files to the install dir.
Putting together the three required pieces into a working solution is giving me trouble.
1) disable the hidden "extract source" section by default.
2) check commandline for /WITHSOURCE, re-enable the hidden section that extracts the source if the commandline option was there.
3) extract the source. I dont really need it to extract a full source, just the original .nsi file.
Has anyone done something like this in their installer, and could give me a tip, pointers, or an example? I greatly appreciate it.