PDA

View Full Version : Two in one!


jamesling
01-11-2002, 10:15 PM
While not critical to my evaluation of VP, I was interested to know if the following can be achieved with VP...

We have both a regular version of our software and a version with some anti-piracy measures. I would like to be able to patch a regular into a new regular and an a.p. one into a new a.p. version. Ideally I want to do this in just one patch program such that I don't have to draw attention to the differences. So I'm effectively asking if there can be two target exes with selection based on the two possible key file values?

Lorne
01-14-2002, 11:35 AM
There isn't any straightforward way to do that in version 1.0.

However, I think it might be possible. You would need to use a different file as the key file, though...since only one file can be designated as a key file, and you want the presence of either of those two exes to count as a "valid installation."

You will need some other key file common to both versions, to satisfy VP's requirements (otherwise you won't be able to build the patch).

You could use File Search Variable commands on the Variables screen to set a variable to TRUE if one exe is found, and set another variable to TRUE if the other exe is found. You would want to put the CRC value for each file in the appropriate "Valid CRC-32 Values" field, so that only an unmodified executable would match.

Then, use these two variables in conditions on the Conditions tab of the File Properties screen for the two executables, so that only one or the other will be installed according to which variable is set to TRUE.