Hi,
I'm using Visual Patch 2.0 and I could not able to get Installed version of application.
Here is my script,
local MainKey = HKEY_LOCAL_MACHINE;
local SubKey = SessionVar.Expand("Software\\xxxxxxx");
local ValueName = "InstallPath";
local FolderPath = String.Concat(Registry.GetValue(MainKey, SubKey, ValueName) , "\xxxxx");
local InstallPath = Registry.GetValue(MainKey, SubKey, ValueName);
SessionVar.Set("%AppFolder%", InstallPath);
g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", FolderPath);
error = Application.GetLastError();
if error ~= 0 then
Dialog.Message("Error",_tblErrorMessages[error]);
end
if not g_InstalledVersion then
VisualPatch.WriteToLogFile("Not able to get the InstalledVersion",true);
-- this is not wrtitten into log file
end
The above code is working fine with my earlier version of application.exe
Looks something wrong with my application.exe, but Application.GetLastError also did not capture any error. VisualPatch.WriteToLogFile also not writing into log file.
Could any help to solve the issue?
Thanks in advance
Sugumar
I'm using Visual Patch 2.0 and I could not able to get Installed version of application.
Here is my script,
local MainKey = HKEY_LOCAL_MACHINE;
local SubKey = SessionVar.Expand("Software\\xxxxxxx");
local ValueName = "InstallPath";
local FolderPath = String.Concat(Registry.GetValue(MainKey, SubKey, ValueName) , "\xxxxx");
local InstallPath = Registry.GetValue(MainKey, SubKey, ValueName);
SessionVar.Set("%AppFolder%", InstallPath);
g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", FolderPath);
error = Application.GetLastError();
if error ~= 0 then
Dialog.Message("Error",_tblErrorMessages[error]);
end
if not g_InstalledVersion then
VisualPatch.WriteToLogFile("Not able to get the InstalledVersion",true);
-- this is not wrtitten into log file
end
The above code is working fine with my earlier version of application.exe
Looks something wrong with my application.exe, but Application.GetLastError also did not capture any error. VisualPatch.WriteToLogFile also not writing into log file.
Could any help to solve the issue?
Thanks in advance
Sugumar
Comment