From 91fc63445dc3f8e77cd43b8f105b41ae09a0020c Mon Sep 17 00:00:00 2001 From: Mathieu Tarral Date: Wed, 28 Aug 2024 15:21:07 +0200 Subject: [PATCH 1/2] playbook: update to latest WDK --- templates/windows/playbook.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/windows/playbook.yml b/templates/windows/playbook.yml index 2ed4c26..cd1a8dc 100644 --- a/templates/windows/playbook.yml +++ b/templates/windows/playbook.yml @@ -2,7 +2,7 @@ hosts: default vars: vsix_installer: "{{ ansible_env['ProgramFiles'] }}\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VSIXInstaller.exe" - wdk_vsix_dir: "{{ ansible_env['ProgramFiles(x86)'] }}\\Windows Kits\\10\\Vsix\\VS2022\\10.0.22621.0" + wdk_vsix_dir: "{{ ansible_env['ProgramFiles(x86)'] }}\\Windows Kits\\10\\Vsix\\VS2022\\10.0.26100.1\\amd64" tasks: # This should be set before running the win_inet_proxy module - name: Configure IE proxy settings to apply to all users @@ -97,7 +97,7 @@ - name: Download latest WDK win_get_url: - url: https://go.microsoft.com/fwlink/?linkid=2196230 + url: https://go.microsoft.com/fwlink/?linkid=2272234 dest: "{{ ansible_facts['env']['TEMP'] }}\\wdk_setup.exe" - name: Install WDK From b29c770963beec2a21b15c68ce8ebff00cd0b1c9 Mon Sep 17 00:00:00 2001 From: Mathieu Tarral Date: Thu, 29 Aug 2024 12:22:09 +0200 Subject: [PATCH 2/2] playbook: install SDK/WDK with Visual Studio installer --- templates/windows/playbook.yml | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/templates/windows/playbook.yml b/templates/windows/playbook.yml index cd1a8dc..f1b31f5 100644 --- a/templates/windows/playbook.yml +++ b/templates/windows/playbook.yml @@ -2,7 +2,7 @@ hosts: default vars: vsix_installer: "{{ ansible_env['ProgramFiles'] }}\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\VSIXInstaller.exe" - wdk_vsix_dir: "{{ ansible_env['ProgramFiles(x86)'] }}\\Windows Kits\\10\\Vsix\\VS2022\\10.0.26100.1\\amd64" + wdk_vsix_dir: "{{ ansible_env['ProgramFiles(x86)'] }}\\Windows Kits\\10\\Vsix\\VS2022\\10.0.26100.0\\amd64" tasks: # This should be set before running the win_inet_proxy module - name: Configure IE proxy settings to apply to all users @@ -79,38 +79,9 @@ # https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community?view=vs-2022&preserve-view=true - name: Install Visual Studio community and compiler win_command: - # cmd: vs_community.exe --quiet --wait --norestart --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows11SDK.22000 - cmd: vs_community.exe --quiet --wait --norestart --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 + cmd: vs_community.exe --quiet --wait --norestart --add Microsoft.VisualStudio.Workload.NativeDesktop --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.Windows11SDK.22621 --add Component.Microsoft.Windows.DriverKit args: chdir: "{{ ansible_facts['env']['TEMP'] }}" - - name: Download latest SDK - win_get_url: - url: https://go.microsoft.com/fwlink/?linkid=2237387 - dest: "{{ ansible_facts['env']['TEMP'] }}\\sdk_setup.exe" - - - name: Install latest SDK - win_command: - cmd: sdk_setup.exe /q /norestart - args: - chdir: "{{ ansible_facts['env']['TEMP'] }}" - - - name: Download latest WDK - win_get_url: - url: https://go.microsoft.com/fwlink/?linkid=2272234 - dest: "{{ ansible_facts['env']['TEMP'] }}\\wdk_setup.exe" - - - name: Install WDK - win_command: - cmd: wdk_setup.exe /q /norestart - args: - chdir: "{{ ansible_facts['env']['TEMP'] }}" - - - name: install WDK VSIX extension - win_command: - cmd: "{{ vsix_installer | ansible.windows.quote }} /quiet /admin /logFile:C:\\wdk_vsix.log WDK.vsix" - args: - chdir: "{{ wdk_vsix_dir }}" - - name: Enable Testsigning win_command: Bcdedit.exe -set TESTSIGNING ON