Archive: strcpy $INSTDIR


strcpy $INSTDIR
please, can you help me

I have a problem with $INSTDIR, I extract the path from a file, then I do the copy at $INSTDIR,

for example my path is "C:\blabala" when I do

StrCpy $INSTDIR "$path", I have $INSTDIR = "C\blabala"

otherwise said the ":" disappears and consequently I have a wrong path.


Why i don't now.
please help me.
thx


StrCpy $R0 c:\blah
StrCpy $INSTDIR $R0
DetailPrint $INSTDIR
This works fine for me. Check your $path variable contents. Alternatively, don't use $path at all (you can use $INSTDIR directly).

Stu

http://forums.winamp.com/showthread.php?t=200021


Are you sure the path is not " c:\blah" (starting with a space), $instdir has some special handling to validate the path, you can't just copy any random string into $instdir


re
Thx , for you answers,
my problem was , the path started with space " C:\blabla". i must just remove this space

thx.