jordigg / chocolatey-officebusiness Goto Github PK
View Code? Open in Web Editor NEWChocolatey Office Business related packages
Chocolatey Office Business related packages
I got an interesting behavior that before installing this package, Get-ExecutionPolicy returns "RemoteSigned" but some time after starting installation and also after the installation is over, this command returns "Restricted". I suggest that even if this change is necessary for installation, it should be set back after installation is over.
We're installing this package with the following command line:
choco install Office365Business --parameters '/productid:ProPlus2019Retail /eula /exclude:Access OneNote Outlook PowerPoint Publisher Lync Word OneDrive'
Excel is successfully installed, but the package never shows up in choco list
as having been installed. This is breaking our automation because it's never able to detect that the installation has actually finished.
Would you be willing to accept a patch to make the Product ID configurable via install arguments? This may allow the package to be used for other subscriptions types (including retail and home).
Following that path, it would also be possible to introduce ExcludeApp statements for some components, i.e. to only install Word, Excel Powerpoint instead of the entire suite (of course also being configurable with install arguments, installing everything - as is - by default).
I'd be willing to contribute the necessary patches (with #5 being a prerequisite).
If you don't agree, I would like to fork your package and make it available on chocolatey with the suggested changes. If that is your preferred path, please let me know if you have any reservations or suggestions regarding namespace and mentioning / giving credit to contributors of this version.
The install script correctly loads all the values from a custom XML config file specified with the /configpath
option. However, it then overwrites whatever is in the file with any other options specified (/productid
, /exclude
, etc) and/or the default values specified in the script.
Currently the /configpath
option appears to work more like "save the generated configuration file to this location" instead of "load a configuration XML file from this location".
It should be changed to not allow any other options to be specified with /configpath and to just pass the specified path along to the office setup.exe /configure switch without adding or changing anything.
I recently started getting what appears to be a 404 error when using this package. Here is the log:
2023-01-17T20:29:07.8528264Z ##[section]Starting: Install Microsoft Word
2023-01-17T20:29:07.8644871Z ==============================================================================
2023-01-17T20:29:07.8645085Z Task : Command line
2023-01-17T20:29:07.8645197Z Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
2023-01-17T20:29:07.8645391Z Version : 2.212.0
2023-01-17T20:29:07.8645513Z Author : Microsoft Corporation
2023-01-17T20:29:07.8645640Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
2023-01-17T20:29:07.8645825Z ==============================================================================
2023-01-17T20:29:10.2107564Z Generating script.
2023-01-17T20:29:10.2405094Z ========================== Starting Command Output ===========================
2023-01-17T20:29:10.2612573Z ##[command]"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\7d80884e-cb5b-42fe-a604-373cbf36c84c.cmd""
2023-01-17T20:29:12.2298321Z Chocolatey v1.2.1
2023-01-17T20:29:12.5772821Z Installing the following packages:
2023-01-17T20:29:12.5780560Z office365business;/exclude:Access Groove Lync OneDrive OneNote Outlook Publisher PowerPoint Excel;/language:en-US;/updates:FALSE;/eula:FALSE
2023-01-17T20:29:12.5788951Z By installing, you accept licenses for the packages.
2023-01-17T20:29:14.5082639Z
2023-01-17T20:29:14.5083811Z Progress: Downloading Office365Business 15726.20202... 8%
2023-01-17T20:29:14.5084317Z Progress: Downloading Office365Business 15726.20202... 21%
2023-01-17T20:29:14.5084809Z Progress: Downloading Office365Business 15726.20202... 35%
2023-01-17T20:29:14.5085257Z Progress: Downloading Office365Business 15726.20202... 49%
2023-01-17T20:29:14.5085682Z Progress: Downloading Office365Business 15726.20202... 63%
2023-01-17T20:29:14.5086133Z Progress: Downloading Office365Business 15726.20202... 76%
2023-01-17T20:29:14.5087103Z Progress: Downloading Office365Business 15726.20202... 90%
2023-01-17T20:29:14.5088171Z Progress: Downloading Office365Business 15726.20202... 100%
2023-01-17T20:29:14.9257004Z
2023-01-17T20:29:14.9257848Z Office365Business v15726.20202 [Approved]
2023-01-17T20:29:14.9349311Z office365business package files install completed. Performing other installation steps.
2023-01-17T20:29:17.2865477Z No custom configuration specified. Generating one...
2023-01-17T20:29:17.2872237Z No Product ID specified, using default: O365BusinessRetail
2023-01-17T20:29:17.2878595Z No excluded apps specified, installing all
2023-01-17T20:29:17.2884957Z No Language ID specified, using default: MatchOS
2023-01-17T20:29:17.2891102Z No updates value specified, using default: TRUE
2023-01-17T20:29:17.2897084Z No updates value specified, using default: TRUE
2023-01-17T20:29:17.2938420Z C:\Users\VssAdministrator\AppData\Local\Temp\chocolatey\Office365Business
2023-01-17T20:29:17.4006776Z Add
2023-01-17T20:29:17.4044185Z Updates
2023-01-17T20:29:17.4052896Z Display
2023-01-17T20:29:17.4061246Z Logging
2023-01-17T20:29:17.4069150Z RemoveMSI
2023-01-17T20:29:20.1132277Z Attempt to get headers for https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_15726-20202.exe failed.
2023-01-17T20:29:20.1136922Z The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_15726-20202.exe'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
2023-01-17T20:29:20.1169952Z Downloading Office365DeploymentTool 32 bit
2023-01-17T20:29:20.1170510Z from 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_15726-20202.exe'
2023-01-17T20:29:22.2575035Z ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_15726-20202.exe'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
2023-01-17T20:29:22.6166540Z The install of office365business was NOT successful.
2023-01-17T20:29:22.6181955Z Error while running 'C:\ProgramData\chocolatey\lib\Office365Business\tools\chocolateyInstall.ps1'.
2023-01-17T20:29:22.6182433Z See log for details.
2023-01-17T20:29:24.6736550Z
2023-01-17T20:29:24.6737294Z Chocolatey installed 0/0 packages.
2023-01-17T20:29:24.6737743Z See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2023-01-17T20:29:24.6751553Z
2023-01-17T20:29:24.6751920Z Did you know the proceeds of Pro (and some proceeds from other
2023-01-17T20:29:24.6752348Z licensed editions) go into bettering the community infrastructure?
2023-01-17T20:29:24.6752803Z Your support ensures an active community, keeps Chocolatey tip-top,
2023-01-17T20:29:24.6753235Z plus it nets you some awesome features!
2023-01-17T20:29:24.6753619Z https://chocolatey.org/compare
2023-01-17T20:29:24.6873774Z Second path fragment must not be a drive or UNC name.
2023-01-17T20:29:24.6874231Z Parameter name: path2
2023-01-17T20:29:25.1248411Z ##[section]Finishing: Install Microsoft Word
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.