Variable for OutFile
Hello,
Right now I have two redundant defines and I would like to merge them. FOr this I am looking either to use a variable (not a define) for Outfile or to define a define using if/else.
Let me illustrate
In some case I use
!define CODE_PLATFORM win32in others I use
!define NICE_PLATFORM " for Windows XP"
!define CODE_PLATFORM win64The main nsh script contains
!define NICE_PLATFORM " for Windows XP 64 bits"
OutFile MyFile${NICE_PLATFORM}.exeI would like to merge the two defines in one
[...]
File $REPOSITORY\$CODE_PLATFORM\somebinary
!define PLATFORM 32 (or 64)Waht solution would I have after to either:
1) use if/defs
"IF" $PLATFORM == 32or 2) variables:
!define CODE_PLATFORM win32
!define NICE_PLATFORM " for Windows XP"
"ELSE"
!define CODE_PLATFORM win64
!define NICE_PLATFORM " for Windows XP 64 bits"
"FI"
Var CODE_PLATFORMI hope I am not too confuging.
Var NICE_PLATFORM
Function .onInit
${If} $PLATFORM == 32
StrCpy CODE_PLATFORM win32
StrCpy NICE_PLATFORM " for Windows XP"
${Else}
StrCpy CODE_PLATFORM win64
StrCpy NICE_PLATFORM " for Windows XP 64 bits"
${Endif}
Thanks in advance,