使用 DTF,我可以使用以下代码很好地安装产品。
var product = (from p in ProductInstallation.AllProducts
where p.Publisher == CompanyName && p.ProductName == ProductName
select p).FirstOrDefault();
但是我要更新的属性没有设置器。喜欢版本。DTF 中的其他所有内容似乎都针对 MSI 而不是已安装的产品