Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2006
    Posts
    92

    Urgent! Key File no longer working

    Hello.

    We have been using Visual Patch for almost a year now, without issue. We have a product that we make a monolithic patch for once a month or so, until now this has been fine.

    We use the executable as the key file and this has worked without issue until today.

    We are now getting Software Not Found...

    We have a folder for each version of the application we release, so version 1, 2, 3, 4 etc are complete and in seperate folders....

    I am trying to patch version 3 to 4 but it says it cannot find version 3.

    I have checked the MD5 of the version 3 executable against the MD5 of the executable in the path for the patch builder and they match....

    This means that we have updated our servers and now NONE of our previous users can update their software....

    Can you please help

    Thanks

  2. #2
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,729
    Quote Originally Posted by Staggan View Post
    We have a folder for each version of the application we release, so version 1, 2, 3, 4 etc are complete and in seperate folders....

    I am trying to patch version 3 to 4 but it says it cannot find version 3.

    I have checked the MD5 of the version 3 executable against the MD5 of the executable in the path for the patch builder and they match....
    Did you also check the MD5 of the version 3 executable on the target system?

    What version detection method are you using? (Getting the path from the registry, etc.?)

    Are there any other key files in the version?

    This means that we have updated our servers and now NONE of our previous users can update their software....

    Can you please help
    I would try patching with verbose logging enabled, to see if there are any clues to what's happening.
    --[[ Indigo Rose Software Developer ]]

  3. #3
    Join Date
    Apr 2006
    Posts
    92
    Hello.

    We have always used the registry to locate the application folder and this has always been fine.

    Yes I checked the MD5 on the target system it was the same.

    How do I turn on verbose logging and where will the log file be?

    Thanks

  4. #4
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,729
    Quote Originally Posted by Staggan View Post
    Hello.

    We have always used the registry to locate the application folder and this has always been fine.

    Yes I checked the MD5 on the target system it was the same.
    Gotcha.

    You might want to make sure there aren't any other key files defined in that version.
    How do I turn on verbose logging and where will the log file be?
    Go to Project > Settings, Advanced tab. Enabled the "Create log file" option, and change the "Include action details" setting from "Errors" to "Extended errors."

    You can specify the path to the log file on that tab.
    --[[ Indigo Rose Software Developer ]]

  5. #5
    Join Date
    Apr 2006
    Posts
    92
    I managed to find extended logging, and found the log file it genereated.

    Here is the last addition...

    [07/12/2007 21:30:48] Success Patch started: C:\Documents and Settings\Owner\My Documents\My Patches\Staggan Patches\UFPatch.exe
    [07/12/2007 21:30:48] Notice Patch engine version: 2.0.4.0
    [07/12/2007 21:30:48] Notice Product: United Football
    [07/12/2007 21:30:48] Success Language set: Primary = 9, Secondary = 1
    [07/12/2007 21:30:48] Success Include script: _Global_Functions.lua
    [07/12/2007 21:30:48] Notice Start project event: Global Functions
    [07/12/2007 21:30:48] Success Run project event: Global Functions
    [07/12/2007 21:30:48] Notice Start project event: On Startup
    [07/12/2007 21:30:48] Error Could not locate software on system
    [07/12/2007 21:30:48] Success Run project event: On Startup
    [07/12/2007 21:30:48] Success Display screen: Cannot Locate Software
    [07/12/2007 21:30:50] Success Delete image file: C:\DOCUME~1\Martyn\LOCALS~1\Temp\_ir_vp2_temp_0\IR IMG1.BMP
    [07/12/2007 21:30:50] Success Delete image file: C:\DOCUME~1\Martyn\LOCALS~1\Temp\_ir_vp2_temp_0\IR IMG2.BMP
    [07/12/2007 21:30:50] Success Delete image file: C:\DOCUME~1\Martyn\LOCALS~1\Temp\_ir_vp2_temp_0\IR IMG1.JPG
    [07/12/2007 21:30:50] Success Delete image file: C:\DOCUME~1\Martyn\LOCALS~1\Temp\_ir_vp2_temp_0\IR IMG3.BMP
    [07/12/2007 21:30:50] Success Delete image file: C:\DOCUME~1\Martyn\LOCALS~1\Temp\_ir_vp2_temp_0\IR IMG4.BMP
    [07/12/2007 21:30:50] Success Delete image file: C:\DOCUME~1\Martyn\LOCALS~1\Temp\_ir_vp2_temp_0\IR IMG2.JPG
    [07/12/2007 21:30:50] Notice Exit patch process (Return code: 1210)


    Not a lot of help, unless I can get more information?

    Thanks

  6. #6
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,729
    Yes, sorry that wasn't as helpful as I remembered.

    You'll need to insert some actions in the On Startup script to investigate further.

    For instance, you should check what value is being retrieved from the registry:

    Code:
    -- Location method: Registry key
    -- Read a folder path from the Registry.
    if not g_InstalledVersion then
    	local MainKey = HKEY_CURRENT_USER;
    	local SubKey = SessionVar.Expand("Software\\%CompanyName%\\%ProductName%");
    	local ValueName = "InstallFolder";
    	local FolderPath = Registry.GetValue(MainKey, SubKey, ValueName);
    	Dialog.Message("FolderPath", FolderPath);
    	g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", FolderPath);
    	if g_InstalledVersion then
    		SessionVar.Set("%AppFolder%", FolderPath);
    	end
    end
    Did you check whether there are any other key files in version 3?

    Also make sure each key file's destination path is set to %AppFolder%.
    --[[ Indigo Rose Software Developer ]]

  7. #7
    Join Date
    Apr 2006
    Posts
    92
    Hi Lorne..

    Actually Adam is looking into it for us...

    Nothing has changed. The SAME patch setup works if I build the patch for the previous version....

    The code snippet you posted is what we use already.... perhaps you could give me a snippet to display the path it finds on the screen?

    Thanks

    Martyn

  8. #8
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,729
    Quote Originally Posted by Staggan View Post
    The code snippet you posted is what we use already.... perhaps you could give me a snippet to display the path it finds on the screen?
    That's what this line does in the snippet I posted:

    Code:
    Dialog.Message("FolderPath", FolderPath);
    --[[ Indigo Rose Software Developer ]]

  9. #9
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,729
    Quote Originally Posted by Staggan View Post
    Nothing has changed. The SAME patch setup works if I build the patch for the previous version....
    To be clear of what you're saying, if you build the version 2 to 3 patch with the same project, it works, but the version 3 to 4 patch does not?

    It sounds to me like an issue with the registry value, or the key files -- for example if you had another file marked as a key file that is missing or different on the target system, that would prevent the version from being identified.

    Try sorting the file list by the Key File column to see if there are any other key files defined in version 3 and version 4.

    What is the exact destination path for each key file in version 3 and version 4?

    What value is the patch getting from the registry for the install location?
    --[[ Indigo Rose Software Developer ]]

Similar Threads

  1. Could someone explain FILE > EXECUTE > working directory
    By Corey in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 12-12-2002, 10:13 AM
  2. File - execute -> Working Directory
    By mtway in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 12-10-2002, 02:40 PM
  3. How to merge registry key file?
    By morci in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 11-24-2002, 01:04 PM
  4. URGENT!!! Search File and Install Archive...
    By HumbertoGomez in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 08-25-2002, 11:44 PM
  5. *.ini file for SF (urgent)
    By Bubbancs in forum Setup Factory 6.0
    Replies: 1
    Last Post: 02-02-2002, 03:06 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