I built a Windows installer/bootstrapper, using Visual Studio 2022, for an x64 app that requires certain x64 prerequisites be installed along side. However the bootstrapper is unable to detect whether the prerequisites are already installed because it runs as an x86 (32-bit) process and cannot read the x64 registry on target machines. In all cases, the generated install.log file says, "Unable to read registry value," even though though the values are clearly visible in 'regedit' or from a command line 'reg query'. I've tried hundreds of registry key/value pairs in the bootstrapper manifest, and there doesn't seem to be a Visual Studio option to force it to build an x64 setup.exe (the Configuration Manager dropdowns are empty and the solution's TargetPlatform property has no effect).
Does anyone know of a way to build a bootstrapper, in Visual Studio, that will either run as a 64-bit process or have the ability to read the x64 registry, short of using third-party apps?


