PDA

View Full Version : Question about rollback


okicuki
09-21-2009, 03:18 AM
I have some of question about rollback function.
I want files rollback on patch file is missing or target not found.
So, Global Functions section on Resources tab include below code.


function g_OnFileProcessed(ResultCode, Filename, BackupFilename)

if ResultCode == 4 then -- "File skipped. Matching target not found."
Application.Exit(EXIT_REASON_USER_ABORTED);
end

end


While patch files, missing or target not found event occured, application is rollback patched files.
But, there is one problem.
Last patch file in list is missing, application is not return to rollback function.
Just Lagacy file delete and exit program.

Enable file rollback support and Delete legacy files option are checked.

How can i solve this problem?

Mark
10-28-2009, 09:36 AM
Hi okicuki,

I have been able to confirm this error and it has been fixed for the next version of Visual Patch.

Ref: 19079

mark.