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

Ubiquiti UniFI Controller

5.10.17

Package test results are passing.

This package was approved as a trusted package on 2/14/2019.

Software for managing and controlling the following Ubiquiti products:

UAP, UAP-AC, UAP-AC-EDU, UAP-AC-HD, UAP-AC-LITE, UAP-AC-LR, UAP-AC-M, UAP-AC-M-PRO, UAP-AC Outdoor, UAP-AC-PRO, UAP-IW, UAP-LR, UAP-Outdoor, UAP-Outdoor+, UAP-Outdoor5, UAP-PRO, US-16-150W, US‑16‑XG, US-24, US-24-250W, US-24-500W, US-48, US-48-500W, US-48-750W, US-8, US-8-150W, US-8-60W, USG, USG-PRO-4
Install script also configures appropriate Windows Firewall rules (for Windows 8/Server 2008 and above)

To install Ubiquiti UniFI Controller, run the following command from the command line or from PowerShell:

C:\> choco install ubiquiti-unifi-controller

To upgrade Ubiquiti UniFI Controller, run the following command from the command line or from PowerShell:

C:\> choco upgrade ubiquiti-unifi-controller

Files

Hide
  • tools\chocolateyinstall.ps1 Show
    $ErrorActionPreference = 'Stop';
    
    $packageName= 'unifi-controller'
    $toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $url        = 'https://www.ubnt.com/downloads/unifi/5.10.17/UniFi-installer.exe'
    $checksum   = '99d9e8b9a8183b62b0ed955139bfaab8ba0bda7ebfbb83a87529b6aecefd5b88'
    
    $packageArgs = @{
      packageName   = $packageName
      unzipLocation = $toolsDir
      fileType      = 'EXE'
      url           = $url
      softwareName  = 'Ubiquiti UniFi*'
      checksum      = $checksum
      checksumType  = 'sha256'
      silentArgs   = '/S'
      validExitCodes= @(0)
    }
    
    # Flag whether we're being invoked by AU module
    [bool] $runningAU = (Test-Path Function:\au_GetLatest)
    
    if (-not $runningAU) {
        Write-Verbose "Respond to 'upgrade confirmation' dialog prompt (only for upgrades)"
        $ahkScript = "$toolsDir\unifi-upgrade.ahk"
    
        $ahkProc = Start-Process -FilePath 'AutoHotkey' -ArgumentList $ahkScript -PassThru
    
        # Win8/2012 supports 'New-NetFirewallRule' - https://technet.microsoft.com/en-us/library/jj554908(v=wps.620).aspx
        $osVersion = [Environment]::OSVersion.Version
    
        if ($osVersion.Major -gt 6 -or ($osVersion.Major -eq 6 -and $osVersion.Minor -ge 2)) {
            # Configure firewall for UniFi - from https://community.ubnt.com/t5/UniFi-Wireless/UniFi-AP-firewall-settings-for-Windows-Server-2012-R2/td-p/1090855
            New-NetFirewallRule -Name UniFi-Mgmt-In -DisplayName "UniFi-Mgmt (TCP-In 8081)" -Description "Allows incoming UniFi management traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8081 -Direction Inbound -ErrorAction SilentlyContinue
            New-NetFirewallRule -Name UniFi-Mgmt-Out -DisplayName "UniFi-Mgmt (TCP-Out 8081)" -Description "Allows outgoing UniFi management traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8081 -Direction Outbound -ErrorAction SilentlyContinue
            New-NetFirewallRule -Name UniFi-DvcInfrm-In -DisplayName "UniFi-DvcInfrm (TCP-In 8080)" -Description "Allows incoming UniFi device inform traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8080 -Direction Inbound -ErrorAction SilentlyContinue
            New-NetFirewallRule -Name UniFi-DvcInfrm-Out -DisplayName "UniFi-DvcInfrm (TCP-Out 8080)" -Description "Allows outgoing UniFi device inform traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8080 -Direction Outbound -ErrorAction SilentlyContinue
            New-NetFirewallRule -Name UniFi-Ctrlr-In -DisplayName "UniFi-Ctrlr (TCP-In 8443)" -Description "Allows incoming UniFi Controller traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8443 -Direction Inbound -ErrorAction SilentlyContinue
            New-NetFirewallRule -Name UniFi-Ctrlr-Out -DisplayName "UniFi-Ctrlr (TCP-Out 8443)" -Description "Allows outgoing UniFi Controller traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8443 -Direction Outbound -ErrorAction SilentlyContinue
            New-NetFirewallRule -Name UniFi-PrtlRdr-In -DisplayName "UniFi-PrtlRdr (TCP-In 8880)" -Description "Allows incoming UniFi portal redirect traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8880 -Direction Inbound -ErrorAction SilentlyContinue
            New-NetFirewallRule -Name UniFi-PrtlRdr-Out -DisplayName "UniFi-PrtlRdr (TCP-Out 8880)" -Description "Allows outgoing UniFi portal redirect traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8880 -Direction Outbound -ErrorAction SilentlyContinue
            New-NetFirewallRule -Name UniFi-PrtlRdrSsl-In -DisplayName "UniFi-PrtlRdrSsl (TCP-In 8843)" -Description "Allows incoming UniFi portal redirect for SSL traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8843 -Direction Inbound -ErrorAction SilentlyContinue
            New-NetFirewallRule -Name UniFi-PrtlRdrSsl-Out -DisplayName "UniFi-PrtlRdrSsl (TCP-Out 8843)" -Description "Allows outgoing UniFi portal redirect for SSL traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 8843 -Direction Outbound -ErrorAction SilentlyContinue
            #New-NetFirewallRule -Name UniFi-DB-In -DisplayName "UniFi-DB (TCP-In 27117)" -Description "Allows incoming UniFi DB traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 27117 -Direction Inbound -ErrorAction SilentlyContinue
            #New-NetFirewallRule -Name UniFi-DB-Out -DisplayName "UniFi-DB (TCP-Out 27117)" -Description "Allows outgoing UniFi DB traffic" -Group UniFi -Enabled True -Protocol TCP -LocalPort 27117 -Direction Outbound -ErrorAction SilentlyContinue
            New-NetFirewallRule -Name UniFi-DvcDisc-In -DisplayName "UniFi-DvcDisc (UDP-In 10001)" -Description "Allows incoming UniFi device discovery traffic" -Group UniFi -Enabled True -Protocol UDP -LocalPort 10001 -Direction Inbound -ErrorAction SilentlyContinue
            New-NetFirewallRule -Name UniFi-DvcDisc-Out -DisplayName "UniFi-DvcDisc (UDP-Out 10001)" -Description "Allows outgoing UniFi device discovery traffic" -Group UniFi -Enabled True -Protocol UDP -LocalPort 10001 -Direction Outbound -ErrorAction SilentlyContinue
        }
    }
    
    Install-ChocolateyPackage @packageArgs
    
    if (-not $runningAU) {
        $ahkProc.Refresh()
    
        if (-not $ahkProc.HasExited) { 
            Write-Verbose "No upgrade prompt, so killing autohotkey process"
            $ahkProc.Kill()
        }
    }
    
  • tools\chocolateyuninstall.ps1 Show
    $ErrorActionPreference = 'Stop';
    
    $packageName = 'unifi-controller'
    $softwareName = 'Ubiquiti UniFi*'
    $installerType = 'EXE' 
    
    $validExitCodes = @(0, 3010, 1605, 1614, 1641)
    if ($installerType -ne 'MSI') {
      $silentArgs = '/S'
      $validExitCodes = @(0)
    }
    
    $uninstalled = $false
    [array]$key = Get-UninstallRegistryKey -SoftwareName $softwareName
    
    if ($key.Count -eq 1) {
      $key | % { 
        $file = "$($_.UninstallString)"
    
        if ($installerType -eq 'MSI') {
          $silentArgs = "$($_.PSChildName) $silentArgs"
    
          $file = ''
        }
    
        Uninstall-ChocolateyPackage -PackageName $packageName `
                                    -FileType $installerType `
                                    -SilentArgs "$silentArgs" `
                                    -ValidExitCodes $validExitCodes `
                                    -File "$file"
      }
    } 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 | % {Write-Warning "- $_.DisplayName"}
    }
    
    Write-Output "Respond to 'keep settings' dialog prompt"
    $toolsPath = Split-Path $MyInvocation.MyCommand.Definition
    $ahkScript = "$toolsPath\unifi-uninstall.ahk"
    AutoHotkey $ahkScript $packageArgs.fileFullPath
    
    # Win8/2012 supports 'Remove-NetFirewallRule' - https://technet.microsoft.com/en-us/library/jj554908(v=wps.620).aspx
    $osVersion = [Environment]::OSVersion.Version
    
    if ($osVersion.Major -gt 6 -or ($osVersion.Major -eq 6 -and $osVersion.Minor -ge 2)) {
        Remove-NetFirewallRule -Name UniFi-Mgmt-In 
        Remove-NetFirewallRule -Name UniFi-Mgmt-Out
        Remove-NetFirewallRule -Name UniFi-DvcInfrm-In
        Remove-NetFirewallRule -Name UniFi-DvcInfrm-Out
        Remove-NetFirewallRule -Name UniFi-Ctrlr-In
        Remove-NetFirewallRule -Name UniFi-Ctrlr-Out
        Remove-NetFirewallRule -Name UniFi-PrtlRdr-In
        Remove-NetFirewallRule -Name UniFi-PrtlRdr-Out
        Remove-NetFirewallRule -Name UniFi-PrtlRdrSsl-In
        Remove-NetFirewallRule -Name UniFi-PrtlRdrSsl-Out
        #Remove-NetFirewallRule -Name UniFi-DB-In
        #Remove-NetFirewallRule -Name UniFi-DB-Out
        Remove-NetFirewallRule -Name UniFi-DvcDisc-In
        Remove-NetFirewallRule -Name UniFi-DvcDisc-Out
    }
  • tools\unifi-uninstall.ahk Show
    WinWait, UniFi Uninstall,,20
    IfNotEqual, ErrorLevel, 0, exit 1
    ControlSend,, !y, UniFi Uninstall
  • tools\unifi-upgrade.ahk Show
    ; Do you want to upgrade your UniFi 5.3.8 to 5.4.9?
    WinWait, UniFi Setup,,90
    IfNotEqual, ErrorLevel, 0, exit 0
    ControlSend,, !y, UniFi Setup
    WinWaitClose
    ; It is recommended that you create a backup before installing a new version. Do you have a backup?
    WinWait, UniFi Setup,,90
    IfNotEqual, ErrorLevel, 0, exit 0
    ControlSend,, !y, UniFi Setup
    WinWaitClose

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

