Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   suggestion on file usage? (http://forums.winamp.com/showthread.php?t=262889)

TCT 2nd January 2007 18:33

suggestion on file usage?
 
It appears I can't use a variable as argument to the file instruction. For example, file $theFile.

I'm trying to conditionalize where the files to install are located like so:

Var /GLOBAL theFile
Var /GLOBAL Build
StrCpy $Build "Debug"
StrCpy $theFile "someDir\$Build\myprog.exe"

file $theFile


Does anyone has a suggestion on how to do that?

thanks in advance.

Red Wine 2nd January 2007 18:52

Apples and oranges :-)
Compile time and run time.
You may use defines.
!define Build "Debug"
!define THE_FILE "someDir\${Build}\myprog.exe"
File "${THE_FILE}"

TCT 2nd January 2007 19:11

thanks.


All times are GMT. The time now is 04:35.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.