Archive: Does $EXEDIR contain path of CD?


Does $EXEDIR contain path of CD?
I am trying to copy files (at install time) from the CD to the users hard drive. I am using the CopyFiles command as follows:

CopyFiles "C:/JUNK/data.txt" "$INSTDIR/data.txt"

and this is working okay during my local hard-drive tests. But now I am ready to burn the intstaller (and the data.txt file) to a CD. When I do that, I'll need to change the "source" path in my CopyFiles command to name the CD of the users computer.

The NSIS users manual says CopyFiles is "useful with $EXEDIR if you want to copy from installation media" so I'm guessing I need to use:

CopyFiles "$EXEDIR/data.txt" "$INSTDIR/data.txt"

does this command look right to get files off the CD?

Thanks in advance,
neal


$EXEDIR is the location of the NSIS .exe file that you create.

So, yes. If data.txt is in the same directort as your .exe file then this will work.