Comparing file versions

Got a problem you cannot solve? Try here.
Post Reply
khalprin
Posts: 51
Joined: Fri Aug 25, 2006 2:02 pm

Comparing file versions

Post by khalprin »

I would like to stop an existing installed service only if the install program is going to update it with a newer version. I looked at the Check File Version which can compare versions of two files. To use that, do I need to put my service file in the files list and in the support files list so it is available for comparison, or can I compare right from the DATADIR folder? Is there a better way to do this?

Thanks.
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Well, you could compare directly with a built-in version number. If you want to auto-compare without hard-coding a version number, then I recommend the $SUPPORTDIR$ approach.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply