Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Variable as folder file for installer (http://forums.winamp.com/showthread.php?t=255938)

x04001 21st September 2006 19:53

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.

{_trueparuex^} 21st September 2006 20:46

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.