Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    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?

  2. #2
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    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 ]]

Similar Threads

  1. CheckFolderVersion() doesn't work properly
    By aryeht in forum Visual Patch 2.0
    Replies: 0
    Last Post: 03-01-2007, 08:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts