![]() |
Variable as folder file for installer
Hi,
I have the same dll but in different language, stored in the following structure : ... application\english\mydll.dll application\french\mydll.dll application\german\mydll.dll ... in my NSI script i have a variable $LG which contain the installation language selected by use of installer. I would like to do something like that : File "application\$LG\mydll.dll" but as you can guess NSIS tells that this file does not exist due to the fact that during compilation time $LG is not defined. So how can i cope with that ? in fact i would like to have in my installation file, all dll localized, and only when user install my application, it will copy the right localized dll. thanks a lot, Maileen. |
If I got you right...
Even if $LG would be defined at compile time it would never work. I recommend that you use StrCmp or something. StrCmp "$LG" "english" 0 +3 SetOutPath "$INSTDIR\english" File "application\english\mydll.dll" ... |
| All times are GMT. The time now is 03:19. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.