|
|
#1 | |
|
Junior Member
Join Date: Aug 2006
Posts: 4
|
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. Quote:
!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 |
|
|
|
|
|
|
#2 |
|
Member
Join Date: Mar 2004
Posts: 73
|
You should
!define LOGFILE `"Logfile's path"` Watch the quotes ! |
|
|
|
|
|
#3 |
|
Member
Join Date: Jan 2003
Posts: 83
|
FFS...
code: |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Aug 2006
Posts: 4
|
Yes of course!!!!
I must have been booted in stupid mode... // Anders |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|