How to install Openhab 2.3.0 with Chocolatey on Windows 10?

When I try to install OpenHAB with Chocolatey on Windows according the steps on https://www.openhab.org/download/ it installs the OpenHAB Version 2.2.0

How can I install the Version 2.3.0 or upgrade to it?

If I run: choco install openhab
I get the following message:

Chocolatey v0.10.11
Installing the following packages:
openhab
By installing you accept licenses for the packages.
openhab v2.2.0 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.

Chocolatey installed 0/1 packages.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Warnings:
 - openhab - openhab v2.2.0 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.

When I run: choco upgrade openhab

I get the following message:

Chocolatey v0.10.11
Upgrading the following packages:
openhab
By upgrading you accept licenses for the packages.
openhab v2.2.0 is the latest version available based on your source(s).

Chocolatey upgraded 0/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Enjoy using Chocolatey? Explore more amazing features to take your
experience to the next level at
https://chocolatey.org/compare

Content of: C:\ProgramData\chocolatey\logs\chocolatey.log

2018-06-08 17:33:43,912 8732 [DEBUG] - XmlConfiguration is now operational
2018-06-08 17:33:43,959 8732 [INFO ] - ============================================================
2018-06-08 17:33:44,115 8732 [INFO ] - Chocolatey v0.10.11
2018-06-08 17:33:44,115 8732 [DEBUG] - Chocolatey is running on Windows v 10.0.17134.0
2018-06-08 17:33:44,115 8732 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2018-06-08 17:33:44,115 8732 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2018-06-08 17:33:44,131 8732 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install openhab
2018-06-08 17:33:44,131 8732 [DEBUG] - Received arguments: install openhab
2018-06-08 17:33:44,189 8732 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2018-06-08 17:33:44,195 8732 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2018-06-08 17:33:44,196 8732 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2018-06-08 17:33:44,633 8732 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2018-06-08 17:33:44,633 8732 [DEBUG] - 
NOTE: Hiding sensitive configuration data! Please double and triple 
 check to be sure no sensitive data is shown, especially if copying 
 output to a gist for review.
2018-06-08 17:33:44,649 8732 [DEBUG] - Configuration: CommandName='install'|
CacheLocation='C:\Users\AD\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='False'|Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='openhab'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='openhab'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.17134.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='0.10.11.0'|
Information.ChocolateyProductVersion='0.10.11'|
Information.FullName='choco, Version=0.10.11.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='AD'|Information.UserDomainName='KENNY'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
PinCommand.Command='unknown'|OutdatedCommand.IgnorePinned='False'|
Proxy.BypassOnLocal='True'|
2018-06-08 17:33:44,649 8732 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
2018-06-08 17:33:44,649 8732 [INFO ] - Installing the following packages:
2018-06-08 17:33:44,649 8732 [INFO ] - openhab
2018-06-08 17:33:44,649 8732 [INFO ] - By installing you accept licenses for the packages.
2018-06-08 17:33:44,791 8732 [WARN ] - openhab v2.2.0 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.
2018-06-08 17:33:44,807 8732 [WARN ] - 
Chocolatey installed 0/1 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2018-06-08 17:33:44,807 8732 [INFO ] - 
2018-06-08 17:33:44,807 8732 [WARN ] - Warnings:
2018-06-08 17:33:44,807 8732 [WARN ] -  - openhab - openhab v2.2.0 already installed.
 Use --force to reinstall, specify a version to install, or try upgrade.
2018-06-08 17:33:44,807 8732 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2018-06-08 17:33:44,807 8732 [DEBUG] - Exiting with 0
2018-06-08 17:34:51,288 11168 [DEBUG] - XmlConfiguration is now operational
2018-06-08 17:34:51,320 11168 [INFO ] - ============================================================
2018-06-08 17:34:51,493 11168 [INFO ] - Chocolatey v0.10.11
2018-06-08 17:34:51,493 11168 [DEBUG] - Chocolatey is running on Windows v 10.0.17134.0
2018-06-08 17:34:51,493 11168 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2018-06-08 17:34:51,493 11168 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2018-06-08 17:34:51,509 11168 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" upgrade openhab
2018-06-08 17:34:51,509 11168 [DEBUG] - Received arguments: upgrade openhab
2018-06-08 17:34:51,556 11168 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2018-06-08 17:34:51,556 11168 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2018-06-08 17:34:51,571 11168 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2018-06-08 17:34:52,020 11168 [DEBUG] - The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type
2018-06-08 17:34:52,022 11168 [DEBUG] - 
NOTE: Hiding sensitive configuration data! Please double and triple 
 check to be sure no sensitive data is shown, especially if copying 
 output to a gist for review.
