Skip to content
⌘ NSIS Forum Archive

Ultra-Modern UI

269 posts

LoRd_MuldeR#edited
Originally posted by SuperPat
This is the last bug of InstallOptionsEx (not only on vista)
with transparent icons which having gray background.
But this doesn't happen on XP. I've never seen it happen myself!
Only some people running Vista sent bug reports to me...

Host your images online with an easy to use image uploader, albums, photo hosting, sharing, dynamic image resizing on web and mobile.


So you are saying that using a different skin (not gray) might fix it?

Thanks for reply 🙂
SuperPat#
I thought that you spoke about buttons in the InstallOptionsEx pages,

This problem has nothing to do with InstallOptionEx, but I never had this problem in any vista I have tested (x32, x64, RTM and SP1).

Can you tell me more about your configuration, (UAC activated, user account (limited or admin...)
LoRd_MuldeR#
Originally posted by SuperPat
I thought that you spoke about buttons in the InstallOptionsEx pages,

This problem has nothing to do with InstallOptionEx, but I never had this problem in any vista I have tested (x32, x64, RTM and SP1).

Can you tell me more about your configuration, (UAC activated, user account (limited or admin...)
As said before: I don't use Vista. I only use WinXP and it all works perfectly fine here. Nevertheless people send bugreports to me that buttons are missing under Vista. Also the above screenshot was sent to me.

Any help would be appreciated...

Cheeeeeeers
MuldeR
falkengott#
Depending on the missing Buttons:

I had the same on my XP when i used a NSI file that was before based on XPUI. Exactly the same "non-showing" buttons. Then i re-build the .nsi from scratch based on the UMUI Basic.nsi and than it works perfectly. I didn't compare the two therefore i don't know what it was.

Another question: does anyone know where i can find or get the WANSIS source code that runs after compilation with VS 2005? I'm no C++ guy so i opend the VS2003 based sourcecode in VS2005, let 2005 convert, included all the SDK stuff, compiled without error but didn't run. Shows up an error in the example.nsi in .onGuInit and only tells me: wansis error: c:\......\temp\..\winamp_gen.bmp. No idea why.
SuperPat#
I have found why:

Buttons are not drawn if the XPStyle is on.

The bug with some wista is due to other thing.
LoRd_MuldeR#
Originally posted by SuperPat
I have found why:

Buttons are not drawn if the XPStyle is on.

The bug with some wista is due to other thing.
I do not use XPStyle, but still I get reports that Buttons are not drawn. I could not reproduce that problem on my own machines so far, but I do not have a Vista machine here. Also I got reports that the installer crashes in NSISArray.dll when "Custom" setup is selected. Since I do not call NSISArray.dll explicitly anywhere in my installer, it must be some problem caused by UMUI. But again I cannot reproduce the problem. I only got a bugreport from a user...

BTW: Your web-site is still down. Has it moved maybe?
SuperPat#
New build version 2008-03-15

- Fixed: An other mistake in English language file
- Updated: NSISArray to the last version 1.8.

Download

Files are now hosted on sourceforge.net

Moderators: please update the download link on the first page.
falkengott#
ok .. i got a VS2003 .. compile works.

Now lets see if i can do what i want to do as non C++ guy.

SuperPat: you are right .. it was XpStyle ON MY MACHINE .. i compared it meanwhile.
falkengott#
Could it be that i'm to stupid?

How to set the StartMenuPage Background color if i have to use the alternate startmenuPage (!insertmacro UMUI_PAGE_ALTERNATIVESTARTMENU Application $STARTMENU_FOLDER) like in example startmenu.nsi?
SuperPat#
I am not sure to understand the question.

You can use the define to change the background color with UMUI:
!define MUI_BGCOLOR 4C72B2
LoRd_MuldeR#edited
This is the second report of a crash in NSISArray with my UMUI-based installer:


Since I don't use NSISArray in my own code, it must be something in UMUI's "internal" code or a bug in NSISArray itself. I don't know. But the crash either occurs when leaving the "directory" page or when creating/showing the "startmenu" page. Any ideas on what could be the problem?

I cannot reproduce the crash on my own machine 😕

Thanks in advance 🙂
SuperPat#
Apparently, the bug is due to NSISArray (use in the alternative start menu page).
As I am not the developper of NSISArray and as I can't reproduce this crash, I can't fix it myself.
LoRd_MuldeR#
Well, maybe the array simply overflows for some reason. That might be: Too many items (folders or shortcuts) in the startmenu directory or very long filenames. Anything like that possible? Also NSISList might be worth a look if NSISArray fails...
falkengott#
Superpat: i only want to change the background color of the alternate startmenupage part (used with treeview) like

MUI_LICENSEPAGE_BGCOLOR

not the whole Background.

I cant find a ALTERNATIVESTARTMENU_BGCOLOR (e.g.)

to change the BG of the alternativestartmenupage.

Please tell me where and how to set the Background of the StartMenuPage in your example StartMenu.nsi

BTW: great work your UMUI
SuperPat#
the UMUI_BGINPUTCOLOR define can skin all treeview, droplist, listbox, textinput of your installer.

They are any define to skin only the startmenu treeview because the page is skinned automatically by the INSTALLOPTIONS_DISPLAY macro
LoRd_MuldeR#
Originally posted by LoRd_MuldeR
Well, maybe the array simply overflows for some reason. That might be: Too many items (folders or shortcuts) in the startmenu directory or very long filenames. Anything like that possible? Also NSISList might be worth a look if NSISArray fails...
Sorry, an comment on this SuperPat?
SuperPat#
Maybe, but NSISArray dynamically alloc the item and dynamically realloc the array for new items... I will try some things.
SuperPat#
New build version 2008-07-19

- Fixed: Crash on the Alternative Start Menu page when more than seven sub-directory levels appear in the Start Menu.
- Updated: NSIS to the last version 2.38.
- Doc: Beginning of updated documentation.

Download

LoRd_MuldeR:
The crash happened when the script tried to read items (with the NSISArray:Read function) added in the eighth lists. To corrected it, I simply limited the search of subdirectory to only 7 levels instead of eight as before. NSISArray is limited to eight lists, I did not understand why it crashed when it read items at the eighth...
LoRd_MuldeR#edited
Another report of buttons not showing up on Vista:

Hey, wasn't sure where to bring this up so figured PM would be better, i came across abit of a strange occurance with your mplayer installer, downloaded the most upto date build and on vista x64 the back next and cancel buttons are blank, all you see is a white square.

I had to guess where they were 🙂

Lucky i got it first go, i took a screenshot if you'd like to see.
Would it be possible to detect Vista and disable SkinnedButtons in that case?
At least until a proper fix is found...

Thanks in advance 🙂


[EDIT]

An option to disable skinned buttons (but keep the skin) would be very helpful as a temporary workaround too 😉
SuperPat#
Use the define UMUI_NO_BUTTONIMAGE to disable the skin of buttons

For Vista: I can't disable it because it works perfectly with all tested computers, in 32/64 bits, admin/user rights, UAC/noUAC.
The only thing that I did not try is with WindowBlinds...
LoRd_MuldeR#
Originally posted by SuperPat
Use the define UMUI_NO_BUTTONIMAGE to disable the skin of buttons
Ahhh, thank you 🙂

Originally posted by SuperPat
For Vista: I can't disable it because it works perfectly with all tested computers, in 32/64 bits, admin/user rights, UAC/noUAC.
The only thing that I did not try is with WindowBlinds...
Hmmm, I see. 😕

However I get those reports for some reason, it was not the first one...
LoRd_MuldeR#
I got feedback from the Vista user that UMUI_NO_BUTTONIMAGE fixed the "missing buttons" problem on his system. He also reported the scrollbars are displayed correctly, so UMUI_NO_SCROLLBARIMAGE is not need for some reason. Unfortunately the UMUI_NO_BUTTONIMAGE define will disable the skinned buttons at compile time, for all users. I would like to trigger that on runtime, in my .onInit function. Would it be possible to implement that? Thanks...
SuperPat#
You can use:
!define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit
Function myGuiInit
; If Vista
SkinnedControls::unskinit
FunctionEnd
LoRd_MuldeR#
Uhm, sorry. But calling "SkinnedControls::unskinit" in my MUI_CUSTOMFUNCTION_GUIINIT function will cause the installer to crash immediately...
WebMatze#
same problem with the buttons and Vista.
I downloaded the latest version 2008.07.19 and tried to install it, all buttons are invisible and instead i only see grey squares.

My OS: Windows Vista x64 SP1