Getting exe name of installed programs in C#?

后端 未结 3 445
长发绾君心
长发绾君心 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条回答
  •  清歌不尽
    2020-12-19 19:09

    In Windows, programs are normally installed by msi file and there can be multiple exe installed by a single package. It's true that sometimes programs are installed by setup.exe but they are just a wrapper extracting the real msi file.

    Some vendor like InstallShield might store the setup.exe somewhere in the local harddrive just in case user needs to launch the setup.exe again for modify\uninstallation purpose. However, this is vendor specific implementation.

提交回复
热议问题