Is MsiOpenProduct the correct way to read properties from an installed product?

后端 未结 3 1020
有刺的猬
有刺的猬 2020-11-30 14:28

Given an MSI product code I want to get the upgrade code (among other properties) from an already installed product. I have tried this by calling the MsiOpenProduct method,

3条回答
  •  心在旅途
    2020-11-30 14:54

    For the information you want, it sounds like you can just call ::MsiGetProductInfo(). ::MsiOpenDatabase() is a very slow operation while ::MsiGetProductInfo() is (IIRC) more on par with registry look ups.

提交回复
热议问题