It still does the same thing..."Software not Found"
VP can't find app from registry
Collapse
X
-
Oops, that second Dialog.Message action should be moved to after the SessionVar.Set() action, like so:
Code:-- Location method: Registry key -- Read a folder path from the Registry. if not g_InstalledVersion then local MainKey = HKEY_LOCAL_MACHINE; local SubKey = "SOFTWARE\\YORKFURNSRVGD"; local ValueName = "Location"; local FolderPath = Registry.GetValue(MainKey, SubKey, ValueName); Dialog.Message("Temporary Debug Message:" , "FolderPath = \""..FolderPath.."\""); g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", FolderPath); if g_InstalledVersion then SessionVar.Set("%AppFolder%", FolderPath); [COLOR="DarkOrchid"]Dialog.Message("Temporary Debug Message:" , "%AppFolder% = \"" .. SessionVar.Expand("%AppFolder%").."\"");[/COLOR] end end
The good news is we know it's getting the value from the Registry okay, so the CheckFolderVersion action probably isn't recognizing the contents of that folder as a version.
If that's the case, then it's generally just that (a) the installed version doesn't match the versions you added to your project or (b) you need to choose appropriate key files so the CheckFolderVersion action can make a positive ID.
Here are some questions to ask:
- What version of the software is installed at that location?
- What key files did you select in your project?
- What is the MD5 signature of the key files that are installed? Do those signatures match the MD5 signatures of the key files in your project?
- Are the key files that you selected for each version different from each other so Visual Patch can use them to tell your versions apart?
--[[ Indigo Rose Software Developer ]]
Comment
Comment