Strange behaviour by StrCpy
Hello!
I have inherit a rather large installation script and I'm getting some error that I can't fix.
The error.
StrCpy expects 2-4 parameters, got 5.The Code:
Usage: StrCpy $(user_var: output) str [maxlen] [startoffset]
!define PRODUCER 'My Company Inc'
!define NAMEPROD 'My Very Nice Program'
!define MAJOR '4'
!define MINOR 1
!define RELEASE '2'
!define PRODUCT "${NAMEPROD}${MAJOR}.${MINOR}"
!define PRODNAME "${NAMEPROD} ${MAJOR}.${MINOR}.${RELEASE}"
!define LOGFILE "$WINDIR\${NAMEPROD}${MAJOR}${MINOR}${RELEASE}_${PRODUCER}_${DATE}.log "
StrCpy $0 ${LOGFILE} ; here I get the error!
I'm getting that the error is due to the fact that PRODUCER and NAMEPROD is containing spaces, but why? and how do I fix it?
Removing the spaces is not a valid option!
// Anders