Skip to content
⌘ NSIS Forum Archive

A new modern user interface

66 posts

mlbl#
Originally posted by Joost Verburg

It you want to modify the UI, it's better to modify Contrib\UIs\modern.exe instead of creating an installer which contains the dialogs.
Well the installer does include a modified version of the modern.exe, just that it includes an installer like the one in modern_ui.zip.
kichik#
Added /TRIM(LEFT|RIGHT|CENTER) for BrandingText. Get it from the CVS.

There are some multi language handling changes, so don't be surprised if your script breaks. Have a look at the docs, they are pretty updated.
mlbl#
What does the Brandingimage /Trim do?Because after placing it in my script, it didn't change anything.
mlbl#
Originally posted by kichik
It trims down the version string control to the size of the string specified.
I tried putting this in my script :

BrandingText /TRIM(LEFT) "Testing 123"

and used the modern.exe as the UI, and nothing noticable changed. Did i miss something?
kichik#
Yea, the () aren't supposed to be there... It should be /TRIMLEFT not /TRIM(LEFT). I will make the compiler check it.
mlbl#
Originally posted by kichik
Yea, the () aren't supposed to be there... It should be /TRIMLEFT not /TRIM(LEFT). I will make the compiler check it.
no wonder 🙂

It seems that the trimming doesn't "trim" that well, it leaves a small amount of gap (can be considered quite big), here's an image :



Maybe if the space is one character away isn't that bad, but this looks more like 2-3 characters away
kichik#
It does. Open it up with Resource Hacker and see for yourself. The problem with your installer is that the line only reaches that far.
Tolwyn#
Totally Confused

Ok.
I'm totally confused. I have pre-alpha 7 and the UI zip files... I'm not getting any content in the UI to create NSIS packages. Yes, I'm a noob, but I'm not totally inept... Did read the facts and have been using Blue Slate...

What am I mnissing?😕
kichik#
All you need to do is right-click on a script and choose "Compile NSI". If you don't have this context menu entry install an older NSIS first (alpha 6 for example), and then put the pre-alpha 7 files on top of it.
Tolwyn#
Ahh.

Ok. This is a UI for NSIS, not a front end to create scripts. I gotcha.

Sorry folks.

I'm script stupid. Are there any good FrontEnds for NSIS?
kichik#
These guys are building one: http://forums.winamp.com/showthread....threadid=96398

In the mean while you can try some front-ends here: http://www.clantpa.co.uk/nsis/wiki/
mlbl#
Originally posted by kichik
It does. Open it up with Resource Hacker and see for yourself. The problem with your installer is that the line only reaches that far.
Not true, i have moved and enlarged the line - here's the stats :

left 5, top 192, width 324, height 1

I've tested it with the example.nsi from the CVS as well and the same thing happens.
rainwater#
Originally posted by mlbl


Not true, i have moved and enlarged the line - here's the stats :

left 5, top 192, width 324, height 1

I've tested it with the example.nsi from the CVS as well and the same thing happens.
This issue has been fixed in CVS (will be in alpha 7).
Joost Verburg#
New version!

Alpha 7 includes a new version of my UI.

A new macro system, full multilanguage support, fixed all known bugs, new examples, modern2.exe with a larger component select treeview, auto sizing BrandingText & more!
Sailo#
I've just downloaded and installed alpha 7 and now my nsi files won't compile.

I get this error when compiling the test.nsi installed in the installoptions directory. Also i get the same error in my custom nsi scripts. I've had to uninstall.

Usage: CallInstDLL dll_path_on_target.dll [/NOUNLOAD] function
Error in script "C:\Program Files\NSIS\Contrib\InstallOptions\test.nsi" on line 127 -- aborting creation process

Maybe this is something i'm not doing. Sorry if it is.
Joost Verburg#
Originally posted by Sailo
I've just downloaded and installed alpha 7 and now my nsi files won't compile.

I get this error when compiling the test.nsi installed in the installoptions directory. Also i get the same error in my custom nsi scripts. I've had to uninstall.

Usage: CallInstDLL dll_path_on_target.dll [/NOUNLOAD] function
Error in script "C:\Program Files\NSIS\Contrib\InstallOptions\test.nsi" on line 127 -- aborting creation process

Maybe this is something i'm not doing. Sorry if it is.
InstallOptions has been moved from the Bin to the Plugins directory, you should change the filename.

[edit]There is also a bug in CallInstDLL (see kickik's post)[/edit]
kichik#
Fixed in the CVS. I will soon rerelease alpha 7. Thanks for the heads up, please use SourceForge for bug posts next time.
Joost Verburg#
Small update

The finish header for the uninstaller can also be set using the MUI_FINISHHEADER macro.

Update your scripts, because MUI_FINISHHEADER requires an additional parameter.
Joost Verburg#
Originally posted by Tolwyn
Your UI doesn't support Banner Images, huh?
You can edit the modern.exe UI using a Resource Editor to add or remove images, icon or other elements.
Joost Verburg#
Another update

Removed the titlebar from the Verifying installer & Unpacking data dialog 🙂

Available in the new alpha 7 release or on CVS.
trace#
wow that looks awesome. will be used this UI with other versions of the one and only NSIS? 😛
Joost Verburg#edited
Originally posted by trace
wow that looks awesome. will be used this UI with other versions of the one and only NSIS? 😛
The new UI is optional, so you don't need a special version of NSIS to use it. 🙂 It will remain in all later NSIS 2 versions.
trace#
The new UI is optional, so you don't need a special version of NSIS to use it. It will remain in all later NSIS 2 versions.
this was the thing i wanted to know. i know my english is bat so you probably misunderstood. thanx.
prodangle#
Looks a bit odd

For some reason, the rectangle along the top of my installer is showing empty, but I can't figure out what I'm doing wrong. I'm using modern2.exe from the alpha7 download at SF btw. The screenshot should show the prob I'm having
Joost Verburg#
Re: Looks a bit odd

Originally posted by prodangle
For some reason, the rectangle along the top of my installer is showing empty, but I can't figure out what I'm doing wrong. I'm using modern2.exe from the alpha7 download at SF btw. The screenshot should show the prob I'm having
You need to include some macros in your script to get it to work.

Have a look at the Examples\Modern UI directory.
prodangle#
Re: Re: Looks a bit odd

Originally posted by Joost Verburg

You need to include some macros in your script to get it to work...
DOH!!

Thanks a lot 🙂