![]() |
That would be very nice, since I could repack some already unpacked SFX :-)
|
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 |
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 |
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!!
|
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 |
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 |
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! :) |
I'll add a custom .onInit function define when I get home e.g. ${SE-onInitFunc}
-Stu |
Thanks! That would be nice! :)
|
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 |
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 |
Thanks
|
password security
Hi!
I am concerned about the securcity of the password protection. Is the exe being encrypted with a standard system( Aes, ...)? |
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 |
New version is available with ${SE-AddDir} and ${SE-ShortcutCheckBox}
-Stu |
Bug in SE_FILE macro.
Labels don't work if OUTFILE contains spaces. This bug wasn't there in v0.21e |
Ah thanks. I will fix it tonight.
Edit: Fixed -Stu |
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. ;) |
Hello there, thanks for the bug report.
Try the updated version that I have uploaded. http://nsis.sourceforge.net/wiki/NSI...-Extractor_kit -Stu |
Nope! No luck, still the same. I think you have to remove the SS_WHITERECT flag from that static.
|
Try now.
-Stu |
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.
|
Woops my mistake I had the dlg.exe set to read only.
Try now. -Stu |
: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. :) |
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 |
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: |
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 |
Now It works
:up: Yeah the source is a bit overwhelming, but now It works.
|
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. |
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 |
i want the window, but i want the extraction to begin automaticaly (in some cases).
OJi. |
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. |
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 |
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. |
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 |
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? |
Quote:
i did not knew that it has two pages. ... and yes, i want to skip the first page. sorry for all the trouble. OJi. |
Try:
code: 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 |
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.