Announcement

Collapse
No announcement yet.

What is %AppFolder%

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is %AppFolder%

    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.

  • #2
    Originally posted by DaveC View Post
    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()?
    Please note, the first parameter is the name of the session variable which will be used to look up the key files - the actual content of %AppFolder% will only be set if the function finds all key files in that folder which was tested. This is explained in the documentation for VisualPatch.CheckFolderVersion(). If you have read this explanation, but it is still not clear, perhaps you could explain what exactly you are not understanding?

    Ulrich

    Comment

    Working...
    X