Yes, I know. Unfortunatelly i'm on Win7... That why I have some issue with RegisterFileLocation.
You can either use FPC 3.2.2 RC1 which has that problem fixed or as a workaround you can pass a so called drive absolute path: if your relative path is
.\files, your absolute pah is
C:\projects\webtest\files then the drive absolute path is
\projects\webtest\files assuming that your current directory is a folder on drive
C:. You then need to pass
/projects\webtest\files (note the first
/ instead of
\) to
RegisterFileLocation so that it doesn't adjust the path. To do this in code you need to use
ExpandFileName, remove the first two characters (if they're an ASCII letter and a “
:”) and change the
\ at the now first position from a
\ to a
/.