PDA

View Full Version : How to not install some files?


Luc Coiffier
12-14-2005, 06:24 AM
Hi,

I want to *not* patch/install some files.
The condition is quite simple:
- if the file is already installed, patch it!
- if the file is not installed, do nothing.

My solution is to scan for these specific files in the pre-patch script, setting some variables and use these variables in the script condition for these files.

Is it possible to do something simpler?

Thanks in advance for your answer,

Luc

Brett
12-14-2005, 08:59 AM
This is already how Visual Patch works by default. It will only patch a file that it finds that matches the ones that you speficied in previous versions. If it doesn't find a match (including the file is not found) then it will not install it. The only exception would be if the file was introduced in a new version and was not in the old distributions. In this case, you could pre-check for the existance of the file, assign it to a variable and then use it in the script condition on the file properties of the files.