You are viewing limited content. For full access, please sign in.

Question

Question

What is the best way to detect if SDK runtime is installed?

asked on May 5, 2015

Rather than use a GPO to run the SDK runtime installer, I'd like my app to check for the presence of the SDK and the VC redistributable, and install them if they are not found.

I have figured out how to use the registry to check for the VC redistributable, but what is the best way to determine whether the SDK runtime has been installed?

0 0

Answer

SELECTED ANSWER
replied on May 7, 2015

I've found that it *does* leave some tracks in the registry.  I found a key here:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0D51305E-BB5B-4969-8C1B-ACE297C87E3A}

There are several values in there; I picked "DisplayVersion" to check for.

0 0
replied on May 7, 2015 Show version history

That particular key is used by windows installer to track installed applications and determine what shows in the programs and features view. You can use that, but be aware it's going to be specific to that exact version of the SDK, and is not something you can use accross-versions. 

It will also be different for x86 vs. x64 installations, since they are each seen as individual installation packages. 

0 0

Replies

replied on May 6, 2015

The SDK runtime installer doesn't record information to the registry to indicate its installed. Your best bet is to check for the presence of the library files your program is dependent on. That being said, a registry key for detection sounds useful so we will add it in future releases.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.