Old 11th February 2008, 10:23   #41
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
You can use LangString too:

code:
LangString FILE ${LANG_ENGLISH} "English.txt"
LangString FILE ${LANG_FRENCH} "French.txt"
!insertmacro UMUI_PAGE_INFORMATION "${FILE}"


SuperPat is offline   Reply With Quote
Old 23rd February 2008, 19:01   #42
evin
Junior Member
 
evin's Avatar
 
Join Date: Oct 2006
Location: Hungary
Posts: 21
How can I make a Custom Page, with transparented text/label field? (text reading from .ini)
evin is offline   Reply With Quote
Old 24th February 2008, 10:36   #43
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Look at the NSIS\Examples\UltraModernUI\InstallOptions.nsi example

SuperPat is offline   Reply With Quote
Old 24th February 2008, 11:24   #44
evin
Junior Member
 
evin's Avatar
 
Join Date: Oct 2006
Location: Hungary
Posts: 21
Ok, but the Fields, are not transparented. I can't change this fact?
evin is offline   Reply With Quote
Old 24th February 2008, 15:22   #45
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
New build version 2008-02-24

- Added Ungarian Translation (By Tom Evin)
- Fixed Transparency bug in InstallOptions custom pages (See the InstallOptions.nsi example)
- Added missing DIRECTORY page in the NSIS + UMUI package

Download

SuperPat is offline   Reply With Quote
Old 27th February 2008, 13:34   #46
evin
Junior Member
 
evin's Avatar
 
Join Date: Oct 2006
Location: Hungary
Posts: 21
Not Ungarian, Hungarian.

How can I write into MUI_HEADER_TEXT field in FinishPage?
evin is offline   Reply With Quote
Old 28th February 2008, 07:58   #47
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Simply define
MUI_PAGE_HEADER_TEXT and/or MUI_UNSET MUI_PAGE_HEADER_SUBTEXT
before inserting the finishpage macro

SuperPat is offline   Reply With Quote
Old 28th February 2008, 08:27   #48
evin
Junior Member
 
evin's Avatar
 
Join Date: Oct 2006
Location: Hungary
Posts: 21
Oh, that was sooo easy.
thx.
evin is offline   Reply With Quote
Old 2nd March 2008, 14:56   #49
legcsabi
Junior Member
 
Join Date: Jan 2008
Posts: 7
Re: Information page

probably I'm a bit too new to nsis, but I cannot find out how to use Langstrings with Information page file names.

I get this compiler error:
File: "$(FILE)" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in macro UMUI_FUNCTION_INFORMATIONPAGE on macroline 24
Error in macro UMUI_PAGE_INFORMATION on macroline 19
Error in script "C:\Program Files\NSIS\Examples\UltraModernUI\Information.nsi" on line 44 -- aborting creation process

I tried both "$(FILE)", "${FILE}", "$FILE". Could you post a full working example?

Thx
legcsabi is offline   Reply With Quote
Old 2nd March 2008, 20:03   #50
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Indeed, we can't use LangString for include File, and of course, with the information page.

I will post a working example later

SuperPat is offline   Reply With Quote
Old 6th March 2008, 12:33   #51
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
New build version 2008-03-05

- Improved: the Information.nsi example show an information file according to the selected language

Download

SuperPat is offline   Reply With Quote
Old 8th March 2008, 19:02   #52
legcsabi
Junior Member
 
Join Date: Jan 2008
Posts: 7
Thanks, the new Information page works properly!

Now I wish you could somehow solve the slowness of SerialNumber page. After a bit of googling I found this page: http://forums.winamp.com/showthread.php?postid=2051082 which indicates that using ReserveFile can improve performance.

I was playing a bit with WriteINIStr, this function is called relatively frequently (7 times in UMUI_SERIALNUMBERPAGE_ADD_LABEL for instance). It only adds a value for an entry to a section in an INI file if it does not contain it, otherwise it rewrites the entry. This means that it has to scan through the whole file..
legcsabi is offline   Reply With Quote
Old 24th March 2008, 13:10   #53
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
New build version 2008-03-24

- Fixed: the "\" are replaced by "\\" in the confirm page because it showed a square in the place of a "\n", "\t"...

Download

SuperPat is offline   Reply With Quote
Old 2nd April 2008, 09:36   #54
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 185
Short question:

Can i use nsdialogs with UMUI?

Thanks
xBarns
xbarns is offline   Reply With Quote
Old 2nd April 2008, 12:27   #55
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
UMUI was not designed to work with nsDialog.

Nevertheless, You always can use nsDialg in your own custom page, bug you need to manually skin it.

SuperPat is offline   Reply With Quote
Old 3rd April 2008, 16:25   #56
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 185
Ok i changed to using InstallOptions, i just like the UMUI better.

One question though i have Label that i want to color Red, when i go and use

PHP Code:
!insertmacro INSTALLOPTIONS_INITDIALOG "Dialog_RetrieveLicence.ini"
 
