Hello!!
We have the following problem: We build a patch with VP3 which doesn´t work, because the function CheckFolderVersion(...) always returns 0. If we load the project with VP2, everything works.
Then we created a new project and the same problem appeared.
Here is a part of our code we use:
Has this function (CheckFolderVersion) changed from VP2 to VP3 and how does it exactly work internal?Code:if not g_InstalledVersion then local MainKey = HKEY_LOCAL_MACHINE; local SubKey = SessionVar.Expand("Software\\Test"); local ValueName = "HomeDirectory"; local FolderPath = Registry.GetValue(MainKey, SubKey, ValueName); FolderPath = String.Concat(FolderPath, "\\bin"); g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", FolderPath); if g_InstalledVersion then SessionVar.Set("%AppFolder%", FolderPath); end end

Reply With Quote
