There's a registry setting we need to make during installation if (and only if) the user has multiple GPUs. I'm not 100% sure that this setting will take effect (for all users) without a restart, so doing it as part of install (vs. in the app startup) seems ideal.
Setting a registry key in Wix is straightforward, but I was expecting to have to write C++ code to detect the number of GPUs. My original thought was to create a Custom Action DLL for Wix, but further reading suggests that's hard to get right, and something to be avoided if possible.
So, I'm back to looking for some means to determine whether the user has more than one GPU using what's available in a wxs
file. Does anyone know how this might be possible without writing a custom action?