Package Maintainer(s)

Software Author(s)

  • Ubiquiti Networks Inc

Copyright

2017 Ubiquiti Networks, Inc

Tags

Release Notes

https://community.ubnt.com/t5/UniFi-Updates-Blog/UniFi-Network-Controller-5-10-17-Stable-has-been-released/ba-p/2676018

Version History

Version Downloads Last updated Status
Ubiquiti UniFI Controller 5.10.12 213 Saturday, February 9, 2019 approved
Ubiquiti UniFI Controller 5.9.29 790 Wednesday, October 10, 2018 approved
Ubiquiti UniFI Controller 5.8.30 234 Friday, September 14, 2018 approved
Ubiquiti UniFI Controller 5.8.28 233 Saturday, August 18, 2018 approved
Ubiquiti UniFI Controller 5.8.24 361 Sunday, July 8, 2018 approved
Ubiquiti UniFI Controller 5.7.23 279 Wednesday, April 25, 2018 approved
Ubiquiti UniFI Controller 5.7.20 219 Thursday, March 15, 2018 approved
Ubiquiti UniFI Controller 5.6.40 25 Friday, September 14, 2018 approved
Ubiquiti UniFI Controller 5.6.39 56 Sunday, July 8, 2018 approved
Show More

Discussion for the Ubiquiti UniFI Controller Package

Ground rules:

  • This discussion is only about Ubiquiti UniFI Controller and the Ubiquiti UniFI Controller 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 Ubiquiti UniFI Controller, 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