2018-06-08 17:34:52,026 11168 [DEBUG] - Configuration: CommandName='upgrade'|
CacheLocation='C:\Users\AD\AppData\Local\Temp\chocolatey'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
Sources='https://chocolatey.org/api/v2/'|SourceType='normal'|
Debug='False'|Verbose='False'|Trace='False'|Force='False'|Noop='False'|
HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='True'|AcceptLicense='False'|
AllowUnofficialBuild='False'|Input='openhab'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='openhab'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.17134.0'|
Information.PlatformName='Windows 10'|
Information.ChocolateyVersion='0.10.11.0'|
Information.ChocolateyProductVersion='0.10.11'|
Information.FullName='choco, Version=0.10.11.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|

Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='AD'|Information.UserDomainName='KENNY'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='True'|
Information.IsProcessElevated='True'|
Information.IsLicensedVersion='False'|Information.LicenseType='Foss'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='True'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ScriptsCheckLastExitCode='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='unknown'|
PinCommand.Command='unknown'|OutdatedCommand.IgnorePinned='False'|
Proxy.BypassOnLocal='True'|
2018-06-08 17:34:52,026 11168 [DEBUG] - _ Chocolatey:ChocolateyUpgradeCommand - Normal Run Mode _
2018-06-08 17:34:52,026 11168 [INFO ] - Upgrading the following packages:
2018-06-08 17:34:52,026 11168 [INFO ] - openhab
2018-06-08 17:34:52,026 11168 [INFO ] - By upgrading you accept licenses for the packages.
2018-06-08 17:34:52,638 11168 [INFO ] - openhab v2.2.0 is the latest version available based on your source(s).
2018-06-08 17:34:52,653 11168 [WARN ] - 
Chocolatey upgraded 0/1 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2018-06-08 17:34:52,653 11168 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2018-06-08 17:34:52,653 11168 [DEBUG] - Exiting with 0

Thank you for helping!

I didn’t know OH was available on Chocolatey. Whoever maintains the Chocolatey package for OH needs to submit the updated version of OH to them.

I have no idea how this process works and as far as I can tell this is not maintained in any of the official OH repos.

@bcurran3, it looks like you are listed as the package maintainer on Chocolatey (thank you for using the same name in both places). Is updating to 2.3 in progress? Need help? If you want help, how can we help?

Right, I opened https://github.com/openhab/openhab-docs/issues/447 a while ago because I agree it’s a great way of having Chocolatey installed easily on Windows, that’s why I added it as an installation option on the website. For 2.2 the package was available just a few days after the official release, not this time but I hope it will be updated soon :wink:

Maybe it’s best to ping @bcurran3 on GitHub.

I just need to be notified of new releases. :slight_smile:

2.3 has been pushed to Chocolatey.
https://chocolatey.org/packages/openhab/2.3.0

1 Like

That was quick :wink:

FTR, unless I’m mistaken the command to install 2.3.0 until the package is approved is
choco install openhab --version=2.3.0
Will give it a try tomorrow.

1 Like

Updating a package only takes a few minutes. Easy peasy.

I had the wrong checksum on the KAR file. 2.3.0 and just fixed it. Will most likely be live in an hour or two.

Thank you!
The installation works like a charm! :grinning:

1 Like

Hello all,

I did a fresh Chocolatey install on Windows 10 from CMD, and when I run OH2 about 80% of the bindings are installed on the first run. It will take ages to uninstall them.

All of the ‘Actions’ are installed as well as all of the ‘Transformation’ but none of the ‘Persistence’

Any idea how that’s happened?

I’ve done dozens of install in my Raspberry Pi and never seen such behaviour.

Update: I’ve left OH2 running for about 2 hours, and now just about everything has been installed: bindings (all of them), transformations, actions, persistence etc…

What package did you choose when first going to the OH dashboard?

Hi Rich,

It was the standard package

Not sure why it would install everything then. The transforms should have all been installed but not every single binding.

Hello everyone,
Just an FYI

I was going to move openHab from a Raspberry PI to a Windows 7 machine but I am expiring the exact same thing as UglyKidJoe with the Chocolatey install. Also, no front tail option is available from the :8080/start/index

I will hold off till things get sorted out.
Thanks…

From the standard install option:
**

**

I think that there is an issue with the Choco installation method.
Try to deploy OH2 manually on Windows and it will work.
Also: front tail is a Linux specific tool, so it won’t appear on a Win deployment of OH2 (if I am not completely wrong :slight_smile:)

This is still the case with the WIndows installation. Somehow OpenHab always makes it especially for new users it seams (I am not a new user, just wanted to start from scratch on a new pc.) I even causes execution errors because of incompatible bindings are installed by default.

don’t use Choco until the packaged installation is fixed (currently ALL addons are being deployed)

use the manual way on Windows

1 Like

That indeed solves the problem. But this is a really bad experience for possible new users. I personally can nat really recommend OpenHab to friends because of issues like this.

You can now recommend again OH2 to your friends :slight_smile:

Unsure about installation procedures for Windows - #43 by Dim

Thanks! The chocolatey install method is actually a very good step in first user experience for new people. Makes it’s easier to experience the system with their Windows machine to try things out.

On top of the choco installation method, there is also a Windows Installer being prepared

See here: https://github.com/openhab/openhab-distro/issues/807

2 Likes