08-08-2008 09:05 AM
As I know, if I'm using ACT! 2008 version 10 SDK for my application, my application will not be able to work on any earlier versions of ACT!.
Now, my question is, how can I get the user's ACT! version number so that I can make my application only runs on those machines that have ACT! 2008 version 10 or above installed?
Thanks in advanced!
08-10-2008 04:10 PM
If your add-on is compiled against 10.x or better it will not run on earlier version.
In those cases, your add-on will completely fail on load and your code will not run.
You need to check the ACT! version number before the add-on gets installed.
You should do that in your installer code rather then waiting for the failure to happen.
My installer code gets the ACT! install path from this regkey
It then checks the ACTSage.exe for its build number.
That way you can display a nice dialog to the end-user like
"The Durkin Toolkit requires ACT 10.2 or better to install"
"Please upgrade ACT! before continuing."
Hope this helps.
-- jim durkin
08-12-2008 11:32 AM
If you want to roll your own code, you can call the Windows API. If you need to know how to call it from .NET check out this article
For getting a version number from an exe use the registry to get the install path, and call this API call against either ActSage.exe, or the Act.Framework.dll
Then call the GetFileVersionInfo function in the windows api