I use NSIS to generate executables packagers.
Currently these packaged products' content can be customized by the developer that generates the installer. For this I created several .nsh script, one per component, and some .nsi script that use components to create the executable.
I was recently asked to offer simple .zip file in addition with .exe packagers. To avoid code duplication, and make sure that the generated .zip and .exe installer share the same content, I would like to use the same .nsh scripts components to create a .zip archive instead of an executable.
I thought it could be easy as .exe generated by NSIS can be opened with 7zip, and is basically an archive, but I couldn't find how.
Do you know if it's doable?