# windows_sdk.zig: Reinstate COM ISetupEnumInstances logic · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8579f720b045222dfb42d451552528f164740cd2)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8579f720b045222dfb42d451552528f164740cd2

Requested commit: 8579f720b045222dfb42d451552528f164740cd2

Commit: 8579f720b045222dfb42d451552528f164740cd2

Tree: 4309c7d3adf9002cb8441bd511adea5c55d3f434

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
windows_sdk.zig: Reinstate COM ISetupEnumInstances logic

The C++ version of this code used this logic, and it turns out it is able to find some setups that the current registry/Vs7 methods cannot.

For example, if only the "Build Tools for Visual Studio" are installed but not Visual Studio itself, then only the ISetupEnumInstances method seems to find it.

Follow up to #15657, fixes a regression caused by moving from the C++ version to the Zig version

```

## Parents

- [282cb5ee5d75b4de2f215479b0c5531750908608](https://git.cafe/gitcafe/zig/commit/282cb5ee5d75b4de2f215479b0c5531750908608?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8579f720b045222dfb42d451552528f164740cd2?format=markdown)
