Setup: check for the C++ build tools and Windows SDK before choosing the game #44

Open
github-bot wants to merge 1 commit from github-bot/gh-44 into main AGit
Owner

@⁠kilolimaVI on GitHub · 2026-11-25 20:25 UTC · original
kilolimaVI:setup/check-build-tools → main · +24 −0 · 1 files · 1 commits · open

Without Visual Studio's C++ build tools or a Windows SDK, Setup.cmd asks for the game and then runs the whole release build, which fails only at the end with a linker error. Setup now checks both right after the Rust check, before the game picker, and names what is missing with a winget command that installs both.

  • C++ tools: vswhere -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64
  • SDK: KitsRoot10 from the registry, with an x64 kernel32.lib under Lib\*\um\x64

Tested (Windows 11 26300, Build Tools 2022 with the C++ workload)

  • With everything installed, Setup passes the check and opens the game picker as before.
  • Test-BuildTools alone: nothing missing on this machine; with a nonexistent vswhere.exe it reports the C++ build tools; with a nonexistent SDK root it reports the SDK.

Not tested

  • A real machine without the tools (simulated with wrong paths above).
  • Visual Studio installed somewhere vswhere does not find, e.g. a standalone MSVC.

AI use
Script change and description written with Claude (Claude Opus 5.5); I ran the checks above.

**@⁠kilolimaVI** on GitHub · 2026-11-25 20:25 UTC · [original](https://github.com/DexNom/VIctory/pull/44) `kilolimaVI:setup/check-build-tools` → `main` · +24 −0 · 1 files · 1 commits · open Without Visual Studio's C++ build tools or a Windows SDK, `Setup.cmd` asks for the game and then runs the whole release build, which fails only at the end with a linker error. Setup now checks both right after the Rust check, before the game picker, and names what is missing with a `winget` command that installs both. - C++ tools: `vswhere -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64` - SDK: `KitsRoot10` from the registry, with an x64 `kernel32.lib` under `Lib\*\um\x64` **Tested** (Windows 11 26300, Build Tools 2022 with the C++ workload) - With everything installed, Setup passes the check and opens the game picker as before. - `Test-BuildTools` alone: nothing missing on this machine; with a nonexistent `vswhere.exe` it reports the C++ build tools; with a nonexistent SDK root it reports the SDK. **Not tested** - A real machine without the tools (simulated with wrong paths above). - Visual Studio installed somewhere `vswhere` does not find, e.g. a standalone MSVC. **AI use** Script change and description written with Claude (Claude Opus 5.5); I ran the checks above.
Without them the release build failed only at its end, with a linker error, after the game had been chosen. Setup now looks for the VC tools with vswhere and for the SDK's x64 kernel32.lib, and names what is missing with the winget command that installs both.

Assisted-by: Claude (Claude Opus 5.5)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:32:30 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/44/head:github-bot/gh-44'
git switch 'github-bot/gh-44'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-44'
git switch 'github-bot/gh-44'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-44'
git switch 'github-bot/gh-44'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-44'
git switch 'main'
git merge --squash 'github-bot/gh-44'
git switch 'main'
git merge --ff-only 'github-bot/gh-44'
git switch 'main'
git merge 'github-bot/gh-44'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.