How to get a list of installed software products?

前端 未结 4 1659
清歌不尽
清歌不尽 2020-12-19 15:27

How do I get a list of software products which are installed on the system. My goal is to iterate through these, and get the installation path of a few of them.

PSEU

4条回答
  •  梦毁少年i
    2020-12-19 16:15

    Well if all the programs you need store their install paths on the registry you can use something like: http://visualbasic.about.com/od/quicktips/qt/regprogpath.htm (I know it's VB but same principle).

    I'm sure there probably is a way to get the Program list via .NET if some don't store their install paths (or do it obscurely), but I don't know it.

提交回复
热议问题