Notices: This section not yet converted to new layout. Download stats are rolling back out.

Microsoft Office Deployment

16.0.11107.33602

Package test results are passing.

This package was approved by moderator gep13 on 11/15/2018.

Installiert Microsoft Office 2016 und 365.

Package Parameters

  • /64bit to install Office 365 ProPlus 64-bit, otherwise it will default to 32-bit.
  • /DisableUpdate TRUE, FALSE
  • /Shared to install with Shared Computer Licensing for Remote Desktop Services.
  • /Channel default Broad Microsoft Docs
  • /Language default MatchOS MatchOS, ar-sa, bg-bg, zh-cn, zh-tw, hr-hr, cs-cz, da-dk, nl-nl, en-us, et-ee, fi-fi, fr-fr, de-de, el-gr, he-il, hi-in, hu-hu, id-id, it-it, ja-jp, kk-kz, ko-kr, lv-lv, lt-lt, ms-my, nb-no, pl-pl, pt-br, pt-pt, ro-ro, ru-ru, sr-latn-cs, sk-sk, sl-si, es-es, sv-se, th-th, tr-tr, uk-ua, vi-vn
  • /Product default HomeBusinessRetail Supportet HomeStudentRetail, PersonalRetail, HomeBusinessRetail, ProfessionalRetail, ProPlusRetail, O365HomePremRetail, O365SmallBusPremRetail, O365BusinessRetail, O365ProPlusRetail, AccessRetail, ExcelRetail, InfoPathRetail,OneNoteRetail, OutlookRetail, PowerPointRetail, PublisherRetail, WordRetail, SPDRetail, ProjectStdRetail, ProjectProRetail, ProjectStdXVolume, ProjectProXVolume, VisioStdRetail, VisioProRetail, VisioStdXVolume, VisioProXVolume, LyncEntryRetail, LyncRetail, SkypeforBusinessEntryRetail, SkypeforBusinessRetail
  • /Exclude Publisher, PowerPoint, OneDrive, Outlook, OneNote, Lync, Groove, Excel, Access, Word

To install Microsoft Office Deployment, run the following command from the command line or from PowerShell:

C:\> choco install microsoft-office-deployment

To upgrade Microsoft Office Deployment, run the following command from the command line or from PowerShell:

