This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- TempFolder
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 01, 2010
09:47 PM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 04, 2010
12:50 AM
Hello bblankenship,
may you should work with quoted paths. Please have a look on the methods LongPathToQuote(...).
HTH Alex
may you should work with quoted paths. Please have a look on the methods LongPathToQuote(...).
HTH Alex
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)