Hi,
To find out if the folder where the patch is run from needs to be patched, I use
g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", _SourceFolder);
But i have never initialized %AppFolder%.
Is this correct?
How is %AppFolder% being used in the function CheckFolderVersion()?
Then if g_InstalledVersion is not nil, I set %AppFolder%
Is there any reason to do that??
For example:
g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", _SourceFolder);
if g_InstalledVersion then
SessionVar.Set("%AppFolder%", _SourceFolder);
if g_InstalledVersion == VisualPatch.GetTargetVersion() then
Screen.SetStartScreen("Software is Current");
else
Screen.SetStartScreen("Ready To Patch");
end
end
Thanks.
To find out if the folder where the patch is run from needs to be patched, I use
g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", _SourceFolder);
But i have never initialized %AppFolder%.
Is this correct?
How is %AppFolder% being used in the function CheckFolderVersion()?
Then if g_InstalledVersion is not nil, I set %AppFolder%
Is there any reason to do that??
For example:
g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", _SourceFolder);
if g_InstalledVersion then
SessionVar.Set("%AppFolder%", _SourceFolder);
if g_InstalledVersion == VisualPatch.GetTargetVersion() then
Screen.SetStartScreen("Software is Current");
else
Screen.SetStartScreen("Ready To Patch");
end
end
Thanks.
Comment