Archive: abuse NSIS


abuse NSIS
i often had to compress large files (most time only one file to one 7z file), so i use 7z on highest compressionrate possible on my pc. because of long duration of compressing, i build compression script for commandline. it works, i can compress over night. but changing script is not the best idea, so i want create a special NSIS script.

this is what i want:


add file(s) <------------------------| //no idea
|| |
choose compression | //advanced
|| |
choose where to save | //easy
(now writing config to a cmd script) | //easy
|--------------------------------|
|
extract 7z.exe //easy
on complete page - run cmd script //easy


is this possible?

thx for helping

Use !system or !execute in the script to execute custom commands at compile time. Also, using !define and !ifdef to allow the compilation of an installer that doesn't have any of the files in it makes testing your script a lot easier.

<offtopic>Which is why I do PHP which doesn't require compilation :P.</offtopic>

-dandaman32


no, i think he wants to create a compression wizard in nsis, with the steps he posted.

add file(s) <------------------------| //no idea
easy, if they are all in one folder and you can just pick the whole folder.
difficult, if you want to pick lots of single files.

choose compression | //advanced
easy, just one page with a listbox, a droplist or a radiobutton-group where you can select the compression.
if there is more than one option for compression setup, just add more controls :D


<offtopic>Which is why I suggest Python which allows both: pre-compilation or jit-interpreting :)</offtopic>

yeah, you're right Comm@nder21, the picking of single files is my problem. Someone any idea?