Indigo Rose Software
  #1  
Old 09-12-2007
tigran tigran is offline
Forum Member
 
Join Date: Apr 2007
Posts: 56
Grin File Overwrite in Folder Reference

Guys,

I'm trying to figure out the solution for the following problem:

1. I installed an application by using SetupFactory 7. SetupFactory allowed me to specify th overwrite flag for folder references: always overwrite, never overwrite, overwrite based on time stamp, etc.

2. Now, I'm building a patch for the application with VisualPatch 3. I added the folder references, but they don't let you specify the overwrite flag.

Some files in my application should never be overwritten once installed (achieved by setting 'Never overwrite existing file' in SetupFactory). VisualPatch however, will analyze the files in all versions of the patch and WILL replace them, which is exactly what I don't need. Similar situation with the 'Overwrite if existing file is same or older' flag.

Can you point me to a solution to this problem? Thanks
Reply With Quote
  #2  
Old 09-13-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
What kind of files are they?
What is the reason that you don't want to patch those files?

If the files are user-editable (e.g. INI file) and you don't want to overwrite them if the user has edited them, VP3 will already take care of that -- it only patches a file if it (the target file) matches the signature of the equivalent file in the old version (the old file).

If the files are not user-editable, but you don't want to replace any previously installed versions of those files, that's a bit trickier but I can think of two ways that should work:

1. Assign a condition to those files that will resolve to false at run time.

For example, you could set the Script Condition on the Conditions tab to "false" for that folder reference, which should prevent all its the files from being patched.

Note that you can apply different settings to individual files within a folder reference by adding the files to the list in addition to the folder reference -- the individual file settings override the folder reference settings.

2. Just omit the files that you don't want patched -- but only if the "Delete legacy files" option is turned off in the project settings.
__________________
--[[ Indigo Rose Software Developer ]]
Reply With Quote
  #3  
Old 09-27-2007
jlsf2 jlsf2 is offline
Forum Member
 
Join Date: May 2007
Posts: 101
Regarding "Script Condition".

When does the evaluation take place?

e.g. Can I have the patch read the Registry and set a boolean based on what it finds and have that boolean in the Script Condition field?

Thanks.
Reply With Quote
  #4  
Old 09-27-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
The script condition is checked at run time, before the individual patches are applied. So yes, you should be able to do that.
__________________
--[[ 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
Probably a dumb question beeneeb Visual Patch 2.0 1 10-12-2006 02:19 PM
Reading Install Path From Registry Staggan Visual Patch 2.0 33 05-04-2006 11:31 AM
Copy file from HDD to docs folder wedgea09 AutoPlay Media Studio 6.0 8 04-18-2006 04:04 PM
Exe's in Folder Reference appear in Start menu Dan Ullman Setup Factory 7.0 Discussion 10 09-01-2005 04:55 PM
Question on DOCS folder and previous file versions Larry Singer AutoPlay Media Studio 5.0 1 03-15-2005 02:06 PM


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