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
- :
- Problem with XCopyFile – get success even if source doesn’t exists
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
Sep 21, 2010
09:58 AM
Problem with XCopyFile – get success even if source doesn’t exists
Hi
It seems the function doesn't check if the source exists and return success even if it does not – is that known issue ?
(I have tried the ISH XCopyFile Example and got no errors )
Are there any alternative to that function beside using windows xcopy.exe ?
It seems the function doesn't check if the source exists and return success even if it does not – is that known issue ?
(I have tried the ISH XCopyFile Example and got no errors )
Are there any alternative to that function beside using windows xcopy.exe ?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 23, 2010
10:15 AM
Could you post the code? A quick InstallScript test with a missing source file---
function OnBegin( )---displays a message box with:
NUMBER ret;
begin
ret = XCopyFile(WINDIR ^ "no-such.file", TARGETDIR, COMP_NORMAL);
SprintfBox(INFORMATION, "XCopyFile result",
"ret = %d\nMsg = %s", ret, FormatMessage(ret));
end;
nvIgnore = -2147024894
Msg = The system cannot find the file specified.
