--------------------------------------------------
#define GRAPH_FILE "file.bmp"
...
function MyCopyFile(hInstall)
STRING szPath, szTMPDir;
NUMBER nvSize;
begin
nvSize = 1024;
MsiGetProperty(hInstall, "PathGraphFolder", szPath, nvSize);
nvSize = 1024;
MsiGetTargetPath(hInstall, "TempFolder", szTMPDir, nvSize);
if (XCopyFile(szTMPDir ^ GRAPH_FILE, szPath ^ GRAPH_FILE, COMP_NORMAL) < 0) then
MessageBox("Copy function failed", WARNING);
else
MessageBox("File successfully copied", INFORMATION);
endif;
--------------------------------------------------
If I copy from another folder (different from Temp folder) copy is OK.
I don't understand.
Why I can't copy from Temp?
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Why my copy function failed?
Started by
gloom
, May 18 2004 05:45
2 replies to this topic