|
#1
|
|||
|
|||
|
CheckFolderVersion
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: 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
|
|
#2
|
||||
|
||||
|
Quote:
Try removing this line: Code:
FolderPath = String.Concat(FolderPath, "\\bin");
__________________
--[[ Indigo Rose Software Developer ]] |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CheckFolderVersion() doesn't work properly | aryeht | Visual Patch 2.0 | 0 | 03-01-2007 09:57 AM |
All times are GMT -6. The time now is 09:37 PM.









Linear Mode

