Community
Showing results for 
Search instead for 
Do you mean 
Reply

Retrieve ACT! Version Number

Yan
New Member
Posts: 8
Country: Ireland

Retrieve ACT! Version Number

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!

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Retrieve ACT! Version Number

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 

HKEY_LOCAL_MACHINE\SOFTWARE\ACT\Install\InstallPath

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

Tuned Listener
Posts: 20
Country: USA

Re: Retrieve ACT! Version Number

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

 

http://msdn.microsoft.com/en-us/magazine/cc164123.aspx

 

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

 

http://msdn.microsoft.com/en-us/library/ms647003.aspx

--
Jason L. van Brackel
Copper Contributor
Posts: 29
Country: USA

Re: Retrieve ACT! Version Number

Or just look at HKEY_LOCAL_MACHINE\Software\ACT\Act7Updater\LastAppliedUpdateVersion.  I find that to be the easiest.
Tuned Listener
Posts: 20
Country: USA

Re: Retrieve ACT! Version Number

Greg,

 

Good call.  I haven't looked at that before.

 

Jason

--
Jason L. van Brackel