Skip to content
⌘ NSIS Forum Archive

NSIS Self-Extractor kit

119 posts

dRaakje#
Still the same. I've updated my screenshot, look for your self... You can't force a smaller font? Or compact the folder string with dots in the middle?

Still, this is nitpicking, it looks great!

🙂
Afrow UK#
Hmmf. It's because I made the kit on Windows XP... the font used there is Verdana size 7. On Windows XP, it's much much smaller (if you look at my screenshot) but for some reason it is larger for you.

I will see what I can do. And don't worry it's not nit-picking. User input is exactly what I like to see!

-Stu
dRaakje#
Actually, I'm using Xp also, but the first thing I do after I install Xp is turn of that f***ing teletubby theme and go back to classic windows.

<RANT>That XP theme has larger controls, meaning less space left for the really important stuff (such as the source windows when I'm programming)</RANT>

So, if you want to test yourself, go to your desktop properties and change from windows xp theme to windows classic theme, then you can see for your self (Might be a good idea to save your current theme first, so you can restore it later on)

Oh, and since it's Windows Classic, it'll probably be using MS Sans Serif, 8 pts for the text. That's what windows usually uses everywhere else. 😉

Remco
Afrow UK#
I actually found an error in my code which was causing the extraction text label font to be bigger on the instfiles page than the directory page.

I've fixed it. The font is now Verdana size 7 again for that label.

I've also added some new stuff under the "Extended settings" category (in readme and script generator).

-Stu
Afrow UK#
I've added some more features (mainly for registry support). I also fixed a few bugs in the Script-Generator.

I may write a small NSIS-based program to convert Zip's to NSIS Self-Extractor's too, as I'm opening a Half-Life mod map database soon, and I will be using my Self-Extractor as an extra download option for maps.

-Stu
deguix#
I may write a small NSIS-based program to convert Zip's to NSIS Self-Extractor's too
Are you going to use the ZipDLL plugin, or another program in combination with yours?

I'm opening a Half-Life mod map database soon
How many databases and programs do you have for games?

I only have 1 program with a database and both are being redone from scratch now. But this program is not just a updater for the game, it makes several changes in game interface, besides of making easier for the user to select game patchs.
Afrow UK#
I'm not going to use ZipDLL, because last time I tried using it for my 'D-Day Zip Extractor' about 10% of the Zip's wouldn't extract. They weren't corrupt either (as WinZip and Windows Explorer could open them.)

I'm using 7-zip's command-line program, but it's a bit on the large side (500kb!)... so does anybody know of a small Zip decompressor program (which only does Zip.)
I've got pkunzip, but it only allows for short file names/paths which really won't do (program was written over 10 years ago!)

Cheers

-Stu
flizebogen#
The unziper from the info-zip distro ist only 160 kb.

You can find it here as a whole package. http://sunsite.cnlab-switch.ch/ftp/m...2/unz551xN.exe

And i guess it's capable of LFN
deguix#
I think you could even use its .dll version which is only 100 kb. http://sunsite.cnlab-switch.ch/ftp/.../unz551dN.zip. If you want to be easier choose the .exe version.
Afrow UK#
Uploaded new build v0.11

Includes new Zip-To-SE program (works a beauty!)
Complete SE file-system has been changed (new Bin folder).

The Self-Extractor will ask you to remove the old extraction before allowing you to continue, so remember to backup any non-SE files that may exist.

-Stu
Afrow UK#
I have uploaded a new build. The dialogue has had some major changes:


Now includes a heading text which has customisable color, bold/unbold. Also custom function defines added.
Script-Generator has also been updated.

-Stu
deguix#
I think the appearance could be better:

- I don't think the "Please enter a directory ..." setence should be with the "Extract to:" label. You should remove one of them.

- Before "Extract to:" was above the textbox text height, now it's below! You should make it to be in the same height of the textbox text height.

- Putting the "Please enter a directory..." in bold doesn't make your program looking better in my opinion. I think that's because the first setence is near title of the program which is bold too.

- This is a very old thing: the ProgressBar and the text on the side positions. ProgressBar should be below the text (you could make the ProgressBar smaller too if you want). This would make the text to have much more space and would make it not to break lines so often.
Afrow UK#
The "Please enter a directory ..." text is customisable. Like I said, you can use ${SE-ExtractDirTextUnbold}, and set the actual text to whatever you like.

I will make it unbold default, so instead of ${SE-ExtractDirTextUnbold}, one would have to use ${SE-ExtractDirTextBold} (to make it bold again)

Good idea on the progress bar 🙂 Currently the progress text is really jumbled up, and when two lines get in it looks messy.

I'll make the directory box 100% width (without the extract to text) and see what it looks like (with LR padding too of course!) The new text makes the Extract to text redundant now.

I will make the progressbar thinner, stretch out the white area at the bottom and move the progress text label to 100% width over the top.

I may also make the spacing under the two checkboxes bigger too (which will make it more spaced out).

-Stu
Afrow UK#
Ok, updated to 0.13 (download from same URL)

Included some more changes to the dialogue... looks much nicer - thanks diguix!

-Stu
deguix#
Write deguix next time. Who says that is my mother when she tries to understand what I'm doing on the computer the whole day (tries but she doesn't understand anything). 😉

