Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   NSIS Self-Extractor kit (http://forums.winamp.com/showthread.php?t=185115)

TobWen 11th January 2005 19:51

That would be very nice, since I could repack some already unpacked SFX :-)

Afrow UK 11th January 2005 20:33

Sorry for the long delay. I had to eat my dinner! :)

v0.21: Added 'Custom Functions' (see Section 8 in documentation)
Download from same link.

As for adding extra Self-Extractor code to Zip-To-SE and Dir-To-SE, you just need to put them into the header.nsh files (or you can specify your own header file from the application dialogues).

Edit: What you need to do is use
${SE-ExtractEndFunc} myFunc
then make a function:
Function myFunc
...Put ExecWait (etc) code in here
FunctionEnd

-Stu

Afrow UK 11th January 2005 20:47

Sorry, please download one more time. I just fixed a bug which has been there for some time that I just never noticed. The product name wasn't being displayed over the installation progress bar any more.

-Stu

RedBopete 12th January 2005 13:57

Woo hoo! I finally got it to work (downloaded the new copy, btw). It took me several tries, and wasn't sure exactly which folder the icon needed to go in, so put it in several - will sort through and determine which is correct, but for now the icon appears on my desktop correctly and it works. Nice job - thanks!!

Afrow UK 12th January 2005 15:29

I just uploaded a new build 0.21b.
Fixed a few bugs, and added some extra stuff.
Also cleaned up the readme quite a bit.

${SE-PageExtractPreFunc} is no longer called in .onInit (no good when you choose to have Password dialogue before Extract dialogue!)

Added ${SE-HeadingLine1} and ${SE-HeadingLine2}
These allow you to change both lines of the heading text. See documentation for more info (section 1)

Utilised the ${SE-FindExtractDir} code (faster now)

${SE-Product}, ${SE-HeadingLine1} and ${SE-HeadingLine2} now become their set value after use.

-Stu

Afrow UK 12th January 2005 19:58

Password text wasn't showing up (fixed).
Made changes to Password dialogue - added Confirm button and removed (disabled) Next button.

Made some minor changes to Directory dialogue.

-Stu

jonnebonne 13th January 2005 13:03

Thanks Afrow UK!
I like the self-extractor alot! Nice work!
But I have a question...
If I would like to add something more in the code (ex. MIDI play during installing), how can I attatch this?
I have tryed to write it in the SE and SE-Base...
I need to put some code in the .onInit section, and when I try to make a .onInit section, it returns: The .onInit sections is already there...

Maybe this is silly but can you help me a little? :)

Thanks! :)

Afrow UK 13th January 2005 14:06

I'll add a custom .onInit function define when I get home e.g. ${SE-onInitFunc}

-Stu

jonnebonne 13th January 2005 15:48

Thanks! That would be nice! :)

Afrow UK 13th January 2005 18:55

Very sorry to keep you waiting for so many hours! I uploaded the new build a few hours ago, but have only just remembered to post the news!

I've added ${SE-onInitFunc} "function_name" in the latest build (v0.21d), along with ${SE-PagePasswordPreFunc} and ${SE-PagePasswordLeaveFunc} (for ${SE-Password} dialogue)

-Stu

Afrow UK 10th February 2005 19:49

v0.21e
 
Added ${SE-ExtractDirRO}
Makes the extract directory path box read-only; stopping the user from changing the extraction directory path.

Make-List utility added
Generates a list of files in a directory.

-Stu

deepesh 11th February 2005 12:12

Thanks
 
Afrow UK Thanks a lot it is really good.

Deepesh AGarwal,
http://www.freeware-alternative.uni.cc

superrock 11th April 2005 09:48

password security
 
Hi!

I am concerned about the securcity of the password protection. Is the exe being encrypted with a standard system( Aes, ...)?

Afrow UK 11th April 2005 14:35

The exe is not encrypted. I don't know how I'd encrypt it even without modifying and recompling NSIS's source?

I will be adding a ${SE-AddDir} macro which will add a whole directory (with overwrite check-box support.)

-Stu

Afrow UK 11th April 2005 16:39

New version is available with ${SE-AddDir} and ${SE-ShortcutCheckBox}

-Stu

Aaron's rod 6th May 2005 12:53

Bug in SE_FILE macro.
Labels don't work if OUTFILE contains spaces.

This bug wasn't there in v0.21e

Afrow UK 6th May 2005 14:16

Ah thanks. I will fix it tonight.

Edit: Fixed

-Stu

#{trueparu} 11th December 2005 18:31

1 Attachment(s)
Theres a very minor bug (if it even is a bug) in the ui, when you use custon windows color schemes. Check the attachment. The area around the "branding text", is different in colour.

And also some /solid switch drama. ;)

Afrow UK 12th December 2005 16:17

Hello there, thanks for the bug report.
Try the updated version that I have uploaded.
http://nsis.sourceforge.net/wiki/NSI...-Extractor_kit

-Stu

{trueparuex} 12th December 2005 18:06

