![]() |
Using translated message in .onInit
Hi,
I want have an english and frensh version for my installer, so do do that I use LangString for example: code: I want to use $(message) in function .onInit (but this don't work) so what can I do |
other question:
I use to adds file(s) output path ($INSTDIR).code: how can i delete installed files from $INSTDIR? |
Doesn't work in what way? You can use it in .oninit, I do in mine, and before you ask the user what language they want ( !insertmacro MUI_LANGDLL_DISPLAY ) it depends on the locale of the Windows installation. I tested for example with a German version of XP, before the selection dialogue it displays German message.
To delete a file is Delete, simple enough. |
code: I select english language but the message is always shown in frensh (because i use frensh verion of XP) and I want to list autaumatically installed files before deleting them without using delete "fileName" for every file |
You cannot use language strings in .onInit, only after; e.g. you can use them in .onGUIInit (!define MUI_CUSTOMFUNCTION_GUIINIT myOnGUIInit) or in your first page's PRE function.
To generate a list of files to delete you can write a script to do it or write an NSIS executable to do it. Run it with !system then !include its output file. Stu |
| All times are GMT. The time now is 17:26. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.