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",