Old 13th June 2009, 20:59   #201
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 tried with UAC, but but I did not find any problems...
The inner process has a higher privilege level too.
When using the UAC Plugin only the "inner" process is elevated. The "outer" process runs with RequestExecutionLevel user. This way the "inner" process, while being elevated, can ask the "outer" one to run jobs at user level. This is required, because once a process is elevated, all processes it creates are elevated too. But this causes serious problems. If you launch a normal application with elevated rights, then Drag&Drop will be disabled. And other strange things happen! So we need to be able to launch Non-elevated processes from an elevated installer. That's why the UAC Plugin is so important: It allows to run the "main" (inner) installer at elevated level and do the install tasks, but we can still launch user processes from the "outer" process.

Now the problem with UMUI is that it restarts the installer, when the language is changed. When using UAC Plugin, only the "inner" installer will be restarted. The "outer" one will simply terminate! Because the "outer" one was waiting for the "inner" one and the "inner" one has terminated, so the "outer" one does too. It can't know that the "inner" one created a child process, just before it terminated. Well, that's the usual ExecWait behavior. As a result only the "inner" (elevated) installer will be running after language change in UMUI. All calls that would involve the "outer" installer, such as UAC::Exec will fail! That's a serious problem and it means we can't use UMUI with UAC right now.

I came up with the following workaround for that:
http://pastie.org/510964

Any comments would be welcome

It's really important to get UMUI working with UAC...

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 13th June 2009, 22:40   #202
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
New build version 2009-06-14

- Fixed: Problem with the UAC plugin when UMUI restart the installer.

Download


Last edited by SuperPat; 14th June 2009 at 00:05.
SuperPat is offline   Reply With Quote
Old 13th June 2009, 22:45   #203
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Quote:
Originally posted by SuperPat
New build version 2009-06-14

- Fixed: Problem with the UAC plugin when UMUI restart the installer.

Download
Oh, wow. That was fast. Thanks!

But your "Download" link redirects to an empty folder. Do I miss something?

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

Last edited by LoRd_MuldeR; 13th June 2009 at 23:04.
LoRd_MuldeR is offline   Reply With Quote
Old 14th June 2009, 00:06   #204
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Oups, very old link, sorry (last post edited):

http://sourceforge.net/project/showf...ease_id=608330

Moderator, please can you update the link in the first post?

SuperPat is offline   Reply With Quote
Old 14th June 2009, 00:16   #205
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Ahhh, 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 25th June 2009, 09:29   #206
logue
Junior Member
 
Join Date: Mar 2009
Location: Japan
Posts: 8
I've made Japanese language file for UMUI.
Attached Files
File Type: nsh japanese.nsh (10.9 KB, 231 views)
logue is offline   Reply With Quote
Old 26th June 2009, 18:48   #207
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Thanks a lot

SuperPat is offline   Reply With Quote
Old 6th December 2009, 11:13   #208
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
New build version 2009-12-06

- Based on NSIS v2.46
- Added: Japanese translation (by logue)

Download

SuperPat is offline   Reply With Quote
Old 6th December 2009, 11:26   #209
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
It seems that the world "u_l_t_r_a_m" is censored in this board, so I can't post link containing these characters and and the link of my signature does not work anymore...

Please, is an administrator could remove this word from the list?

SuperPat is offline   Reply With Quote
Old 6th December 2009, 11:48   #210
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
SuperPat, thanks for the update

As a temporary workaround for the link problem, you could use:
http://*******.com/

EDIT: Arrgh, T.I.N.Y_U.R.L is censored as well

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 7th December 2009, 06:53   #211
forge
Junior Member
 
Join Date: Dec 2009
Location: Poland
Posts: 1
found unhandled register $4 in MUI_FUNCTION_INSTFILESPAGE macro

System::Call "user32::InvalidateRect(i,i,i)i (r8, 0, 1).r4"

r4 => $4 data lost after this Call or it should be like that ???

Attach: Polish version language file for UMUI

Good Job M8
forge is offline   Reply With Quote
Old 20th December 2009, 13:49   #212
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
New build version 2009-12-20

- Fixed: Unhandled register $4 in MUI_FUNCTION_INSTFILESPAGE macro
- Added: Polish translation (by forge)

Download

SuperPat is offline   Reply With Quote
Old 22nd December 2009, 00:37   #213
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
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 25th December 2009, 12:48   #214
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
New build version 2009-12-25