Talking about the Self-Extractor:

WOW, what a great dialog design now. About the bottom part text and ProgressBar positions, they are like they were measured with ruler...
Afrow UK#
Another new build

Uploaded 0.14 (same link!)

Fixed some major bugs in the Make-Script utility.
Changed ${SE-Readme} syntax. Readme's must now be compressed manually with ${SE-File}

-Stu
saritha#
can please tell me how to delete specific files from specific dir and how to move files from one dir to another
deguix#
how to delete specific files from specific dir
Delete "C:\Dir\File.ext"

how to move files from one dir to another
Rename "C:\DirSrc\File.ext" "C:\DirDest\File.ext"
Afrow UK#
Re: Password

Originally posted by superrock
hi!

Is there any possibility to ask for a decompression password?
This would require a InstallOptions dialogue to be created. You'd be better off incorporating it into the default NSIS system (classic/MUI). See Contrib\InstallOptions.

-Stu
Afrow UK#
But come to think of it, that would be a cool little feature to have for a Self-Extractor. I use my Self-Exractor to distribute programs and game content for testing. A password would be ideal just in case it got into the wrong hands! I may work on this tomorrow 🙂

-Stu
Afrow UK#
Ok, password support added (v0.15).


-Stu
superrock#
Password test fails

Hi!

Thank for your update.

1. I am sorry but I have troubles to use it.
Following error occurs, when I start my simple test script testself.nsi starting makensis:

..\..\makensis testself


File: "dlg_rm+ow.ini"->"$PLUGINSDIR\dlg" 375 bytes
File: "C:\Programme\NSIS\Contrib\Self-Extractor\Bin\dlg_pass.ini" -> no files fo
und.
Usage: File [/nonfatal] [/a] ([/r] filespec [...]|/oname=outfile one_file_only)
Error in macro SE_FILES_START on macroline 274
Error in script "testself.nsi" on line 23 -- aborting creation process

If I am diabling the line :

${SE-Password} "rocky"

it's working properly.

2. Question: Is it possible to start an exe file after decompressing(e.g. setup.exe )?
Afrow UK#
Ah that was my fault sorry. I accidentally left out the dlg_pass.ini file from the download!

Added now:


-Stu
superrock#
Starting setup.exe afterwards

Hi!

Thank you for the password extension.
Excellent work!

It would be helpful to another function implemented, like it works in Winzip self extractor.

It's like the readme function, but

1. There should be a info text with an enabled button.
e.g. When done decompression starting: setup.exe

2. This action should start a program (e.g. setup.exe) as last thread after decompressing. Before it is started the main dialogue must be finsihed.

I can do it with the readme function, but the decompression main dialogue is not diappearing before starting the readme.
Afrow UK#
Your feature request has been added. I ended up re-coding the whole check-box system, so now you can have two check-boxes in any order you like and by any combination.

Re-did the readme file too. Check out Section 4 of the readme for the below which you need to use:

${SE-Exec} "$INSTDIR\app.exe" "Run app.exe when complete"
${SE-ExecOnClose}

-Stu
superrock2#
Exec Run

HI!

I have checked out, but I had some problems.

1. If I am using the password feature the text is wrong:

Please enter a directory to extract my Mytest files to.

2. If I am using the ${SE-Exec} feature it does only accept one parameter :

!insertmacro: end of SE_README
!insertmacro: SE_EXEC
!insertmacro: macro "SE_EXEC" requires 1 parameter(s), passed 2!
Error in script "examplepw.nsi" on line 16 -- aborting creation process

3. If I am using the exec feature with one parameter, then it's not working and as text "$TEXT" is shown.