How do i check if a particular MSI is installed?

后端 未结 3 1707
自闭症患者
自闭症患者 2020-12-30 12:52

I\'m writing a powershell script that will install some dependencies for my webapp. In my script, I\'m running into a recurring problem of checking if a particular applicati

3条回答
  •  悲&欢浪女
    2020-12-30 13:11

    Have your script scan:

    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
    set-location HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall
    Get-ChildItem | foreach-object { $_.GetValue("DisplayName") }
    

提交回复
热议问题