Which product code does MsiGetProductCode return if a component is shared by multiple products?

Design Question

If a component is shared by multiple products, which product code does MsiGetProductCode return?

Design Pointer

Whichever one it finds first. There’s no guaranteed order. If you want to identify a specific product, then only query for a component unique to that product.

Content credit also belongs to

[Author: Robert Flaming]

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at https://www.microsoft.com/info/cpyright.htm.