Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > Visual Patch 2.0

 
 
Thread Tools Display Modes
  #1  
Old 11-27-2006
mutex mutex is offline
Forum Member
 
Join Date: Nov 2006
Posts: 4
Problems with keyfiles in subfolders

Hello all,

I encountered some problems with keyfiles which are not in the root folder of my application path. I'd like to use my .exe for keyfile as recommended, but it is located in %AppFolder%\bin\release.

When I tag it as keyfile, the patch won't find the installed application. When I use a file in the root path (e.g. uninstall.exe), it works...
Any ideas?

Best regards,
Philip Hammer, Deck13 Interactive
  #2  
Old 11-27-2006
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 mutex View Post
I encountered some problems with keyfiles which are not in the root folder of my application path. I'd like to use my .exe for keyfile as recommended, but it is located in %AppFolder%\bin\release.

When I tag it as keyfile, the patch won't find the installed application. When I use a file in the root path (e.g. uninstall.exe), it works...
Any ideas?
It's a bug. Logged: #14231.

If you need a solution right away (before the next update), here are two workarounds:
  • Implement the key file check yourself (in Lua). Basically just override the g_cbFcnFindApplicationCallback function to look for the keyfile in the appropriate subfolder and compare the MD5, etc.
  • Use a key file in the root path, e.g. a version.txt file with the version number in it works really well for this.
__________________
--[[ Indigo Rose Software Developer ]]
  #3  
Old 11-27-2006
mutex mutex is offline
Forum Member
 
Join Date: Nov 2006
Posts: 4
Thumbs up

Thank you for the fast answer. Providing an additional version.txt works well for me.
  #4  
Old 06-21-2007
jlsf2 jlsf2 is offline
Forum Member
 
Join Date: May 2007
Posts: 101
Was this ever fixed? I appear to be having the same problem.

Thanks.
  #5  
Old 06-21-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
Yes, this bug was fixed and will be available in the next version (2.0.5.0).
__________________
--[[ Indigo Rose Software Developer ]]
  #6  
Old 06-21-2007
jlsf2 jlsf2 is offline
Forum Member
 
Join Date: May 2007
Posts: 101
Is there a timeframe for that? Is there anyway that I could get a pre-release version? Or, is there anyway I could get an early release of just this fix?

Thanks.
  #7  
Old 06-21-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 jlsf2 View Post
Is there a timeframe for that?
Right now it looks like about a week, maybe two weeks depending on how the rest of the fixes go.

Quote:
Is there anyway that I could get a pre-release version? Or, is there anyway I could get an early release of just this fix?
If a week will be too late, yes it's possible. We could give you a current build, although it would fall outside the scope of our regular updates so you'd have to revert back to the original file before applying the 2.0.5.0 update.

If you really need something right now, contact our support department and ask nicely.
__________________
--[[ Indigo Rose Software Developer ]]
  #8  
Old 06-21-2007
jlsf2 jlsf2 is offline
Forum Member
 
Join Date: May 2007
Posts: 101
Well, desperate times bring... you know....

I might have a workaround for now. Can you look at this and tell me if there is anything else to be worried about? This fixes finding the Key files; just wondering if the actually patching will also have problems.

Thanks.

** I pulled this from the Actions and just hard-code in the subdirectory **

-- Location method: Registry key
-- Read a folder path from the Registry.
if not g_InstalledVersion then
local MainKey = HKEY_LOCAL_MACHINE;
local SubKey = SessionVar.Expand("Software\\XXX\\YYY\\ZZZ\\MiniGa mes\\#GAME_NAME#");
local ValueName = "InstallFolder";
local FolderPath = Registry.GetValue(MainKey, SubKey, ValueName);
tempFolderPath = FolderPath .. "\\pak\\tb1_game1";
Debug.Print( "FolderPath: " .. FolderPath .. "\n" );
Debug.Print( "tempFolderPath: " .. tempFolderPath .. "\n" );
--Debug.Print( SessionVar.Expand( "AppFolder: %AppFolder%\n" ) );
g_InstalledVersion = VisualPatch.CheckFolderVersion("%AppFolder%", tempFolderPath);
if g_InstalledVersion then
SessionVar.Set("%AppFolder%", FolderPath);
end
end

Last edited by jlsf2; 06-21-2007 at 10:26 AM. Reason: tabs to spaces
  #9  
Old 06-21-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
That looks like it should work. As always, "test fully, test first."
__________________
--[[ Indigo Rose Software Developer ]]
  #10  
Old 06-21-2007
jlsf2 jlsf2 is offline
Forum Member
 
Join Date: May 2007
Posts: 101
Ok, thanks.

I think I'd rather do this versus getting an early build.

I'll just modify my future patch releases to do it the correct way once the next version comes out.
  #11  
Old 07-11-2007
jlsf2 jlsf2 is offline
Forum Member
 
Join Date: May 2007
Posts: 101
Lorne, any update on the next version?

Turns out my fix worked for most cases, but I've found a patch that it doesn't work for (no idea why not).

Thanks.
  #12  
Old 07-12-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 jlsf2 View Post
Lorne, any update on the next version?
I am told that the next release is nearing completion but we don't have a precise date yet.
Quote:
Turns out my fix worked for most cases, but I've found a patch that it doesn't work for (no idea why not).
Maybe check the MD5 hash of the key file in that installation against the original...it could be a corrupted/modified file.

Enabling a verbose patching log might reveal some clues as well.
__________________
--[[ Indigo Rose Software Developer ]]
  #13  
Old 07-15-2007
jlsf2 jlsf2 is offline
Forum Member
 
Join Date: May 2007
Posts: 101
I'll just wait for the official patch.

My hack is still working... I just had the wrong file in my release directory... stupid of me.
 

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
Names of subfolders JimS AutoPlay Media Studio 4.0 1 07-11-2004 09:10 PM
6.0.1.4 Problems, Problems! smack Setup Factory 6.0 1 02-17-2004 05:26 AM
Problems with flash..... RobbyH AutoPlay Media Studio 4.0 7 02-10-2003 05:11 PM
TU problems with ZIP clindemann TrueUpdate 1.0 1 10-16-2002 09:50 AM
Copy subfolders Madmunk Setup Factory 6.0 6 02-10-2002 08:22 AM


All times are GMT -6. The time now is 10:04 AM.


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