|
|
#1 |
|
Junior Member
Join Date: Jun 2010
Posts: 6
|
Hi,
In my installation proces it can be that there are some messageboxes shown. Now I have set the message text hardcoded in the installer, but how can I use a string var for it? See example: MessageBox "MB_OK" "This program requires Microsoft Windows XP or later" MessageBox MB_YESNO|MB_ICONQUESTION "$(RemoveOldVersionQuestion)" IDNO LblCheckDone In what file and where do I need to put the langstring "RemoveOldVersionQuestion"? Thx for any help!! |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Oct 2007
Location: Xi'an, China
Posts: 194
|
Using LangString.
LangString ERROR_TEXT 1033 'Missing a required file!' LangString ERROR_TEXT 2052 '缺少必要的文件!' or: LangString ERROR_TEXT ${LANG_ENGLISH} 'Missing a required file!' LangString ERROR_TEXT ${LANG_SIMPCHINESE} '缺少必要的文件!' MessageBox MB_OK|MB_ICONSTOP "$(ERROR_TEXT)" Setup will automatically show the proper text based on the language of user's OS. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2010
Posts: 6
|
Hi Jake,
Thx for your reply. Isn't it possible that I add the string variable to say Dutch.nsh file and call it from there? We have nine languages to support so it would be great if I could add them to their resp. language file. |
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,203
|
I wouldn't because you will then get warnings when using the language files in other scripts that do not use your added language string. If you want, create your own additional nsh files.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Nov 2005
Posts: 113
|
Just create "dutch.nsh" and just include it:
!addincludedir . ... !insertmacro MUI_LANGUAGE "Dutch" !include Dutch.nsh Though I use this "format" so I don't have to put ${LANG_DUTCH} or the #### throughout: PHP Code:
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|