PDA

View Full Version : error while patching dll file


vsrprasad16
01-02-2008, 02:49 PM
Hi,
Am gettng error while patching a dll file.
gettng error msg as
"Failed patching xxxxx.dll" with msgbox caption "Error (111)".
i enabled logging in project settngs. the log file just showing line as

"Error Patch File (111): c:\xxxxx.dll (104)"

what are these numbers 111 and 104 ?


This information is not sufficient to find out whats the mistake in the patch file.
Any clue to get more error messages for these kind of errors.

i appreciate for your time.

Thanks

vsr

jassing
09-03-2008, 08:18 AM
From the help file:

104
Patch failed during application.

111 is not defined, but I think it's a directory not found (or no rights to the directory) issue.

Lorne
09-03-2008, 09:59 AM
vsrprasad16, what version of Visual Patch was that patch built with? That looks like an error message from a slightly older version.

111 is a DeltaMAX error code that means "unable to read data from diff file." It generally indicates a folder permissions issue or (in rare cases) a failure during diff file extraction (e.g. hard drive corruption).

radix
03-15-2009, 11:00 AM
Try this solution:

-- Location method: Registry key
-- Read a folder path from the Registry.
if not g_InstalledVersion then
local MainKey = HKEY_CURRENT_USER;
local SubKey = SessionVar.Expand("Software\\My Comp");
local ValueName = "InstallPath";
local FolderPath = Registry.GetValue(MainKey, SubKey, ValueName);
g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", FolderPath);
if g_InstalledVersion then
Folder.SetCurrent(FolderPath);
SessionVar.Set("%AppFolder%", Folder.GetCurrent());
end
end