- Fixed: the UMUI_ADDITIONALTASKS_IF_NOT_CKECKED macro does not work
- Fixed: If you use the Abort Instruction in the alternative start menu custom leave function, the pas was not displayed
- The Context radio buttons of the alternative start menu page are disabled if the installer doe not have administrator rights (Start menu shortcuts can only be created for current user).

Download

Merry Christmas!

SuperPat is offline   Reply With Quote
Old 25th December 2009, 13:24   #215
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
SuperPat, can you compile UMUI installers with nsis-2.46-strlen_8192.zip ???

It always crashes on me. I tried NSIS 2.45 and NSIS 2.46 ...

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 25th December 2009, 16:48   #216
HSorgYves
Junior Member
 
Join Date: Dec 2009
Posts: 36
WOW, very quick release! Most problems reported yesterday (!!!) have already been fixed. Using UMUI was the right choice...

Keep on the good work!

Best Regards,
Yves
HSorgYves is offline   Reply With Quote
Old 26th December 2009, 11:08   #217
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Quote:
Originally posted by LoRd_MuldeR
SuperPat, can you compile UMUI installers with nsis-2.46-strlen_8192.zip ???

It always crashes on me. I tried NSIS 2.45 and NSIS 2.46 ...
UMUI was developed to run with the normal version of NSIS.

Can you send me an example script that crash?

SuperPat is offline   Reply With Quote
Old 26th December 2009, 12:04   #218
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Quote:
Originally posted by SuperPat
UMUI was developed to run with the normal version of NSIS.

Can you send me an example script that crash?
Yes, of course. But it's a pretty complex script:
http://code.google.com/p/mulder/sour.../MPlayer/Setup

No idea what exactly triggers the crash, but it's always at the same line

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 December 2009, 14:44   #219
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
can you send the error log?

SuperPat is offline   Reply With Quote
Old 26th December 2009, 17:52   #220
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Sure. Here we go:
http://i47.tinypic.com/2s0og05.png

The log:
http://www.mediafire.com/file/htzmjf...sh_Log.txt.bz2

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 2nd January 2010, 20:27   #221
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Quote:
Originally posted by LoRd_MuldeR
SuperPat, can you compile UMUI installers with nsis-2.46-strlen_8192.zip ???

It always crashes on me. I tried NSIS 2.45 and NSIS 2.46 ...
It seem that UMUI won't compile with the large string version. NSIS crash...

More info:
http://forums.winamp.com/showthread....postid=2613197

SuperPat is offline   Reply With Quote
Old 26th March 2010, 05:43   #222
Alfaromeo
Member
 
Join Date: Mar 2008
Posts: 73
Superpat,

I remember there was an issue with changing text color on the dialogs using UMUI_TExt_LIGHTCOLOR . Was this fixed ?
Alfaromeo is offline   Reply With Quote
Old 26th March 2010, 12:50   #223
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Quote:
Originally Posted by Alfaromeo View Post
Superpat,

I remember there was an issue with changing text color on the dialogs using UMUI_TExt_LIGHTCOLOR . Was this fixed ?
I was not aware there was a problem with this define but it seems to work correctly.

SuperPat is offline   Reply With Quote
Old 20th April 2010, 07:51   #224
Alfaromeo
Member
 
Join Date: Mar 2008
Posts: 73
Superpat,

I get a black background around the license page checkbox using the below code in my script , using the UMUI latest version.

!define UMUI_UNIQUEBGIMAGE
!define UMUI_UNUNIQUEBGIMAGE

!define UMUI_PAGEBGIMAGE
!define UMUI_UNPAGEBGIMAGE

!define UMUI_PAGEBGIMAGE_BMP "Path to BMP file"

Please explain
Alfaromeo is offline   Reply With Quote
Old 21st April 2010, 08:47   #225
Alfaromeo
Member
 
Join Date: Mar 2008
Posts: 73
Anybody ? I'm getting these black backgrounds on all radio buttons and checkboxes when I use XPStyle On.
Alfaromeo is offline   Reply With Quote
Old 21st April 2010, 08:53   #226
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Quote:
Originally Posted by Alfaromeo View Post
I get a black background around the license page checkbox using the below code in my script , using the UMUI latest version.

!define UMUI_UNIQUEBGIMAGE
!define UMUI_UNUNIQUEBGIMAGE

