4

I can query the current version from RuntimeInfo.Version. But I would also like to know what service pack is also installed. Do I need to just check the registery key HKEY_LOCAL_MACHINE\SOFTWARE\ESRI\ArcGIS\RealVersion. Or is there a proper ArcObject that allows such a thing?

4

This may be a better way then trying to read the registry key.

This page can be used as a lookup from version number to service pack.

Process.GetCurrentProcess().MainModule.FileVersionInfo.FileVersion
  • +1 I guess we can safely assume build numbers always increase, so you can just compare to see if the build number you require against whatever the build number is in the FileVersion. – Kirk Kuykendall Feb 28 '12 at 23:42
  • @KirkKuykendall That seems to be the case. The only thing I'm worried about is that the service packs don't update the executable version. I don't have any evidence that can happen, but I know that some DLLs don't always match... – Erik L Feb 29 '12 at 3:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.