Skip to content
⌘ NSIS Forum Archive

Ultra-Modern UI

269 posts

SuperPat#
New build version 2008-04-06

- Based on NSIS 2.36
- Fixed: the InstallOptions page did not like the $\r$\n, it showed only the first line.

Download
SuperPat#
New build version 2008-05-05

- Based on NSIS 2.37
- Fixed better: the InstallOptions page did not like the $\r$\n, it showed only the first line.
- Fixed: NSIS shortcut in the NSIS+UMUI package

Download
xbarns#
I have found another bug, or probably i am just too dumb to use it.

If you look at the attached images (in the .rar) for

Image1.png i used

!insertmacro MUI_DEFAULT MUI_BGCOLOR transparent

and for Image2.png it was:

!insertmacro MUI_DEFAULT MUI_BGCOLOR FFFFFF

The problem as you can see with the transparent setting is that the Groupbox line shows through, if i use FFFFFF the second line under the Directory Picker has a white Background.

Is it possible to have the line of the group box disappear AND to have all the labels on the page with a transparent background?

Thx
SuperPat#
Yes but it is not an UMUI bug,
MUI_BGCOLOR don't work with transparency because it is not possible to hide the bar of groupbox
And for the label that change like in components, directory and installfile pages, the new text is written on the top of the old text and become unreadable.

Only the solution I know is to use a background image having plains colors at the position of theses labels
DomiOh#
Why don't you put the new version at your sourceforge-project-page? It would be much easier to find.
jiake#
I download it to try and found one problem.

${LangFileString} UMUI_TEXT_SETUPTYPE_MINIMAL_TEXT "Only requierd features will be installed. (Requires the less disk space)"

The word "requierd" is error.

The language file is all blank except English, the others needs to translate. I just translated a Chinese one to use myself. Because my English is poor, it is not so perfect. currently I'm a student.
SuperPat#
Originally posted by jiake
I download it to try and found one problem.

${LangFileString} UMUI_TEXT_SETUPTYPE_MINIMAL_TEXT "Only requierd features will be installed. (Requires the less disk space)"

The word "requierd" is error.
Tanks


Originally posted by jiake
The language file is all blank except English, the others needs to translate. I just translated a Chinese one to use myself. Because my English is poor, it is not so perfect. currently I'm a student.
English, French and Hungarian are complete,
German and PortugueseBR are outdated.
pospec#
Czech translation is attached 🙂
thek#
Hello Superpat

Already have some schedule to relase the updated UMUI?

Do you need help with some part of it?

nobs
LoRd_MuldeR#
Hi!

Apparently "!define MUI_LANGDLL_ALWAYSSHOW" doesn't work to force the installer to display the multilanguage page. The language selection will be skipped, if the language is stored in registry! How can I make the installer to ALWAYS show the multilanguage page? Also using a multilanguage page in an UNinstaller won't work. I get an error message as soon as I switch the language...

Tested with the "NSIS_2.37_UltraModernUI_1.00_2008-05-06.exe" package.
SuperPat#
Sorry, I d'ont have implemented this define for the multilanguage pages.

I will do it for the next release.
while awaiting, you can remove the define UMUI_LANGUAGE_REGISTRY_VALUENAME. The language won't be save in the redistery and the page will be allaws shown.
LoRd_MuldeR#
Yes, when I remove UMUI_LANGUAGE_REGISTRY_VALUENAME, then the multilanguage page will always be shown. But also the language won't be saved, so the previously selected language won't be selected by default. That wouldn't be a real problem, if I could use a multilanguage page in the Uninstaller. But currently I can't! Switching langauge via multilanguage page in an Uninstaller makes the installer abort with error message. Any chance for a fix?
SuperPat#
New build version 2008-05-25

- Added: New Czech translation by Pospec
- Fixed: Little mistake in the English language file
- Added: New UMUI_LANGUAGE_ALWAYSSHOW define that allow you to always shown the MultiLanguage page and the LangDLL Dialog (For the last one, it replace the MUI_LANGDLL_ALWAYSSHOW define)

Download
LoRd_MuldeR#
Thanks a lot SuperPat! Gonna try it right now 🙂

BTW: Did you look at MultilanguagePage + Uninstaller problem yet?
SuperPat#
I will search a solution for this problem:

