Getting exe name of installed programs in C#?

后端 未结 3 436
长发绾君心
长发绾君心 2020-12-19 18:21

i am using this to get the program names, but i need the exe names. How do i find them?

string SoftwareKey = \"SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVer         


        
3条回答
  •  萌比男神i
    2020-12-19 19:04

    The installer doesn't, and really couldn't, know about the actuall executables. It only knows about the installation package - the .MSI file.

    In order to get the names of the executables (yes, many "programs" are composed of numerous .EXE files) you would need to interrogate the .MSI file.

提交回复
热议问题