From 0f6b4b4b8a7af5be0a9d0795f6aa83ad5f7c25c9 Mon Sep 17 00:00:00 2001 From: "ALLEN-PC\\acj30" Date: Sun, 12 Jan 2025 15:50:24 -0600 Subject: [PATCH] Integrate registry key fix for using VPC without Visual Studio 2013 --- sp/src/vpc_scripts/newer_vs_toolsets.vpc | 4 ++++ sp/src/vpc_scripts/newer_vs_toolsets_regkey_fix.reg | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 sp/src/vpc_scripts/newer_vs_toolsets_regkey_fix.reg diff --git a/sp/src/vpc_scripts/newer_vs_toolsets.vpc b/sp/src/vpc_scripts/newer_vs_toolsets.vpc index 950e1677..5e75a494 100644 --- a/sp/src/vpc_scripts/newer_vs_toolsets.vpc +++ b/sp/src/vpc_scripts/newer_vs_toolsets.vpc @@ -12,6 +12,10 @@ $Conditional VS2017 "0" // Toggles Visual Studio 2017 (v141) toolset $Conditional VS2019 "0" // Toggles Visual Studio 2019 (v142) toolset $Conditional VS2022 "0" // Toggles Visual Studio 2022 (v143) toolset +// +// WARNING: If you do not have Visual Studio 2013 installed and try to use VPC, it may produce an error about a missing RegKey. +// You can fix this without installing VS2013 by running newer_vs_toolsets_regkey_fix.reg, which is in the same directory as this file. +// This .reg file adds a registry key which is normally created by installing VS2013. You will only have to do this once per machine. // // VPC may still say "Generating for Visual Studio 2013" even when using one of the above toolsets. This message is irrelevant and can be ignored. // diff --git a/sp/src/vpc_scripts/newer_vs_toolsets_regkey_fix.reg b/sp/src/vpc_scripts/newer_vs_toolsets_regkey_fix.reg new file mode 100644 index 00000000..dfb81949 --- /dev/null +++ b/sp/src/vpc_scripts/newer_vs_toolsets_regkey_fix.reg @@ -0,0 +1,7 @@ +Windows Registry Editor Version 5.00 + +; https://github.com/ValveSoftware/source-sdk-2013/issues/72#issuecomment-326633328 +; If you are running a 32-bit system, you may need to remove WOW6432Node from the path. + +[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\10.0\Projects\{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}] +"DefaultProjectExtension"="vcproj"