Pop $0
ReadINIStr $R1 
"$PLUGINSDIR\Dialog_RetrieveLicence.ini" "Field 1" "HWND"
;SetCtlColors  $R1 "0xFF0000" "transparent" 
The text color is red, but the complete background of the dialog becomes grey.

Ist that a bug or a feature or am i missing something here?

Also it seems that the "Welcome Page" does not like $\r$\n for the title, since the german description of Welcome to.... is quite long a $\r$\n has been included but the second line is never displayed.
xbarns is offline   Reply With Quote
Old 4th April 2008, 08:52   #57
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
can you send an example script showing this problem?


For the problem of the welcome page, try this define:
!define MUI_WELCOMEPAGE_TITLE_3LINES

SuperPat is offline   Reply With Quote
Old 4th April 2008, 09:54   #58
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 185
i tried the "!define MUI_WELCOMEPAGE_TITLE_3LINES" but somehow it didn't work, does it have to be placed somewhere special?


I have attached the dialog and the contents of the function in the Zip File.
Attached Files
File Type: zip license.zip (784 Bytes, 375 views)
xbarns is offline   Reply With Quote
Old 4th April 2008, 14:17   #59
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
the define mustbe placed before the macro including the welcome page

SuperPat is offline   Reply With Quote
Old 4th April 2008, 15:14   #60
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 185
This didn't do the trick

!define MUI_WELCOMEPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_WELCOME
xbarns is offline   Reply With Quote
Old 4th April 2008, 20:37   #61
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
send your nsi script please

SuperPat is offline   Reply With Quote
Old 6th April 2008, 14:48   #62
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
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 is offline   Reply With Quote
Old 6th May 2008, 13:21   #63
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
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

SuperPat is offline   Reply With Quote
Old 8th May 2008, 13:54   #64
xbarns
Senior Member
 
xbarns's Avatar
 
Join Date: Aug 2007
Location: Frankfurt, Germany
Posts: 185
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
Attached Files
File Type: rar images.rar (32.3 KB, 366 views)
xbarns is offline   Reply With Quote
Old 8th May 2008, 17:14   #65
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
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

SuperPat is offline   Reply With Quote
Old 15th May 2008, 17:10   #66
DomiOh
Junior Member
 
Join Date: Jul 2004
Posts: 12
Why don't you put the new version at your sourceforge-project-page? It would be much easier to find.
DomiOh is offline   Reply With Quote
Old 16th May 2008, 06:07   #67
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 202
It is very good!!!

Born in: Xi'an, China
Live in: Shanghai, China
Name: 賈可(zh-Hant, trad.), 贾可(zh-Hans, simp.), Jia Ke (Pinyin).
Email: jiake@vip.qq.com
QQ: 137729898
jiake is offline   Reply With Quote
Old 16th May 2008, 07:41   #68
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Because it is uncomplete

SuperPat is offline   Reply With Quote
Old 16th May 2008, 09:07   #69
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 202
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.

Born in: Xi'an, China
Live in: Shanghai, China
Name: 賈可(zh-Hant, trad.), 贾可(zh-Hans, simp.), Jia Ke (Pinyin).
Email: jiake@vip.qq.com
QQ: 137729898
jiake is offline   Reply With Quote
Old 16th May 2008, 23:35   #70
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Quote:
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


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

SuperPat is offline   Reply With Quote
Old 19th May 2008, 13:01   #71
pospec
Senior Member
 
pospec's Avatar
 
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
Czech translation is attached
Attached Files
File Type: nsh czech.nsh (10.8 KB, 394 views)
pospec is offline   Reply With Quote
Old 19th May 2008, 13:28   #72
thek
Member
 
thek's Avatar
 
Join Date: Jun 2006
Location: Austria
Posts: 92
Hello Superpat

Already have some schedule to relase the updated UMUI?

Do you need help with some part of it?

nobs
thek is offline   Reply With Quote
Old 22nd May 2008, 20:28   #73
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
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.

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 May 2008, 07:43   #74
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
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.

SuperPat is offline   Reply With Quote
Old 23rd May 2008, 11:50   #75
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
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?

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 May 2008, 13:20   #76
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
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

SuperPat is offline   Reply With Quote
Old 25th May 2008, 13:57   #77
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Thanks a lot SuperPat! Gonna try it right now

BTW: Did you look at MultilanguagePage + Uninstaller problem yet?

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 May 2008, 20:45   #78
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
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

SuperPat is offline   Reply With Quote
Old 25th May 2008, 20:59   #79
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 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...

Last edited by LoRd_MuldeR; 25th May 2008 at 21:16.
LoRd_MuldeR is offline   Reply With Quote
Old 25th May 2008, 21:41   #80
SuperPat
Senior Member
 
SuperPat's Avatar
 
Join Date: Mar 2006
Location: France
Posts: 206
Another build version 2008-05-25

- Fixed: Bug with the Uninstaller MultiLanguage Page

Download

SuperPat 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