Indigo Rose Software
  #1  
Old 08-25-2008
Asarhia Asarhia is offline
Forum Member
 
Join Date: Aug 2008
Posts: 3
Simple patching between to folders

Hello,

I'm trying to use Visual Patch to compare two folders and generate a patch file, but no application is actually installed on the system. Basically I have:

C:\Folder\20080824
C:\Folder\20080825

My idea is that someone who already has a copy of the entire "20080824" folder can just create a copy of it, rename it to 20080825, stick the patch file inside it, run it and have an up-to-date "20080825" folder.
The folders contain an application with executable files and stuff (just not for PC) and therefore nothing is actually installed on the system. I selected the executable file as the key file (different for each version) and also tried selecting both "Current Folder" and "File Search" with the name of the executable file from folder "20080824" (let's call it 20080824.axe), but no matter what I do, when I run the patch file it can't locate the right file and does not install the patch, not even after doing a full local hard drives search.

If anyone could point out what I'm doing wrong (including whether I'm trying to use this application for the wrong scope) that would be really appreciated!

Many thanks,
Asarhia
Reply With Quote
  #2  
Old 08-25-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
The problem you're going to have is that the exe's (key files) dont' exist in both versions so it has nothing to compare it against... I think that's why it's not finding anything to patch.

Can you post your .tu2 file?

-josh
__________________
Reply With Quote
  #3  
Old 08-26-2008
Asarhia Asarhia is offline
Forum Member
 
Join Date: Aug 2008
Posts: 3
Sorry, I'm a bit new at this, is that a file from True Updater? I'm only using Visual Patch 3.0 Trial at this time, the only file I can see is the .vp2 (project) file...
Reply With Quote
  #4  
Old 08-26-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Quote:
Originally Posted by Asarhia View Post
Sorry, I'm a bit new at this, is that a file from True Updater? I'm only using Visual Patch 3.0 Trial at this time, the only file I can see is the .vp2 (project) file...
Sorry -- yes; I mean the the vp2 file...
__________________
Reply With Quote
  #5  
Old 08-26-2008
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
That should work fine -- VP doesn't need an application to be installed, it will work fine with plain data files.

In order to use the default version identification feature, you need to select an appropriate key file so the patch will recognize the "version" of that folder's contents as something it can patch.

For that you just need to choose a file that is unique to the 20080824 version, and that has never been modified at all by the user (so its MD5 signature matches the copy that you use when you build the patch). You also must not change the filename of the key file.

The user's guide has some information about key files, and if you search this forum you should be able to find some good advice on what kinds of files to choose.
__________________
--[[ Indigo Rose Software Developer ]]

Last edited by Lorne; 08-26-2008 at 12:57 PM.
Reply With Quote
  #6  
Old 08-26-2008
Asarhia Asarhia is offline
Forum Member
 
Join Date: Aug 2008
Posts: 3
Hello both,

Thanks for taking the time to reply to my post!
I've attached my vp2 project. Basically I have this structure for version 0822:

0822\MyApp_080822.exe
0822\Folder\Another Folder\Yet Another Folder\1\1.tmp
0822\Folder\Another Folder\Yet Another Folder\1\1.xyz
0822\Folder\Another Folder\Yet Another Folder\2\2.tmp
0822\Folder\Another Folder\Yet Another Folder\2\2.xyz

And then for version 0823:

0823\MyApp_080823.exe
0823\Folder\Another Folder\Yet Another Folder\1\1.tmp
0823\Folder\Another Folder\Yet Another Folder\1\1.xyz
0823\Folder\Another Folder\Yet Another Folder\2\2.tmp
0823\Folder\Another Folder\Yet Another Folder\2\2.xyz

I added version 0822 with "MyApp_080822.exe" as key file and version 0823 with "MyApp_080823.exe" as key file. The patch builds fine, finds "MyApp_080822.exe" as a new file and includes all of it, plus finds differences in the other four and creates a patch. If I run it from within the 0822 folder it is unable to locate the right version, however if I run it from version 0823 it will say that I already have the most current version.

Any inputs would be greatly appreciated!

Many thanks,
Asarhia
Attached Files
File Type: vp2 Test.vp2 (51.2 KB, 6 views)
Reply With Quote
  #7  
Old 08-26-2008
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
Hmmm. Are you renaming the key file before you run the patch? When you copy the contents of 080822 over to 080823, you can't rename the keyfile from "MyApp_080822.exe" -- if you do it will no longer be considered a valid match for the original 080822 key file.

If you want to rename the file, you must do so after patching (for e.g. using a File.Rename action in the On Post Patch script).

Couple other things to check are that your destination paths are correct on the system where you're patching, and to verify that the MD5 checksums match for your key files (between your system and the target system). For example, verify the actual MD5 signatures using fsum.exe.
__________________
--[[ Indigo Rose Software Developer ]]

Last edited by Lorne; 08-26-2008 at 12:58 PM.
Reply With Quote
  #8  
Old 08-26-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
based on the test.vp2 file you posted,my initial comment is valid.
You need to have the key file be the same name in each version.

Keep all the files the same name (you can add/delete files;but files you want PATCHED need to be named the same) across all your versions; then you'll be OK
__________________
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
Delete folders using wildcard? doc13x AutoPlay Media Studio 6.0 6 08-05-2008 08:23 AM
Do AMS can do Simple DVD Videos........? DaSoul AutoPlay Media Studio 6.0 3 04-23-2007 01:48 AM
Add folders to the list bobbie AutoPlay Media Studio 5.0 16 06-27-2005 03:45 PM
INFO: Finding Shell Folders in the Registry Support Setup Factory 6.0 Knowledge Base 0 10-10-2002 04:52 PM


All times are GMT -6. The time now is 07:55 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