C:\> choco upgrade microsoft-office-deployment

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    # microsoft-office-deployment install
    
    $ErrorActionPreference = 'Stop';
    $PackageParameters = Get-PackageParameters
    
    $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)"
    $urlPackage            = 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_11107-33602.exe'
    $checksumPackage       = '08dfd4f6f56a33184480ace1c224675b21b4f136d1c7792cc23fa6a4ec377031934d03813a79b70175c4659a1a7929fd7ab1cdfe0d007120c95a654eebcaccba'
    $checksumTypePackage   = 'SHA512'
    
    $binDir = "$($toolsDir)\..\bin"
    $logDir = "$($toolsDir)\..\logs"
    
    $arch = 32
    $sharedMachine = 0
    $languages = "MatchOS"
    $products = "HomeBusinessRetail" 
    $channel = "Broad"
    $updates = "TRUE"
    
    if ($PackageParameters) {
    
        if ($PackageParameters["64bit"]) {
            Write-Host "Installing 64-bit version."
            $arch = 64
        }
        else {
            Write-Host "Installing 32-bit version."
        }
    
        if ($PackageParameters["DisableUpdate"]) {
            Write-Host "Update Disabled"
            $updates = "FALSE"
        }
    
        if ($PackageParameters["Shared"]) {
            Write-Host "Installing with Shared Computer Licensing for Remote Desktop Services."
            $sharedMachine = 1
        }
    
        if ($PackageParameters["Channel"]) {
            Write-Host "The following update channel has been selected $($PackageParameters["Channel"])"
            $sharedMachine = 1
        }
    
        if ($PackageParameters["Language"]) {
            $languages = $PackageParameters["Language"].split(",")
            foreach ($language in $languages) {
                if (Get-Content "$($toolsDir)\lists\languagesList.txt" | Select-String $language) {
                    Write-Host "Installing language variant $($language)"                 
                }
                else {
                    if ($language.Count -gt 1 ) {
                        Write-Warning "$($language) not found"
                        $languages = $languages -ne $language
                    }            
                }
            }
        }
    
        if ($PackageParameters["Product"]) {        
            $products = $PackageParameters["Product"].split(",")
            foreach ($product in $products) {
                if (Get-Content "$($toolsDir)\lists\officeList.txt" | Select-String $product) {
                    Write-Host "Installation Product $($product)"                 
                }
                else {
                    if ($products.Count -gt 1 ) {
                        Write-Warning "$($product) not found"
                        $products = $products -ne $product
                    }
                    else {
                        Write-Warning "$($product) not found we installed HomeBusinessRetail"
                        $products = "HomeBusinessRetail"
                    }              
                }
            }
        }
    
        if ($PackageParameters["Exclude"]) {        
            $excludes = $PackageParameters["Exclude"].split(",")
            foreach ($exclude in $excludes) {
                if (Get-Content "$($toolsDir)\lists\excludeList.txt" | Select-String $exclude) {
                    Write-Host "Excluded $($exclude)"                 
                }
                else {
                    if ($excludes.Count -gt 1 ) {
                        Write-Warning "$($exclude) not found"
                        $excludes = $excludes -ne $exclude
                    }            
                }
            }
        }
    }
    else {
        Write-Debug "No Package Parameters Passed in"
        Write-Host "Installing 32-bit version."
        Write-Host "Installing language variant $languages."
        Write-Host "Installation Product $product"
    }
    
    Import-Module -Name "$($toolsDir)\helpers.ps1"
    
    $packageArgs = @{
        packageName    = 'Office-Deployment-Tool'
        fileType       = 'EXE'
        url            = $urlPackage
        checksum       = $checksumPackage
        checksumType   = $checksumTypePackage
        silentArgs     = "/extract:$($binDir) /log:$($logDir)\Office-Deployment-Tool.log /quiet /norestart"
        validExitCodes = @(
            0, # success
            3010, # success, restart required
            2147781575, # pending restart required
            2147205120  # pending restart required for setup update
        )
    }
    
    Install-ChocolateyPackage @packageArgs
    
    $installConfigData = @"
    <Configuration>
        <Add OfficeClientEdition="$arch" Channel="$channel">
        $(
            foreach($product in $products) {
    "           <Product ID=""$($product)"">"
            foreach($language in $languages) {
    "`r`n           <Language ID=""$($language)"" />"
    
            }
            foreach($exclude in $excludes) {
    "`r`n           <ExcludeApp ID=""$($exclude)"" />"
    
            }
    "`r`n       </Product>"
            }
        )
        </Add>  
        <Updates Enabled="$updates" Channel="$channel"/>
        <Display Level="None" AcceptEULA="TRUE" />  
        <Logging Level="Standard" Path="$logDir" /> 
        <Property Name="SharedComputerLicensing" Value="$sharedMachine" />  
    </Configuration>
    "@
     
    $uninstallConfigData = @"
    <Configuration>
        <Remove>
        $(
            foreach($product in $products) {
    "           <Product ID=""$($product)"">"
    "`r`n       </Product>"
            }
        )
        </Remove>
        <Display Level="None" AcceptEULA="TRUE" />  
        <Logging Level="Standard" Path="$logDir" /> 
        <Property Name="FORCEAPPSHUTDOWN" Value="True" />
    </Configuration>
    "@
    
    $installConfigData | Out-File "$($binDir)\Install.xml"
    $uninstallConfigData | Out-File "$($binDir)\Uninstall.xml"
     
    $packageArgs = @{
        packageName    = $env:ChocolateyPackageName
        fileType       = 'EXE'
        file           = "$($binDir)\setup.exe"
        checksum       = '53CA42D6EEDB08AD3EFF2EB51E720673C3842C24D36B334FCA7358CE6AC19007'
        checksumType   = 'sha256'
        silentArgs     = "/configure $($binDir)\Install.xml"
        validExitCodes = @(
            0, # success
            3010, # success, restart required
            2147781575, # pending restart required
            2147205120  # pending restart required for setup update
        )
    }
    
    Install-ChocolateyInstallPackage @packageArgs
    
  • tools\chocolateyuninstall.ps1 Show
    # microsoft-office-deployment uninstall
    
    $ErrorActionPreference = 'Stop';
    
    $packageArgs = @{
        packageName    = $env:ChocolateyPackageName
        softwareName   = ''
        fileType       = ''
        silentArgs     = ''
        validExitCodes = @(0, 3010, 1605, 1614, 1641)
    }
    
    if ($key.Count -eq 1) {
        $key | ForEach-Object {
            $packageArgs['file'] = "$($_.UninstallString)"
            if ($packageArgs['fileType'] -eq 'MSI') {
              $packageArgs['silentArgs'] = "$($_.PSChildName) $($packageArgs['silentArgs'])"
              $packageArgs['file'] = ''
            }
            Uninstall-ChocolateyPackage @packageArgs
        }
    } elseif ($key.Count -eq 0) {
        Write-Warning "$packageName has already been uninstalled by other means."
    } elseif ($key.Count -gt 1) {
        Write-Warning "$($key.Count) matches found!"
        Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
        Write-Warning "Please alert package maintainer the following keys were matched:"
        $key | ForEach-Object {Write-Warning "- $($_.DisplayName)"}
    }
    
    # Custome Settings from Package
    ## Remove files and folders
    if (Get-Item -Path "<Path>" -ErrorAction SilentlyContinue) {
        Remove-Item `
            -Path "<Path>" `
            -Recurse
        Write-Output `
            -InputObject "Remove Shortcut <Path>"
    }
    
  • tools\helpers.ps1 Show
    function Test-RegistryValue {
    
        param (
            [parameter(Mandatory=$true)][ValidateNotNullOrEmpty()]$Path,
            [parameter(Mandatory=$true)][ValidateNotNullOrEmpty()]$Value
        )
    
        try {
            Get-ItemProperty -Path $Path | Select-Object -ExpandProperty $Value -ErrorAction Stop | Out-Null
            return $true
        } catch {
            return $false
        }
    
    }
  • tools\lists\excludeList.txt Show
    Publisher
    PowerPoint
    OneDrive
    Outlook
    OneNote
    Lync
    Groove
    Excel
    Access
    Word
  • tools\lists\languagesList.txt Show
    MatchOS
    ar-sa
    bg-bg
    zh-cn
    zh-tw
    hr-hr
    cs-cz
    da-dk
    nl-nl
    en-us
    et-ee
    fi-fi
    fr-fr
    de-de
    el-gr
    he-il
    hi-in
    hu-hu
    id-id
    it-it
    ja-jp
    kk-kz
    ko-kr
    lv-lv
    lt-lt
    ms-my
    nb-no
    pl-pl
    pt-br
    pt-pt
    ro-ro
    ru-ru
    sr-latn-cs
    sk-sk
    sl-si
    es-es
    sv-se
    th-th
    tr-tr
    uk-ua
    vi-vn
  • tools\lists\officeList.txt Show
    HomeStudentRetail
    PersonalRetail
    HomeBusinessRetail
    ProfessionalRetail
    ProPlusRetail
    O365HomePremRetail
    O365SmallBusPremRetail
    O365BusinessRetail
    O365ProPlusRetail
    AccessRetail
    ExcelRetail
    InfoPathRetail
    OneNoteRetail
    OutlookRetail
    PowerPointRetail
    PublisherRetail
    WordRetail
    SPDRetail
    ProjectStdRetail
    ProjectProRetail
    ProjectStdXVolume
    ProjectProXVolume
    VisioStdRetail
    VisioProRetail
    VisioStdXVolume
    VisioProXVolume
    LyncEntryRetail
    LyncRetail
    SkypeforBusinessEntryRetail
    SkypeforBusinessRetail

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Microsoft

Copyright

2016 Microsoft

Tags

Version History

Version Downloads Last updated Status
Microsoft Office Deployment 16.0.11023.33600 159 Sunday, October 28, 2018 approved
Microsoft Office Deployment 16.0.10810.33603 132 Thursday, August 30, 2018 approved

Discussion for the Microsoft Office Deployment Package

Ground rules:

  • This discussion is only about Microsoft Office Deployment and the Microsoft Office Deployment package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Microsoft Office Deployment, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok