Is there a way to check if a specific Microsoft application is installed on my computer?

Consider the following scenario -

Suppose you are writing an application that should use a specific Windows application. In particular, it is an application that installs various API tools designed to integrate applications into other Microsoft software or service.

Now we make a couple of other assumptions, which are as follows:

  • Your application does not care about what version of this tool is installed , because the changes in version, as a rule, are only minor updates, bug fixes or patches for a correct installation of the components in the different versions of Windows.
  • You are writing an international tool , so there is a possibility that the necessary component of the Microsoft component is installed on the end user’s computer , but it can be installed under the -Name interface .
  • In addition, your application is distributed in a zip file. The user does not install your software, so you cannot create an installer. Instead, you should run your application and then check if the required Microsoft tool is installed.

# . , - WMI , , , , ?

SO , , , , . , , , . , , , Microsoft , , .

"" ? , , , , , ID?

, Microsoft, . , , .

+4
1

, :

GUID, : ProductCode UpgradeCode.

ProductCode ( , ).

UpgradeCode ( , , ). , .

, , , UpgradeCodes .

+2

Source: https://habr.com/ru/post/1669301/


All Articles