From 343fd031ef0a230e92834ac7e271c4944f474267 Mon Sep 17 00:00:00 2001 From: Ana Maria Martinez Gomez Date: Wed, 21 Aug 2024 15:58:15 +0200 Subject: [PATCH] [microsoft-office.vm] Add package Add `microsoft-office.vm` package that installs Microsoft Office ProPlusRetail. --- .../microsoft-office.vm/microsoft-office.vm.nuspec | 12 ++++++++++++ .../microsoft-office.vm/tools/chocolateyinstall.ps1 | 9 +++++++++ scripts/test/lint.py | 1 + 3 files changed, 22 insertions(+) create mode 100755 packages/microsoft-office.vm/microsoft-office.vm.nuspec create mode 100755 packages/microsoft-office.vm/tools/chocolateyinstall.ps1 diff --git a/packages/microsoft-office.vm/microsoft-office.vm.nuspec b/packages/microsoft-office.vm/microsoft-office.vm.nuspec new file mode 100755 index 000000000..7bfaabce9 --- /dev/null +++ b/packages/microsoft-office.vm/microsoft-office.vm.nuspec @@ -0,0 +1,12 @@ + + + + microsoft-office.vm + 0.0.0.20240821 + Microsoft Office ProPlusRetail + Microsoft + + + + + diff --git a/packages/microsoft-office.vm/tools/chocolateyinstall.ps1 b/packages/microsoft-office.vm/tools/chocolateyinstall.ps1 new file mode 100755 index 000000000..d0dea95e0 --- /dev/null +++ b/packages/microsoft-office.vm/tools/chocolateyinstall.ps1 @@ -0,0 +1,9 @@ +$ErrorActionPreference = 'Stop' +Import-Module vm.common -Force -DisableNameChecking + +try { + # Install with choco instead as dependency to provide params such the product + choco install microsoft-office-deployment --params="'/DisableUpdate:TRUE /Language:en-us /Product:ProPlusRetail'" +} catch { + VM-Write-Log-Exception $_ +} diff --git a/scripts/test/lint.py b/scripts/test/lint.py index 18e0b4add..16d8452b1 100644 --- a/scripts/test/lint.py +++ b/scripts/test/lint.py @@ -327,6 +327,7 @@ class UsesInvalidCategory(Lint): "installer.vm", "libraries.python2.vm", "libraries.python3.vm", + "microsoft-office.vm", "notepadpp.plugin.", "npcap.vm", "openjdk.vm",