Skip to content
⌘ NSIS Forum Archive

Problem with StrCpy

3 posts

dogo#

Problem with StrCpy

Hey folk,

I have got some very strange problem with "StrCpy".

I have done the following within my script:

StrCpy $WEB_CONFIG_NAME "$INSTDIR\\www\\htdata\\w4d\\config\\w4d.ini" 
Now I get the following error message from compiler:

Usage: StrCpy $(user_var: output) str [maxlen] [startoffset] 
Strange with this is, that I copied the "StrCpy" from other file and just changed variable name from "$PHP_CONFIG_NAME" to "$WEB_CONFIG_NAME" and "php.ini" to "w4d.ini".

Someone some ideas about that ?
Animaether#
did you actually define $WEB_CONFIG_NAME as a variable further up in your script using "var WEB_CONFIG_NAME" ?
dogo#
Hi,

I think I need some journey, that was the perfect answer to my problem. I have done that a lot of times befor .. 🙄