Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Testing pre-installer error messages (http://forums.winamp.com/showthread.php?t=250493)

bnicer 6th July 2006 08:41

Testing pre-installer error messages
 
Is there a simple way to test custom error messages that appear before the Welcome window and terminate the setup in different languages.

Example: "Please install: SomeApp
The setup cannot continue because the above application could not be found."

I would like to make sure that the message will appear in German, when the system language is German. Essentially I could take your word for it that if there is a translated string (there is), the message should be displayed in the system language, but I want to make doubly certain. I have already put '!insertmacro MUI_LANGDLL_DISPLAY' at the very beginning of the .onInit function. Choosing German in the dialog box doesn't display the message which appears next in German. It's still English.

This may seem trivial, but I some reassurance would be terrific.

Afrow UK 6th July 2006 08:58

The language does not get changed until after .onInit.
You can put your $LANGUAGE comparison code in .onGUIInit or put it in the welcome pages' Pre function (which you define with MUI_PAGE_CUSTOMFUNCTION_PRE WelcomePreFuncName).

-Stu

bnicer 6th July 2006 09:21

Thank you. I'm considering putting the messages after the Welcome window. "The setup cannot continue..." would make more sense.

I'm still curious, does inserting the language macro in .onInit rather than .onGUIInit at the beginning force pre-installer messages to display in the installer default language (if such it is), English?

Afrow UK 6th July 2006 09:29

http://nsis.sourceforge.net/Docs/Chapter4.html#4.10.1

NSIS doesn't actually select the language when you change the value of $LANGUAGE, but just after .onInit.

-Stu


All times are GMT. The time now is 05:55.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.