![]() |
#1 |
Member
Join Date: Apr 2011
Posts: 56
|
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 |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
This works fine for me. Check your $path variable contents. Alternatively, don't use $path at all (you can use $INSTDIR directly).code: Stu |
![]() |
![]() |
![]() |
#3 |
Major Dude
Join Date: Feb 2007
Posts: 672
|
|
![]() |
![]() |
![]() |
#4 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,548
|
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
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#5 |
Member
Join Date: Apr 2011
Posts: 56
|
re
Thx , for you answers,
my problem was , the path started with space " C:\blabla". i must just remove this space thx. |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|