Determining the version of JADE installed

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Determining the version of JADE installed

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:20 pm

by Kevin Luck >> Wed, 22 Dec 1999 13:08:06 GMT

Some help needed here although it is a bit tangential to the use of JADE itself.

I'm using InstallShield Profession 6.0 to automate the upgrade process for an existing JADE application. When the upgrade program starts I want to verify the current version of JADE that is in the existing (target) installation. What is the best way to do this, once I've found the relevant jade.exe?

I thought that looking in the Registry would be one way, but my upgrade of JADE to 5.0.14 didn't produce any indication in the registry that there is a copy of 5.0.14 on my PC. Anyway, I don't see how this would be able to confirm the version of a particular set of jade binary files anyway: I have multiple versions on my PC at present.

WIndows Explorer shows the version number I need on the version tab of the properties dialog (when I right-click on jade.exe). Can anyone tell me how to get hold of this from an InstallShield script or some other batch file that could be fired off from the script?

Last option I thought of is simply checking the date/timestamps of the jade.exe file, although I am dubious about this approach as I have seen timestamps shift by an hour in Explorer when daylight-saving kicks in (or out), which could in turn put the date out by a day.

Any help gratefully received.

k

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Determining the version of JADE installed

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:20 pm

by Carl Ranson >> Wed, 22 Dec 1999 22:23:40 GMT

Hi Kevin,

From memory windows does this using version.dll which is part of win32.

Help for the relevant API's is at

http://www.msdn.microsoft.com/library/p ... b_5vub.htm

Regards,
Carlos


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 7 guests

cron