Skip to content

Commit dbe8ecf

Browse files
author
Russell Mora
authored
Merge branch 'master' into (GH-533)UpgradeViaPackagesConfig
2 parents 3046bc8 + 617d74a commit dbe8ecf

File tree

393 files changed

+7590
-3236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

393 files changed

+7590
-3236
lines changed

.build.custom/ilmergeDLL.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<include name="${dirs.merge.from}${path.separator}Rhino.Licensing.dll" />
5353
<include name="${dirs.merge.from}${path.separator}System.Reactive*.dll" />
5454
<include name="${dirs.merge.from}${path.separator}SimpleInjector.dll" />
55+
<include name="${dirs.merge.from}${path.separator}AlphaFS.dll" />
5556
<!-- <exclude name="${dirs.merge.from}${path.separator}*" /> -->
5657
</items>
5758
</in>

.build/compile.step

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<property name="solution.path" value="${path::get-full-path(solution.path)}" />
2222
<property name="solution.path.windows.mono" value="${string::replace(dirs.current,'\','/')}/${string::replace(path_to_solution,'\','/')}/${project.name}.sln" />
2323
<property name="solution.path" value="${dirs.current}${path.separator}${path_to_solution}${path.separator}${project.name}.vbp" if="${microsoft.framework =='vb6'}" />
24-
<property name="nant.settings.currentframework" value="mono-4.0" if="${platform::is-unix()}" />
25-
<property name="nant.settings.currentframework" value="net-3.5" if="${microsoft.framework !='vb6' and platform::is-windows()}" />
24+
<property name="nant.settings.currentframework" value="mono-4.0" if="${platform::is-unix()}" overwrite="true" />
25+
<property name="nant.settings.currentframework" value="net-3.5" if="${microsoft.framework !='vb6' and platform::is-windows()}" overwrite="false" />
2626
<property name="framework.multitargeting" value="false" />
2727
<property name="framework.multitargeting.delimiter" value="," />
2828
<target name="go" depends="load_uppercut_assemblies, run_tasks" />

.uppercut

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<!-- Required Items -->
88
<property name="project.name" value="chocolatey" overwrite="false" />
99
<property name="repository.path" value="https://github.com/chocolatey/choco" overwrite="false" />
10-
<property name="company.name" value="RealDimensions Software, LLC" overwrite="false" />
10+
<property name="company.name" value="Chocolatey Software, Inc." overwrite="false" />
1111

1212
<!-- Folder Overrides -->
1313
<property name="folder.build_scripts" value=".build" overwrite="false" />
@@ -17,15 +17,17 @@
1717
<property name="version.use_semanticversioning" value="true" overwrite="false" />
1818
<property name="version.major" value="0" overwrite="false" />
1919
<property name="version.minor" value="10" overwrite="false" />
20-
<property name="version.patch" value="3" overwrite="false" />
20+
<property name="version.patch" value="5" overwrite="false" />
2121
<property name="version.fix" value="0" overwrite="false" />
2222
<property name="version.nuget.prerelease" value="" overwrite="false" />
2323
<property name="version.use.build_date" value="false" overwrite="false" />
2424
<property name="assembly.description" value="${project.name} is a product of ${company.name} - All Rights Reserved." overwrite="false" />
25-
<property name="assembly.copyright" value="Copyright © 2011 - Present, ${company.name} - All Rights Reserved." overwrite="false" />
25+
<property name="assembly.copyright" value="Copyright © 2017 ${company.name}. Copyright © 2011 - 2017, RealDimensions Software, LLC - All Rights Reserved." overwrite="false" />
2626
<property name="sign.project_with_key" value="true" overwrite="false" />
2727

2828
<!-- Build Features Overrides -->
29+
<property name="microsoft.framework" value="net-4.0" overwrite="false" if="${platform::is-windows()}" />
30+
<property name="nant.settings.currentframework" value="net-4.0" overwrite="false" if="${platform::is-windows()}" />
2931
<property name="test.framework" value="nunit" overwrite="false" />
3032
<property name="cover.framework" value="opencover" overwrite="false" />
3133

CHANGELOG.md

Lines changed: 172 additions & 48 deletions
Large diffs are not rendered by default.

