Old 25th May 2008, 22:05   #81
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
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

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 26th May 2008, 09:44   #82
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
OK

SuperPat is offline   Reply With Quote
Old 26th May 2008, 10:43   #83
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Sorry, found another possible problem

As soon as I add this to my script:
code:
!define UMUI_COMPONENTSPAGE_REGISTRY_VALUENAME "components"



I get the following compile error:
code:
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

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 26th May 2008, 11:31   #84
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
In fact you have forgotten to insert the component declaration for the uninstaller

!insertmacro UMUI_DECLAREUNCOMPONENTS_BEGIN
.....
!insertmacro UMUI_DECLAREUNCOMPONENTS_END

SuperPat is offline   Reply With Quote
Old 26th May 2008, 12:29   #85
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Thanks again!

I totally missed UMUI_DECLARE(UN)COMPONENTS in my script
LoRd_MuldeR is offline   Reply With Quote
Old 31st May 2008, 18:04   #86
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
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:
http://img233.imageshack.us/my.php?i...uivistauk2.png

Thanks in advance...

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 31st May 2008, 19:39   #87
Sheik
Senior Member
 
Join Date: Feb 2007
Posts: 152
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...
Sheik is offline   Reply With Quote
Old 31st May 2008, 23:23   #88
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
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...

SuperPat is offline   Reply With Quote
Old 1st June 2008, 12:36   #89
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
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?

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 1st June 2008, 20:44   #90
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
This is the last bug of InstallOptionsEx (not only on vista)
with transparent icons which having gray background.

SuperPat is offline   Reply With Quote
Old 1st June 2008, 20:49   #91
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Quote:
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...

http://img233.imageshack.us/my.php?i...uivistauk2.png

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

Thanks for reply

Last edited by LoRd_MuldeR; 1st June 2008 at 22:43.
LoRd_MuldeR is offline   Reply With Quote
Old 2nd June 2008, 07:42   #92
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
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...)

SuperPat is offline   Reply With Quote
Old 2nd June 2008, 10:58   #93
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Quote:
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
LoRd_MuldeR is offline   Reply With Quote
Old 19th June 2008, 19:41   #94
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
http://guerin45.free.fr/UltraModernUI/

Quote:
Erreur 503 - Service indisponible
LoRd_MuldeR is offline   Reply With Quote
Old 20th June 2008, 08:46   #95
falkengott
Junior Member
 
Join Date: Jun 2008
Posts: 6
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.
falkengott is offline   Reply With Quote
Old 20th June 2008, 17:26   #96
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
I have found why:

Buttons are not drawn if the XPStyle is on.

The bug with some wista is due to other thing.

SuperPat is offline   Reply With Quote
Old 20th June 2008, 17:31   #97
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Quote:
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?
LoRd_MuldeR is offline   Reply With Quote
Old 20th June 2008, 17:55   #98
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
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.

SuperPat is offline   Reply With Quote
Old 20th June 2008, 18:16   #99
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Thank you! I'll give it a try...

But it's 2008-06-15 not 2008-03-15, right? ^^

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 20th June 2008, 18:28   #100
falkengott
Junior Member
 
Join Date: Jun 2008
Posts: 6
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 is offline   Reply With Quote
Old 7th July 2008, 08:16   #101
falkengott
Junior Member
 
Join Date: Jun 2008
Posts: 6
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?
falkengott is offline   Reply With Quote
Old 7th July 2008, 08:42   #102
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
I am not sure to understand the question.

You can use the define to change the background color with UMUI:
!define MUI_BGCOLOR 4C72B2

SuperPat is offline   Reply With Quote
Old 15th July 2008, 02:03   #103
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
This is the second report of a crash in NSISArray with my UMUI-based installer:
http://forum.doom9.org/showpost.php?...3&postcount=33

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

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI

Last edited by LoRd_MuldeR; 15th July 2008 at 02:19.
LoRd_MuldeR is offline   Reply With Quote
Old 15th July 2008, 07:37   #104
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
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.

SuperPat is offline   Reply With Quote
Old 15th July 2008, 10:06   #105
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
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...

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 15th July 2008, 17:14   #106
falkengott
Junior Member
 
Join Date: Jun 2008
Posts: 6
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
falkengott is offline   Reply With Quote
Old 16th July 2008, 07:42   #107
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
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

SuperPat is offline   Reply With Quote
Old 16th July 2008, 10:22   #108
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Quote:
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?

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 16th July 2008, 14:34   #109
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
Maybe, but NSISArray dynamically alloc the item and dynamically realloc the array for new items... I will try some things.

SuperPat is offline   Reply With Quote
Old 19th July 2008, 17:15   #110
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
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...

SuperPat is offline   Reply With Quote
Old 19th July 2008, 23:07   #111
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Thanks for the fix, SuperPat

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 21st July 2008, 11:02   #112
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Another report of buttons not showing up on Vista:

Quote:
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

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI

Last edited by LoRd_MuldeR; 21st July 2008 at 12:21.
LoRd_MuldeR is offline   Reply With Quote
Old 21st July 2008, 15:31   #113
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
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...

SuperPat is offline   Reply With Quote
Old 21st July 2008, 15:33   #114
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Quote:
Originally posted by SuperPat
Use the define UMUI_NO_BUTTONIMAGE to disable the skin of buttons
Ahhh, thank you

Quote:
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...

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 23rd July 2008, 22:49   #115
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
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...

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 24th July 2008, 07:40   #116
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 208
You can use:
!define MUI_CUSTOMFUNCTION_GUIINIT myGuiInit
Function myGuiInit
; If Vista
SkinnedControls::unskinit
FunctionEnd

SuperPat is offline   Reply With Quote
Old 24th July 2008, 12:38   #117
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
I will try that! Thank you

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 24th July 2008, 13:02   #118
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Uhm, sorry. But calling "SkinnedControls::unskinit" in my MUI_CUSTOMFUNCTION_GUIINIT function will cause the installer to crash immediately...

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 1st August 2008, 16:43   #119
WebMatze
Member
 
Join Date: Nov 2004
Location: France
Posts: 79
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
Attached Images
File Type: png ultra.png (141.3 KB, 275 views)
WebMatze is offline   Reply With Quote
Old 1st August 2008, 16:56   #120
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
You can add "!define UMUI_NO_BUTTONIMAGE" to workaround the problem...

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Tags
umui

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump