Skip to content

Commit 1b47fa0

Browse files
authored
WinPB: Update WiX Version (#3954)
* WinPB: Update WiX Version * WinPB: Update cygwin download checksum * WinPB: Update WiX Version Task Improvement
1 parent 5e9bfb9 commit 1b47fa0

File tree

2 files changed

+9
-4
lines changed
  • ansible/playbooks/AdoptOpenJDK_Windows_Playbook/roles

2 files changed

+9
-4
lines changed

ansible/playbooks/AdoptOpenJDK_Windows_Playbook/roles/WiX/tasks/main.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
###############
55
- name: Set Wix version variable
66
set_fact:
7-
wix_version: 5.0.2
7+
wix_version: 6.0.0
88
tags: Wix
99

1010
- name: Test if WiX is already installed
@@ -46,8 +46,13 @@
4646
when: wix_installed.stat.exists
4747
tags: Wix
4848

49-
- name: Install Wix Toolset when not installed or version is not correct
50-
win_shell: dotnet tool install wix --version {{ wix_version }} --tool-path 'C:\\Program Files\\dotnet'
49+
- name: Install Wix Toolset when not installed or update when version is not correct
50+
win_shell: |
51+
if (dotnet tool list --tool-path 'C:\\Program Files\\dotnet' | Select-String wix) {
52+
dotnet tool update wix --version {{ wix_version }} --tool-path 'C:\\Program Files\\dotnet'
53+
} else {
54+
dotnet tool install wix --version {{ wix_version }} --tool-path 'C:\\Program Files\\dotnet'
55+
}
5156
when: (not wix_installed.stat.exists) or (installed_wix_version.stdout.find(wix_version) == -1)
5257
tags: Wix
5358

ansible/playbooks/AdoptOpenJDK_Windows_Playbook/roles/cygwin/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
url: https://cygwin.com/setup-x86_64.exe
1414
dest: C:\temp\cygwin.exe
1515
force: no
16-
checksum: 2e2e322b138f6337d1a9be71cc0d3b9bb05991c5ac72bd68cf3c1c5f309ecf30
16+
checksum: 46993d76d756bde18564f72a4ee07384cd82b447527ca406c8bfc034cb05c664
1717
checksum_algorithm: sha256
1818
when: not cygwin_installed.stat.exists
1919
register: cygwin_download

0 commit comments

Comments
 (0)