diff --git a/installer/Build.bat b/installer/Build.bat
index 45626df0..18d7b00f 100644
--- a/installer/Build.bat
+++ b/installer/Build.bat
@@ -1,29 +1,31 @@
SET NPCAPDIR=".."
SET MODE="Release"
rem SET MODE="Debug"
+SET VSVER=17
::::::::::
-for /f "usebackq delims=#" %%a in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -version 16 -property installationPath`) do call "%%a\VC\Auxiliary\Build\vcvarsall.bat" x86
+for /f "usebackq delims=#" %%a in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -version %VSVER% -property installationPath`) do call "%%a\VC\Auxiliary\Build\vcvarsall.bat" x86 & goto :break1
+:break1
if %ERRORLEVEL% NEQ 0 goto :badenv
msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE%" /p:Platform="x86"
-msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE% Win8 driver" /p:Platform="x86"
msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE% Win10 driver" /p:Platform="x86"
msbuild "%NPCAPDIR%\wpcap\build-win32\wpcap.vcxproj" /m /t:Build /p:Configuration="%MODE%" /p:Platform="Win32"
-for /f "usebackq delims=#" %%a in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -version 16 -property installationPath`) do call "%%a\VC\Auxiliary\Build\vcvarsall.bat" x64
+for /f "usebackq delims=#" %%a in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -version %VSVER% -property installationPath`) do call "%%a\VC\Auxiliary\Build\vcvarsall.bat" x64 & goto :break2
+:break2
if %ERRORLEVEL% NEQ 0 goto :badenv
msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE%" /p:Platform="x64"
-msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE% Win8 driver" /p:Platform="x64"
msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE% Win10 driver" /p:Platform="x64"
msbuild "%NPCAPDIR%\wpcap\build-x64\wpcap.vcxproj" /m /t:Build /p:Configuration="%MODE%" /p:Platform="x64"
-for /f "usebackq delims=#" %%a in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -version 16 -property installationPath`) do call "%%a\VC\Auxiliary\Build\vcvarsall.bat" amd64_arm64
+for /f "usebackq delims=#" %%a in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -version %VSVER% -property installationPath`) do call "%%a\VC\Auxiliary\Build\vcvarsall.bat" amd64_arm64 & goto :break3
+:break3
if %ERRORLEVEL% NEQ 0 goto :badenv
msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE%" /p:Platform="ARM64"
-rem ARM64 is only supported for Win10, so we do not have separate Win8/Win10 driver configurations for this platform
+msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE% Win10 driver" /p:Platform="ARM64"
msbuild "%NPCAPDIR%\wpcap\build-ARM64\wpcap.vcxproj" /m /t:Build /p:Configuration="%MODE%" /p:Platform="ARM64"
exit /b
diff --git a/packetWin7/npf/npf Package/npf Package.vcxproj b/packetWin7/npf/npf Package/npf Package.vcxproj
index dfc96044..a20b73fe 100644
--- a/packetWin7/npf/npf Package/npf Package.vcxproj
+++ b/packetWin7/npf/npf Package/npf Package.vcxproj
@@ -192,8 +192,6 @@
npf_Package
- $(VCTargetsPath11)
- 10.0
Utility
@@ -1222,4 +1220,4 @@
-
\ No newline at end of file
+
diff --git a/packetWin7/vs14/npcap.sln b/packetWin7/vs14/npcap.sln
index 771090c9..89627292 100644
--- a/packetWin7/vs14/npcap.sln
+++ b/packetWin7/vs14/npcap.sln
@@ -261,13 +261,13 @@ Global
{1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release Win8 driver|x86.ActiveCfg = Win8 OEM RO Release|Win32
{1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release Win8 driver|x86.Build.0 = Win8 OEM RO Release|Win32
{1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release Win8 driver|x86.Deploy.0 = Win8 OEM RO Release|Win32
- {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release|ARM64.ActiveCfg = Win7 OEM RO Release|ARM64
- {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release|x64.ActiveCfg = Win7 OEM RO Release|x64
- {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release|x64.Build.0 = Win7 OEM RO Release|x64
- {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release|x64.Deploy.0 = Win7 OEM RO Release|x64
- {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release|x86.ActiveCfg = Win7 OEM RO Release|Win32
- {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release|x86.Build.0 = Win7 OEM RO Release|Win32
- {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release|x86.Deploy.0 = Win7 OEM RO Release|Win32
+ {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release Win7 driver|ARM64.ActiveCfg = Win7 OEM RO Release|ARM64
+ {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release Win7 driver|x64.ActiveCfg = Win7 OEM RO Release|x64
+ {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release Win7 driver|x64.Build.0 = Win7 OEM RO Release|x64
+ {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release Win7 driver|x64.Deploy.0 = Win7 OEM RO Release|x64
+ {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release Win7 driver|x86.ActiveCfg = Win7 OEM RO Release|Win32
+ {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release Win7 driver|x86.Build.0 = Win7 OEM RO Release|Win32
+ {1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.OEM RO Release Win7 driver|x86.Deploy.0 = Win7 OEM RO Release|Win32
{1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.Release No AirPcap|ARM64.ActiveCfg = Win7 Release|ARM64
{1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.Release No AirPcap|x64.ActiveCfg = Win7 Release|x64
{1A6BC1F1-F16A-4653-B787-FAF5A0E50229}.Release No AirPcap|x86.ActiveCfg = Win7 Release|Win32