C#: How to get installing programs exactly like in control panel programs and features?

前端 未结 4 1259
野的像风
野的像风 2020-12-05 11:16

I read a lot of information of getting programs. None of algorithms did do what I want. I need to get installed programs exactly like in control panel.

So I

4条回答
  •  北海茫月
    2020-12-05 11:36

    The SystemComponent registry key discussed in several other answers here is usually a REG_DWORD with possible values of 0 or 1. However, I have seen a couple of instances (such as Microsoft Visio 2010 and Microsoft Project 2010) where SystemComponent is a REG_SZ with no data. Any solution that casts SystemComponent to an int is therefore liable to throw an exception in these situations.

提交回复
热议问题