!define UMUI_PAGEBGIMAGE
!define UMUI_UNPAGEBGIMAGE

!define UMUI_PAGEBGIMAGE_BMP "Path to BMP file"
I can not reproduce this problem

SuperPat is offline   Reply With Quote
Old 21st April 2010, 09:26   #227
Alfaromeo
Member
 
Join Date: Mar 2008
Posts: 73
Please find this working example for your reference

code:

SetCompressor LZMA
!include UMUI.nsh

!define UMUI_TEXT_COLOR "000000"
!define MUI_BGCOLOR "d9dbdc"
!define UMUI_TEXT_INPUTCOLOR 003366
!define UMUI_UNIQUEBGIMAGE
!define UMUI_UNUNIQUEBGIMAGE

!define UMUI_PAGEBGIMAGE
!define UMUI_UNPAGEBGIMAGE

!define UMUI_PAGEBGIMAGE_BMP "Path to BMP file"

LicenseForceSelection checkbox
OutFile "test.exe"

!insertmacro MUI_PAGE_LICENSE "Path to license file"
!insertmacro MUI_LANGUAGE "English"
XPStyle On

Section Main
SectionEnd



Please have XP theme enabled before testing the above script
Alfaromeo is offline   Reply With Quote
Old 22nd April 2010, 10:40   #228
Alfaromeo
Member
 
Join Date: Mar 2008
Posts: 73
Were you able to reproduce this problem ?
Alfaromeo is offline   Reply With Quote
Old 28th April 2010, 08:07   #229
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
With XPStyle On, the SetCtlColors instruction is ignored on static pages radio buttons and checkboxes.

You need to remove the XPStyle instruction or the MUI_LICENSEPAGE_CHECKBOX define.

SuperPat is offline   Reply With Quote
Old 6th May 2010, 13:30   #230
Alfaromeo
Member
 
Join Date: Mar 2008
Posts: 73
Never mind , I turned the XPStyle off for now .

I have a requirement now to bypass the UMUI Update page and show the license page .
My sequence of dialogs are

Welcome -> License -> Directory -> install files- > finish

On upgrade , I need to show the License -> installfiles -> Finish

I tried to have a condition in the Welcome show function which detect the version and on being higher I navigate to License Page . But somehow the installation seems very slow and erroneous in this sequence .
Is this the right way to skip the update page ?
Alfaromeo is offline   Reply With Quote
Old 7th May 2010, 00:55   #231
Alfaromeo
Member
 
Join Date: Mar 2008
Posts: 73
Any suggestions
Alfaromeo is offline   Reply With Quote
Old 7th May 2010, 20:38   #232
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
You can use the UMUI install flags:

For example, in your onInit function you can set the flag:

!insertmacro UMUI_SET_INSTALLFLAG ${UMUI_UPDATE}

The welcome and directory pages are aborted by this flag.

The license Page is also aborted by this flag but you can override this behavior by defining:

!define UMUI_ABORT_IF_INSTALLFLAG_IS ${UMUI_CANCELLED}
!insertmacro MUI_PAGE_WELCOME

SuperPat is offline   Reply With Quote
Old 2nd June 2010, 12:13   #233
evin
Junior Member
 
evin's Avatar
 