When UMUI try to relaunch the uninstaller it launch the file in the directory "Temp\~nsu.tmp\Au_.exe" instead of in the install directory and they can't run Au_.exe directly, I need to find the right command line argument to do this
LoRd_MuldeR#edited
Originally posted by SuperPat
I will search a solution for this problem:

When UMUI try to relaunch the uninstaller it launch the file in the directory "Temp\~nsu.tmp\Au_.exe" instead of in the install directory and they can't run Au_.exe directly, I need to find the right command line argument to do this
That's exactly what I though.

The problem is: The original uninstaller only passes the install directory to the temporary uninstaller (e.g. Au_.exe _?=C:\Program Files (x86)\MPlayer for Windows\), not the path to the original uninstaller (e.g. Au_.exe _?=C:\Program Files (x86)\MPlayer for Windows\Uninstall.exe). I have no idea how to find out the EXE filename without passing it to the temporary installer too. But that would require re-writing parts of NSIS itself, I guess...


[EDIT]

Maybe you can extract the "_?=" option from Au_.exe's commandline somehow and then directly restart the Au_.exe by passing the correct value of "_?=" plus the "/L" option...
SuperPat#
Another build version 2008-05-25

- Fixed: Bug with the Uninstaller MultiLanguage Page

Download
LoRd_MuldeR#
That was fast! Works fine 🙂

One suggestion though:
Change "UMUI_DISABLED_BUTTON_TEXT_COLOR" to "707070" for the "gray" Skin. You really can't distinguish disabled buttons from enabled ones otherwise...

Thanks for your work 👍
LoRd_MuldeR#
Sorry, found another possible problem 😕

As soon as I add this to my script:
!define UMUI_COMPONENTSPAGE_REGISTRY_VALUENAME "components"
I get the following compile error:
MakeNSIS v2.37 - Copyright 1995-2008 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.

[...]

Processing script file: "Installer.nsi"
!include: "D:\NSIS\Include\UMUI.nsh"

[...]

!define: "UMUI_PARAMS_REGISTRY_ROOT"="HKLM"
!define: "UMUI_PARAMS_REGISTRY_KEY"="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DB9E4EAB-2717-499F-8D56-4CC8A644AB60}"
!define: "UMUI_LANGUAGE_REGISTRY_VALUENAME"="Language"
!define: "UMUI_LANGUAGE_ALWAYSSHOW"=""
!define: "UMUI_COMPONENTSPAGE_INSTTYPE_REGISTRY_VALUENAME"="insttype"
!define: "UMUI_COMPONENTSPAGE_REGISTRY_VALUENAME"="components"

[...]

Processed 1 file, writing output:
Adding plug-ins initializing function... Done!
Error: resolving install function "umui_components" in function "mui.ComponentsPre_136.5.9"
Note: uninstall functions must begin with "un.", and install functions must not
Error - aborting creation process
!system: returned 1, aborting
Commenting out that line and it compiles again 😉
SuperPat#
In fact you have forgotten to insert the component declaration for the uninstaller

!insertmacro UMUI_DECLAREUNCOMPONENTS_BEGIN
.....
!insertmacro UMUI_DECLAREUNCOMPONENTS_END
LoRd_MuldeR#
Hi!

I got reports from several people that the buttons are not displayed under Vista. Is that a known problem of UMUI and is there any known workaround?

This picture was sent to me:
Host your images online with an easy to use image uploader, albums, photo hosting, sharing, dynamic image resizing on web and mobile.


Thanks in advance...
Sheik#
Hi SuperPat,
After switching to MUI2 and the new nsdialog code, I have to tell you, I REALLY think you should convert to using nsdialogs instead of using InstallOptions.
nsdialogs has a lot of our outstanding problems with InstallOptions and UMUI fixed.
I suspect most of the pending "bugs" you have in UMUI will go away if you convert to nsdialogs...
SuperPat#
I would not switch to nsDialg as long as it not be able to provide TreeView and RichText controls.

Moreother, that would imply to have to rewrite entirety the code, and it would take months...
I prefer finalize the current version.
And InstallOptionEx working well, nsDialog has a limited interest...
LoRd_MuldeR#
Well, I already use UMUI_USE_INSTALLOPTIONSEX, but apparently the buttons are not drawn under Vista. See screenshot in my post above...

Is it possible to fix that?
SuperPat#
This is the last bug of InstallOptionsEx (not only on vista)
with transparent icons which having gray background.