hanenjom
24th May 2011 18:24 UTC
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
Afrow UK
24th May 2011 18:27 UTC
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
Anders
24th May 2011 22:35 UTC
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
hanenjom
25th May 2011 09:25 UTC
re
Thx , for you answers,
my problem was , the path started with space " C:\blabla". i must just remove this space
thx.