Indigo Rose Software
  #1  
Old 09-03-2007
jdrescher jdrescher is offline
Forum Member
 
Join Date: Aug 2006
Posts: 7
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
Has this function (CheckFolderVersion) changed from VP2 to VP3 and how does it exactly work internal?
Reply With Quote
  #2  
Old 09-04-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
Quote:
Originally Posted by jdrescher View Post
Has this function (CheckFolderVersion) changed from VP2 to VP3 and how does it exactly work internal?
It now supports key files in subfolders automatically.

Try removing this line:
Code:
FolderPath = String.Concat(FolderPath, "\\bin");
You might also want to add some Debug.Print() or Dialog.Message() calls in there to see what those variables contain at run time.
__________________
--[[ Indigo Rose Software Developer ]]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software