mxre / winres

Create and set windows icons and metadata for executables with a rust build script
MIT License
294 stars 42 forks source link

winres fails to locate correct Windows Kit in my environment #14

Closed retep998 closed 5 years ago

retep998 commented 5 years ago
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots]
"KitsRoot10"="C:\\Program Files\\Windows Kits\\10\\"
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots]
"KitsRoot10"="C:\\Program Files (x86)\\Windows Kits\\10\\"

When building for 64-bit, winres ends up looking at the regular registry node instead of the WOW6432Node version and so ends up getting the Program Files version instead of the Program Files (x86) version, and therefore fails to locate rc.exe. It might be a good idea to pass /reg:32 when calling reg.