Skip to content

Commit 94eb3c0

Browse files
committed
Install Edge automatically
1 parent d46043c commit 94eb3c0

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

doc/verify/windows-11-24H2/main.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,19 @@ resource "local_file" "playbook" {
371371
win_shortcut:
372372
src: '%ProgramFiles(x86)%'
373373
dest: '%Public%\Desktop\Program Files (x86).lnk'
374+
- name: Download Edge installer
375+
when: not "${var.edge-msi-download-url}" == ""
376+
win_get_url:
377+
url: "${var.edge-msi-download-url}"
378+
dest: 'C:\Users\Public\Edge.msi'
379+
url_username: "${var.download-user}"
380+
url_password: "${var.download-token}"
381+
- name: Disable Edge update
382+
when: not "${var.edge-msi-download-url}" == ""
383+
win_shell: netsh advfirewall firewall add rule name="Disable Edge Updates" dir=out action=block program="C:\Program Files (x86)\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe"
384+
- name: Install Edge from installer
385+
when: not "${var.edge-msi-download-url}" == ""
386+
win_shell: msiexec /I C:\Users\Public\Edge.msi ALLOWDOWNGRADE=1
374387
- name: Download PrintCanceler for webextensions
375388
win_get_url:
376389
url: "https://github.com/clear-code/PrintCanceler/archive/main.zip"

doc/verify/windows-11-24H2/terraform.tfvars.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ flash-installer-url = ""
66
hookdate-download-url = ""
77
debugview-download-url = ""
88
old-ie-download-url = ""
9+
edge-msi-download-url = ""
910
firefox-policy-template-url = "https://github.com/mozilla/policy-templates/releases/download/v4.12/policy_templates_v4.12.zip"
1011
chrome-policy-template-url = ""
1112
edge-policy-template-url = ""

doc/verify/windows-11-24H2/variable.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ variable "flash-installer-url" {}
66
variable "hookdate-download-url" {}
77
variable "debugview-download-url" {}
88
variable "old-ie-download-url" {}
9+
variable "edge-msi-download-url" {}
910
variable "firefox-policy-template-url" {}
1011
variable "chrome-policy-template-url" {}
1112
variable "edge-policy-template-url" {}

0 commit comments

Comments
 (0)