Software: Visual Patch 3.7
Attempting to: Upgrade an ASP.NET application with database upgrade
I am trying to upgrade from v1.0 to v2.0 (these are my tab names). I use registry to detect existing installation. My code is pasted below
I am trying locate my key file in the 'bin' folder inside the 'folderPath' returned from registry. 'g_InstalledVersion' is always returned as "2.0" and i expect it to be "1.0". So my 'current version' and 'target version' are always same and i ends up in 'Software is Current' screen. Please help.
Attempting to: Upgrade an ASP.NET application with database upgrade
I am trying to upgrade from v1.0 to v2.0 (these are my tab names). I use registry to detect existing installation. My code is pasted below
Code:
local mainKey = HKEY_LOCAL_MACHINE; local subKey = SessionVar.Expand("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\%CompanyName% %ProductName%"); local valueName = "InstallLocation"; local folderPath = Registry.GetValue(mainKey, subKey, valueName); local folderBinPath = nil; if folderPath ~= nil then folderBinPath = folderPath .. "\\bin"; end g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", folderBinPath);
Comment