CHANGELOG_LICENSED.md

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,167 @@ This covers changes for the "chocolatey.extension" package, where the licensed e
44

55
**NOTE**: If you have a licensed edition of Chocolatey, refer to this in tandem with [Chocolatey Open source CHANGELOG](https://github.com/chocolatey/choco/blob/master/CHANGELOG.md).
66

7+
## 1.9.7 (March 20, 2017)
8+
9+
### BUG FIXES
10+
11+
* Fix - Support automatic decompression on downloads - see [#1056](https://github.com/chocolatey/choco/issues/1056)
12+
* Fix - Package Builder - Restrict Get-UninstallRegistryKey params in chocolateyUninstall.ps1
13+
* Fix - Package Internalizer - exit non-zero when variable replacement fails
14+
15+
### IMPROVEMENTS
16+
17+
* Ensure PowerShell scripts use CRLF so authenticode verification doesn't fail
18+
* Install Directory should see `INSTALLFOLDER` MSI Property
19+
* Virus Scanner - provide context for other answers (No/Skip)
20+
* Allow both 32bit and 64bit file parameters with Install-ChocolateyInstallPackage - see [#1187](https://github.com/chocolatey/choco/issues/1187)
21+
22+
23+
## 1.9.6 (March 3, 2017)
24+
25+
### BUG FIXES
26+
27+
* Fix - Ensure silent args in logs are escaped
28+
* Fix - Package Internalizer - use console adapter for downloading
29+
30+
### IMPROVEMENTS
31+
32+
* Ensure proxy values are used with Chocolatey v0.10.4+ - see [#1141](https://github.com/chocolatey/choco/issues/1141) and [#1165](https://github.com/chocolatey/choco/issues/1165)
33+
* Install - do not create a `.ignore` file outside Chocolatey directories - same as [#1180](https://github.com/chocolatey/choco/issues/1180)
34+
* Package Synchronizer (Choco Sync):
35+
* Use local directory for outputting created packages by default.
36+
* Specify output directory for created packages.
37+
38+
39+
## 1.9.5 (January 31, 2017)
40+
41+
### BUG FIXES
42+
43+
* Fix - Error when running Install-ChocolateyInstallPackage without specifying silent arguments
44+
* Remove *.istext file before the content-type check that creates file - see [#1012](https://github.com/chocolatey/choco/issues/1012)
45+
46+
### IMPROVEMENTS
47+
48+
* Package Builder (Choco New):
49+
* Right click - create a package without bringing up the GUI.
50+
* Package Internalizer (Choco Download)
51+
* Don't delete the download directory unless `--force`
52+
* Set user modes for terminal services (`change user /install` | `change user /execute`)
53+
54+
55+
## 1.9.4 (January 19, 2017)
56+
57+
### BUG FIXES
58+
59+
* Fix - enabling preview features has no effect.
60+
61+
62+
## 1.9.3 (January 17, 2017)
63+
64+
### BUG FIXES
65+
66+
* Fix - trial users unable to use Business version of Package Builder UI.
67+
68+
69+
## 1.9.2 (January 17, 2017)
70+
71+
### BUG FIXES
72+
73+
* Fix - virus scanner not working properly
74+
75+
76+
## 1.9.1 (January 16, 2017)
77+
78+
### BUG FIXES
79+
80+
* Fix - Ensure Pro users can call Package Builder from the command line ("packagebuilder") after install
81+
* Fix - Correct title of package to "Chocolatey Licensed Edition"
82+
83+
84+
## 1.9.0 (January 15, 2017)
85+
86+
This release brings the coveted PackageBuilder UI to the Pro+ license (minus auto detection) and adds a tabbed interface that allows you to fill out the entire nuspec. Package Synchronizer now has `choco sync` to compliment the automatic synchronization. The sync command brings all unmanaged software in Programs and Features under Chocolatey management.
87+
88+
### FEATURES
89+
90+
* Package Synchronizer v2 - `choco sync` to associate existing packages with unmanaged software - see https://chocolatey.org/docs/features-synchronize#sync-command
91+
* Package Builder UI:
92+
* Starts at Professional edition (minus autodetection)
93+
* Tabbed interface
94+
* Tab for entire Nuspec
95+
* [Business] Tab to generate from Programs and Features
96+
97+
### BUG FIXES
98+
99+
* Self-Service / Background Mode:
100+
* Fix - Add a line after progress is complete
101+
* Fix - Automatic creation of ignore file in Install-ChocolateyInstallPackage throws errors when it fails - see [#380](https://github.com/chocolatey/chocolatey/issues/380) for original issue.
102+
* Package Builder (Choco New):
103+
* Fix - remove "version/ver" if next to version number in DisplayName
104+
* Fix - todo / logging need to escape curly braces to properly format
105+
* Fix - continue on error
106+
107+
### IMPROVEMENTS
108+
109+
* User can turn on Preview Features - `choco feature enable -n allowPreviewFeatures`
110+
* InstallDirectory switch added to Install-ChocolateyInstallPackage
111+
* Package Internalizer (Choco Download)
112+
* option to ignore dependencies `--ignore-dependencies`
113+
* Package Builder (Choco New)
114+
* Generates package arguments with install directory override
115+
* Add optional scripts - beforeModify/uninstall
116+
* Add other template files
117+
* Remove any version number from package id
118+
* allow for quiet logging
119+
* auto detection fills out more fields for MSIs
120+
* Self-Service / Background Mode Enhancements
121+
* Do not warn if command is `choco feature`
122+
* Provide user context when background service not available
123+
124+
125+
## 1.8.4 (January 5, 2017)
126+
127+
### FEATURES
128+
129+
* Support Self-Service Install / Background Mode - see https://chocolatey.org/docs/features-agent-service
130+
* Manage Windows Services
131+
132+
We've introduced some service management functions to the business edition. `Install-ChocolateyWindowsService`, `Uninstall-ChocolateyWindowsService`, `Start-ChocolateyWindowsService`, and `Stop-ChocolateyWindowsService`. Those will be documented soon enough. For now some example code should suffice.
133+
134+
~~~powershell
135+
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
136+
$serviceExe = Join-Path $toolsDir 'service\chocolatey-agent.exe'
137+
138+
$packageArgs = @{
139+
Name = 'chocolatey-agent'
140+
DisplayName = 'Chocolatey Agent'
141+
Description = 'Chocolatey Agent is a backgound service for Chocolatey.'
142+
StartupType = 'Automatic'
143+
ServiceExecutablePath = $serviceExe
144+
}
145+
146+
#Username, Password, -DoNotStartService are also considered
147+
148+
Install-ChocolateyWindowsService @packageArgs
149+
150+
# The other three methods simply take the service name.
151+
Start-ChocolateyWindowsService -Name 'chocolatey-agent'
152+
Stop-ChocolateyWindowsService -Name 'chocolatey-agent'
153+
Uninstall-ChocolateyWindowsService -Name 'chocolatey-agent'
154+
~~~
155+
156+
### BUG FIXES
157+
158+
* Package Synchronizer - Do not run automatic sync when non-elevated. It fails in weird ways
159+
* Package Builder (Choco New):
160+
* Fix - fix "(Install)" - append space in nuspec Title.
161+
162+
### IMPROVEMENTS
163+
164+
* Downloading remote files - don't show bytes, only formatted values
165+
* Authenticode sign licensed binaries
166+
167+
7168
## 1.8.3 (December 21, 2016)
8169

9170
### FEATURES

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ You can just call me choco.
33

44
![Chocolatey Logo](https://cdn.rawgit.com/chocolatey/choco/14a627932c78c8baaba6bef5f749ebfa1957d28d/docs/logo/chocolateyicon.gif "Chocolatey")
55

6-
[![](http://img.shields.io/chocolatey/dt/chocolatey.svg)](https://chocolatey.org/packages/chocolatey) [![](http://img.shields.io/chocolatey/v/chocolatey.svg)](https://chocolatey.org/packages/chocolatey) [![](http://img.shields.io/gittip/Chocolatey.svg)](https://www.gittip.com/Chocolatey/)
6+
[![](https://img.shields.io/chocolatey/dt/chocolatey.svg)](https://chocolatey.org/packages/chocolatey) [![](https://img.shields.io/chocolatey/v/chocolatey.svg)](https://chocolatey.org/packages/chocolatey) [![](https://img.shields.io/gittip/Chocolatey.svg)](https://www.gittip.com/Chocolatey/)
77

88
[![Issue Stats](http://issuestats.com/github/Chocolatey/choco/badge/pr)](http://issuestats.com/github/Chocolatey/choco)
99

@@ -13,7 +13,7 @@ You can just call me choco.
1313

1414
TeamCity | AppVeyor | Travis
1515
------------- | ------------- | -------------
16-
[![TeamCity Build Status](http://img.shields.io/teamcity/codebetter/bt429.svg)](http://teamcity.codebetter.com/viewType.html?buildTypeId=bt429) | [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/jfxywa3xuwowt20w/branch/master?svg=true)](https://ci.appveyor.com/project/ferventcoder/choco/branch/master) | [![Travis Build Status](https://travis-ci.org/chocolatey/choco.svg?branch=master)](https://travis-ci.org/chocolatey/choco)
16+
[![TeamCity Build Status](https://img.shields.io/teamcity/codebetter/bt429.svg)](http://teamcity.codebetter.com/viewType.html?buildTypeId=bt429) | [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/jfxywa3xuwowt20w/branch/master?svg=true)](https://ci.appveyor.com/project/ferventcoder/choco/branch/master) | [![Travis Build Status](https://travis-ci.org/chocolatey/choco.svg?branch=master)](https://travis-ci.org/chocolatey/choco)
1717

1818
## Chat Room
1919

@@ -48,9 +48,9 @@ When requesting support, try to remember that we are all volunteers that have li
4848

4949
* [Chocolatey site](https://chocolatey.org)
5050
* [Community Package Repository aka Chocolatey.org](https://chocolatey.org/packages)
51-
* [Mailing List/Forum](http://groups.google.com/group/chocolatey)
51+
* [Mailing List/Forum](https://groups.google.com/group/chocolatey)
5252
* [Twitter](https://twitter.com/chocolateynuget)
53-
* [Build Status Email List](http://groups.google.com/group/chocolatey-build-status)
53+
* [Build Status Email List](https://groups.google.com/group/chocolatey-build-status)
5454
* Join the [newsletter](https://chocolatey.us8.list-manage1.com/subscribe?u=86a6d80146a0da7f2223712e4&id=73b018498d) and stay up to date with the latest happenings!
5555

5656
### Documentation
@@ -82,7 +82,7 @@ Prerequisites:
8282
* The issue has to do with choco itself and is not a package or website issue.
8383
* Please check to see if your issue already exists with a quick search of the issues. Start with one relevant term and then add if you get too many results.
8484
* You are not submitting an "Enhancement". Enhancements should observe [CONTRIBUTING](https://github.com/chocolatey/choco/blob/master/CONTRIBUTING.md) guidelines.
85-
* You are not submitting a question - questions are better served as [emails](http://groups.google.com/group/chocolatey) or [gitter chat questions](https://gitter.im/chocolatey/choco).
85+
* You are not submitting a question - questions are better served as [emails](https://groups.google.com/group/chocolatey) or [gitter chat questions](https://gitter.im/chocolatey/choco).
8686
* Please make sure you've read over and agree with the [etiquette regarding communication](#etiquette-regarding-communication).
8787

8888
Submitting a ticket:

Scenarios.md

Lines changed: 94 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,15 +462,17 @@
462462
* should contain tags
463463
* should not contain packages and versions with a pipe between them
464464

465-
### ChocolateyPackCommand [ 2 Scenario(s), 2 Observation(s) ]
465+
### ChocolateyPackCommand [ 2 Scenario(s), 4 Observation(s) ]
466466

467467
#### when packing with an output directory
468468

469469
* generated package should be in specified output directory
470+
* sources should be set to specified output directory
470471

471472
#### when packing without specifying an output directory
472473

473474
* generated package should be in current directory
475+
* sources should be set to current directory
474476

475477
### ChocolateyPinCommand [ 9 Scenario(s), 12 Observation(s) ]
476478

@@ -647,7 +649,7 @@
647649

648650
* should throw an error that it is not allowed
649651

650-
### ChocolateyUpgradeCommand [ 29 Scenario(s), 236 Observation(s) ]
652+
### ChocolateyUpgradeCommand [ 36 Scenario(s), 305 Observation(s) ]
651653

652654
#### when force upgrading a package
653655

@@ -938,6 +940,20 @@
938940
* should report for all non skipped packages
939941
* should skip packages in except list
940942

943+
#### when upgrading all packages with prereleases installed
944+
945+
* should report for all installed packages
946+
* should skip packages without upgrades
947+
* should upgrade packages with upgrades
948+
* should upgrade upgradepackage
949+
950+
#### when upgrading all packages with prereleases installed with excludeprerelease specified
951+
952+
* should not upgrade upgradepackage
953+
* should report for all installed packages
954+
* should skip packages without upgrades
955+
* should upgrade packages with upgrades
956+
941957
#### when upgrading an existing package happy path
942958

943959
* config should match package result name
@@ -958,6 +974,82 @@
958974
* should upgrade the package
959975
* should upgrade where install location reports
960976

977+
#### when upgrading an existing package with prerelease available and prerelease specified
978+
979+
* config should match package result name
980+
* should contain a warning message that it upgraded successfully
981+
* should contain a warning message with old and new versions
982+
* should contain newer version in directory
983+
* should delete the rollback
984+
* should have a successful package result
985+
* should have executed chocolateyBeforeModify before chocolateyInstall
986+
* should have executed chocolateyBeforeModify script for original package
987+
* should have executed chocolateyInstall script for new package
988+
* should match the upgrade version of the new beta
989+
* should not have executed chocolateyBeforeModify script for new package
990+
* should not have executed chocolateyUninstall script for original package
991+
* should not have inconclusive package result
992+
* should not have warning package result
993+
* should upgrade a package in the lib directory
994+
* should upgrade the package
995+
* should upgrade where install location reports
996+
997+
#### when upgrading an existing package with prerelease available without prerelease specified
998+
999+
* should be the same version of the package
1000+
* should contain a message that no packages were upgraded
1001+
* should contain a message that you have the latest version available
1002+
* should have a successful package result
1003+
* should have inconclusive package result
1004+
* should match the original package version
1005+
* should not create a rollback
1006+
* should not have warning package result
1007+
* should not remove the package from the lib directory
1008+
1009+
#### when upgrading an existing prerelease package with allow downgrade with excludeprelease and without prerelease specified
1010+
1011+
* should be the same version of the package
1012+
* should contain a message that no packages were upgraded
1013+
* should contain a message that you have the latest version available
1014+
* should have a successful package result
1015+
* should have inconclusive package result
1016+
* should not create a rollback
1017+
* should not have warning package result
1018+
* should not remove the package from the lib directory
1019+
* should only find the last stable version
1020+
1021+
#### when upgrading an existing prerelease package with prerelease available with excludeprelease and without prerelease specified
1022+
1023+
* should be the same version of the package
1024+
* should contain a message that no packages were upgraded
1025+
* should contain a message that you have the latest version available
1026+
* should have a successful package result
1027+
* should have inconclusive package result
1028+
* should not create a rollback
1029+
* should not have warning package result
1030+
* should not remove the package from the lib directory
1031+
* should only find the last stable version
1032+
1033+
#### when upgrading an existing prerelease package without prerelease specified
1034+
1035+
* config should match package result name
1036+
* should contain a warning message that it upgraded successfully
1037+
* should contain a warning message with old and new versions
1038+
* should contain newer version in directory
1039+
* should delete the rollback
1040+
* should have a successful package result
1041+
* should have executed chocolateyBeforeModify before chocolateyInstall
1042+
* should have executed chocolateyBeforeModify script for original package
1043+
* should have executed chocolateyInstall script for new package
1044+
* should match the upgrade version of the new beta
1045+
* should not have executed chocolateyBeforeModify script for new package
1046+
* should not have executed chocolateyUninstall script for original package
1047+
* should not have inconclusive package result
1048+
* should not have warning package result
1049+
* should upgrade a package in the lib directory
1050+
* should upgrade the package
1051+
* should upgrade where install location reports
1052+
9611053
#### when upgrading packages with packages config
9621054

9631055
* should contain a message that upgradepackage with an expected specified version was not installed

0 commit comments

Comments
 (0)