Skip to content
⌘ NSIS Forum Archive

strcpy $INSTDIR

5 posts

hanenjom#

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#
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
jpderuiter#
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Anders#
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#
re

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

thx.