cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bblankenship
Level 2

TempFolder

I am using BASIC MSI project in which i m installing a file(xxx.xml) in [TempFolder]

Installation of file is happening in TempFolder but when i m using the function
like this

nResult = CopyFile(TempFolder^\\xxx.xml,TARGETDIR^\\xxx.xml)

NResult value is -2147024894 (An unspecified error occured)

I checked and the file is present in temp folder.
But In copyFile function it is referring to some other place.

File is in "C:\Doc&Set\user\localsetting\Temp\2"
but in Copy file function TempFolder is "C:\Doc&Set\user\localsetting\Temp"

What am I doing wrong?

Thanks
Labels (1)
0 Kudos
(1) Reply
Alex1969
Level 4

Hello bblankenship,

may you should work with quoted paths. Please have a look on the methods LongPathToQuote(...).

HTH Alex
0 Kudos