Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

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
share|improve this answer
    
+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... –  baens Feb 29 '12 at 3:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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