Nope! No luck, still the same. I think you have to remove the SS_WHITERECT flag from that static.

Afrow UK 12th December 2005 19:31

Try now.

-Stu

{trueparuex'} 13th December 2005 07:17

Sorry, don't work. I din't see any change I see except there are dlg_original.exe (Resource Hacker leftovers I guess) in the package, but the SS_WHITERECT was still there in dlg.exe.

Afrow UK 13th December 2005 16:28

Woops my mistake I had the dlg.exe set to read only.
Try now.

-Stu

{_trueparuex^} 13th December 2005 17:50

:up: Ok now the UI is OK, but you still need to add...

GetDlgItem $R1 $R0 10
SetCtlColors $R1 0 FFFFFF

...To the ReadSettings function. :)

Afrow UK 14th December 2005 12:54

Are you sure?
ReadSettings only gets the states of the check boxes.

GetDlgItem $R0 $HWNDPARENT 10
SetCtlColors $R0 0 FFFFFF
...is already in .onGUIInit where it needs to be because the control in question is on the outer (parent) dialog.

-Stu

{_trueparuex^} 14th December 2005 13:35

1 Attachment(s)
Well see your self. Happens also in XP.

The installfiles dialog also haves a 10 control and apparently installfiles dialog overlays the 10 control in the main dialog, because it's bigger that the other dialogs. I tryed first just to remove that control from the installfiles dialog, but that didn't work.

Edit: Is it just me or is this starting to get a little bit boring? :drool:

Afrow UK 14th December 2005 17:14

Yes very tedious! The problem is that I haven't opened the source file for over a year!
I'll have another look.

Edit: Fixed now.

-Stu

{_trueparuex^} 14th December 2005 17:53

Now It works
 
:up: Yeah the source is a bit overwhelming, but now It works.

o_owd 19th January 2006 20:46

two questions :

1. i use ${SE-ForceExec} "setup.exe". the compiler tells me :
"SE_FORCEEXEC" requires 2 parameter(s), passed 1!"
in your readme file there is only one parameter.
what do i enter for the second one ?

2. it is posible to begin extraction on extractor initialisation ? without pressing on "extract".

thanks.

Afrow UK 20th January 2006 09:24

1. I'll have a look when I get home.
2. In other words you don't want a directory page (and no check-boxes)?

-Stu

o_owd 20th January 2006 09:59

i want the window, but i want the extraction to begin automaticaly (in some cases).

OJi.

{_trueparuex^} 20th January 2006 10:27

In ${SE-ForceExec} first parameter is the file and the second is open mode action ("open", "print"...) it also can be an empty string to use the default action.

So ${SE-ForceExec} "setup.exe" "" should work just fine.

Look also the ExecShell function in NSIS manual.

Afrow UK 20th January 2006 17:00

Thanks {_trueparuex^}, even I had forgotton what the last parameter was for! I've updated the readme (and changed that ugly colour scheme!)
So you would like to skip the page sometimes or show the page for X seconds before performing the extraction?

-Stu

o_owd 21st January 2006 08:43

i do not know how to explain this in english. i want the page to appear. not skip it. but i want the extraction to begin automaticaly. not to press on extract !
so, the user double-clicks on the .exe, the window shows up and it extracts already.
something like the downloaded nero burning does.

OJi.

Afrow UK 21st January 2006 10:08

The thing I don't understand is how can the user change the extraction location or other options when the extraction has already started?

-Stu

{_trueparuex^} 21st January 2006 13:38

I think that o_owd don't know that the extractor actually haves two pages. So there might be misunderstanding about skiping the page.

o_owd the first page is where you set the directory, options and press the extract button and the second page is the one where the progressbar moves and the options and directory field is disabled. Do you want to skip the first page?

o_owd 21st January 2006 15:28

Quote:

Originally posted by {_trueparuex^}
I think that o_owd don't know that the extractor actually haves two pages. So there might be misunderstanding about skiping the page.

o_owd the first page is where you set the directory, options and press the extract button and the second page is the one where the progressbar moves and the options and directory field is disabled. Do you want to skip the first page?

i feel so stupid....:igor:
i did not knew that it has two pages.
... and yes, i want to skip the first page. sorry for all the trouble.

OJi.

Afrow UK 21st January 2006 16:31

Try:
code:
${SE_DIRECTORY_PRE_FUNC} SkipDirectoryPage

Function SkipDirectoryPage
Abort
FunctionEnd



This may lead to some undesired results as it hasn't been tested but see how it goes. If it doesn't work then I'll probably add a define to the header to disable the page.

-Stu

crystal_clear 27th February 2007 07:23

hi, I'm very new to the whole NSIS thing (only 2 days :o ), I just wanna ask one thing, can I use this along with the ultra modern ui? that's really cool UI, and if I can use this with this self-extractor, it'll be awesome:D

thanks in advance (sorry if my question is ridiculous, I'm just a newbie;) )


All times are GMT. The time now is 17:52.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.