Join Date: Oct 2006
Location: Hungary
Posts: 21
I have a little problem. I tried to use the TaskbarProcess plugin, but it doesn't work with UMUI, because this use the PageCallbacks [show_function] of the install page, which isn't in the UMUI. There is any other option, using this plugin in UMUI?
THX
evin is offline   Reply With Quote
Old 2nd June 2010, 12:20   #234
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 669
use the MUI_PAGE_CUSTOMFUNCTION_SHOW macro to define the callback function
(See the UMUI manual: http://******odernui.sourceforge.net...ustomFunctions)
jpderuiter is offline   Reply With Quote
Old 2nd June 2010, 16:19   #235
evin
Junior Member
 
evin's Avatar
 
Join Date: Oct 2006
Location: Hungary
Posts: 21
And works.
Thanks
evin is offline   Reply With Quote
Old 1st August 2010, 17:19   #236
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Sorry for the long time since the last build

New build version 2010-08-01

- Updated: NSISArray plugin to version 2.4 that using the new API version. The old version 2.2 of the DLL plugin, using the old API, is kept for user having NSIS versions prior to 2.42.
- Modified: UMUI installers now install the new API version of the InstallOptionsEx plugin instead of the legacy version for user having NSIS versions 2.42 or later.
- Added: Configuration define in the Include\UMUI.nsh and Include\MUIEx.nsh files to choose if UMUI need to use the old API version.
- Fixed: Missing installing two files (exdll-vs2008.sln, exdll-vs2008.vcproj in examples\plugin directory) in the NSIS+UMUI package.
- Fixed: Warning in the confirm page if UMUI_CONFIRMPAGE_TEXTBOX is not defined.
- Added: The information page now support natively multiple translated information files. See the Information.nsi example for details.
- Fixed: The last two characters of the last line of text files where dropped in information pages.
- Optimization: UMUI use the $EXEPATH variable instead of the System plugin to find the installer full path. Consequently, UMUI is now compatible with NSIS 2.26 at least.

TODO:
- If (components, installdir...) pages are aborted because the user choose the minimal, standard or complete option in the install type page, their default properties will be saved in the registry.
- Add support for the large string version of NSIS.
- Create an Unicode version of Ultra Modern UI and its plugins compatible with the incoming version of NSIS.

Download

SuperPat is offline   Reply With Quote
Old 11th November 2010, 15:26   #237
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
New build version 2010-11-11

- Fixed: Bug withthe LangDLL plugin that showed bad languages list when the MUI_LANGDLL_ALLLANGUAGES option was not used.

TODO:
- Fix: If (components, installdir...) pages are aborted because the user choose the minimal, standard or complete option in the install type page, their default properties will be saved in the registry.
- Add: support for the large string version of NSIS.
- Create an Unicode version of Ultra Modern UI and its plugins compatible with the incoming version of NSIS.
- Improve: The documentation is outdated and the SkinnedControls plugin documentation is non-existant. So you can see examples to see all properties.
- Improve: Need to rewrite one of the macros managing "UMUI Flags" (It allows, among other things, what options were chosen in the different pages ...).

Download

SuperPat is offline   Reply With Quote
Old 12th January 2011, 09:42   #238
Tallmaris
Junior Member
 
Join Date: Jan 2011
Posts: 10
Hi SuperPat,

I'm trying to use the UMUI for a MultiLanguage installer. What I found is that if I try to add Russian in my installer all I get is garbage in the interface. I tried compiling using unicode-NSIS but this seems to break the SkinnedControls plugin (I get an error with a message in Chinese and I get no language selection box). I also tried with the example provided but I have the same problem.

I reckon I have two options here:
1) Do not show Russian if the codepage is not compatible
2) Make SkinnedControls work with Unicode

Do you have an idea on both those solutions and what would be the correct way to proceed?

Thanks!
Tallmaris is offline   Reply With Quote
Old 12th January 2011, 10:56   #239
DrO
 
Join Date: Sep 2003
Posts: 27,880
Quote:
Originally Posted by SuperPat View Post
TODO:
- Create an Unicode version of Ultra Modern UI and its plugins compatible with the incoming version of NSIS.
Tallmaris: that's on the todo list from the last (and previous changlogs) so until SuperPat / someone else sorts it out then you're going to keep having the issue you are seeing i believe (though the code for the plug-in should be available so you could compile a version yourself if needed).

-daz
DrO is offline   Reply With Quote
Old 13th January 2011, 08:55   #240
Tallmaris
Junior Member
 
Join Date: Jan 2011
Posts: 10
Cool

HI there,

Sorry I had to read the TODO list before posting... Anyway, I went the hard way (not that hard once you know what to do but I'm pretty noob in C++) and recompiled the SkinnedControls plugin. I have attached the source code and the compiled dll (it is in the plugins folder) for anyone wanting to give it a shot.

The problem I have now is that the UI_PAGE_MULTILANGUAGE is not appearing, probably because I am using InstallOptionsEx which again is not Unicode. I'll see what I can do with it (I'm afraid I don't have the source code tho) or maybe switch to InstallOptions and get rid of the TreeView view in the StartMenu page.

Anyway, enjoy the Unicode SkinnedControls (provided "as-is" with no warranty etc. etc.)
Attached Files
File Type: zip SkinnedControls.zip (235.2 KB, 427 views)

Last edited by Tallmaris; 13th January 2011 at 08:56. Reason: typo
Tallmaris 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