├── .git-blame-ignore-revs ├── .github ├── CODEOWNERS └── workflows │ ├── build.yml │ ├── stale.yml │ ├── test.yml │ └── vote-for-issue.yml ├── .gitignore ├── .notifications ├── discord.txt ├── mastodon.txt ├── slack.txt └── twitter.txt ├── .teamcity └── settings.kts ├── .templates ├── contributors │ ├── contributor-details.sbn │ ├── contributors.sbn │ ├── create │ │ └── footer.sbn │ ├── index.sbn │ ├── issue-details.sbn │ ├── issue-note.sbn │ ├── issues.sbn │ ├── milestone.sbn │ └── release-info.sbn ├── default │ ├── create │ │ └── footer.sbn │ ├── index.sbn │ ├── issue-details.sbn │ ├── issue-note.sbn │ ├── issues.sbn │ ├── milestone.sbn │ └── release-info.sbn └── no │ └── issues │ ├── create │ └── footer.sbn │ ├── index.sbn │ ├── issues.sbn │ ├── milestone.sbn │ └── release-info.sbn ├── .vscode ├── extensions.json └── settings.json ├── CHANGELOG.md ├── CHANGELOG_LICENSED.md ├── COMMITTERS.md ├── CONTRIBUTING.md ├── GenerateDocs.ps1 ├── GitReleaseManager.yaml ├── GitVersion.yml ├── Invoke-AuthedTests.ps1 ├── Invoke-Tests.ps1 ├── LICENSE ├── NOTICE ├── README.md ├── ScriptFormat.Tests.ps1 ├── TESTING.md ├── build.bat ├── build.debug.bat ├── build.debug.sh ├── build.official.bat ├── build.official.sh ├── build.ps1 ├── build.sh ├── cake.config ├── chocolatey.snk ├── docker ├── Dockerfile.linux ├── Dockerfile.windows ├── Install-ChocolateyInContainer.ps1 ├── README.md ├── choco_official_wrapper └── choco_wrapper ├── docs ├── images │ └── branching-strategy.png ├── legal │ └── CREDITS.md ├── logo │ ├── LogoUsePolicy.md │ ├── chocolatey.ico │ ├── chocolateyicon.gif │ └── chocolateyicon.png └── resharper_templates │ ├── Fact_LiveTemplate.DotSettings │ └── TinySpecSpec_FileTemplate.DotSettings ├── formatting-settings.psd1 ├── lib ├── PowerShell │ └── System.Management.Automation.dll └── Rhino.Licensing.1.4.1 │ └── lib │ └── net40 │ ├── Rhino.Licensing.dll │ ├── acknowledgements.txt │ └── license.txt ├── nuspec ├── chocolatey │ └── chocolatey │ │ ├── chocolatey.nuspec │ │ └── tools │ │ ├── VERIFICATION.txt │ │ ├── chocolateyInstall.ps1 │ │ ├── chocolateyInstall │ │ └── choco.exe.ignore │ │ ├── chocolateysetup.psm1 │ │ └── init.ps1 └── nuget │ ├── Chocolatey.PowerShell │ └── Chocolatey.PowerShell.nuspec │ └── chocolatey.lib │ └── chocolatey.lib.nuspec ├── recipe.cake ├── setup.cmd ├── setup.ps1 ├── src ├── Chocolatey.PowerShell │ ├── Chocolatey.PowerShell.csproj │ ├── Chocolatey.PowerShell.dll-Help.xml │ ├── Commands │ │ ├── GetEnvironmentVariableCommand.cs │ │ ├── GetEnvironmentVariableNamesCommand.cs │ │ ├── InstallChocolateyPathCommand.cs │ │ ├── SetEnvironmentVariableCommand.cs │ │ ├── TestProcessAdminRightsCommand.cs │ │ ├── UninstallChocolateyPathCommand.cs │ │ └── UpdateSessionEnvironmentCommand.cs │ ├── Helpers │ │ ├── Elevation.cs │ │ ├── EnvironmentHelper.cs │ │ ├── PSHelper.cs │ │ ├── Paths.cs │ │ └── ProcessInformation.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Shared │ │ ├── ChocolateyCmdlet.cs │ │ └── EnvironmentVariables.cs │ └── Win32 │ │ └── NativeMethods.cs ├── chocolatey.benchmark │ ├── App.config │ ├── BenchmarkConfig.cs │ ├── ParentProcessBenchmarks.cs │ ├── ProcessTreeBenchmark.cs │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── chocolatey.benchmark.csproj │ ├── helpers │ │ ├── ManagedProcessHelper.cs │ │ └── PinvokeProcessHelper.cs │ └── packages.config ├── chocolatey.console │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── choco.exe.manifest │ ├── chocolatey.console.csproj │ ├── ilmerge.internalize.ignore.txt │ └── packages.config ├── chocolatey.install │ ├── NetFx48.wxs │ ├── assets │ │ ├── LICENSE.rtf │ │ ├── WiXUIDialogBmp.bmp │ │ ├── WixUIBannerBmp.bmp │ │ └── choco.ico │ ├── chocolatey.en-us.wxl │ ├── chocolatey.install.wixproj │ └── chocolatey.wxs ├── chocolatey.resources │ ├── ChocolateyResourcesAssembly.cs │ ├── LICENSE.txt │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── chocolatey.resources.README.txt │ ├── chocolatey.resources.csproj │ ├── helpers │ │ ├── ChocolateyTabExpansion.ps1 │ │ ├── chocolateyInstaller.psm1 │ │ ├── chocolateyProfile.psm1 │ │ ├── chocolateyScriptRunner.ps1 │ │ └── functions │ │ │ ├── Format-FileSize.ps1 │ │ │ ├── Get-CheckSumValid.ps1 │ │ │ ├── Get-ChocolateyConfigValue.ps1 │ │ │ ├── Get-ChocolateyPath.ps1 │ │ │ ├── Get-ChocolateyUnzip.ps1 │ │ │ ├── Get-ChocolateyWebFile.ps1 │ │ │ ├── Get-FtpFile.ps1 │ │ │ ├── Get-OSArchitectureWidth.ps1 │ │ │ ├── Get-PackageParameters.ps1 │ │ │ ├── Get-ToolsLocation.ps1 │ │ │ ├── Get-UACEnabled.ps1 │ │ │ ├── Get-UninstallRegistryKey.ps1 │ │ │ ├── Get-VirusCheckValid.ps1 │ │ │ ├── Get-WebFile.ps1 │ │ │ ├── Get-WebFileName.ps1 │ │ │ ├── Get-WebHeaders.ps1 │ │ │ ├── Install-BinFile.ps1 │ │ │ ├── Install-ChocolateyEnvironmentVariable.ps1 │ │ │ ├── Install-ChocolateyExplorerMenuItem.ps1 │ │ │ ├── Install-ChocolateyFileAssociation.ps1 │ │ │ ├── Install-ChocolateyInstallPackage.ps1 │ │ │ ├── Install-ChocolateyPackage.ps1 │ │ │ ├── Install-ChocolateyPinnedTaskBarItem.ps1 │ │ │ ├── Install-ChocolateyPowershellCommand.ps1 │ │ │ ├── Install-ChocolateyShortcut.ps1 │ │ │ ├── Install-ChocolateyVsixPackage.ps1 │ │ │ ├── Install-ChocolateyZipPackage.ps1 │ │ │ ├── Install-Vsix.ps1 │ │ │ ├── Set-PowerShellExitCode.ps1 │ │ │ ├── Start-ChocolateyProcessAsAdmin.ps1 │ │ │ ├── UnInstall-ChocolateyZipPackage.ps1 │ │ │ ├── Uninstall-BinFile.ps1 │ │ │ ├── Uninstall-ChocolateyEnvironmentVariable.ps1 │ │ │ ├── Uninstall-ChocolateyPackage.ps1 │ │ │ └── Write-FunctionCallLogMessage.ps1 │ ├── redirects │ │ ├── RefreshEnv.cmd │ │ ├── choco.exe │ │ └── choco.exe.ignore │ └── tools │ │ ├── 7z.dll │ │ ├── 7z.dll.manifest │ │ ├── 7z.exe │ │ ├── 7z.exe.ignore │ │ ├── 7z.exe.manifest │ │ ├── 7zip.license.txt │ │ ├── checksum.exe │ │ ├── checksum.exe.config │ │ ├── checksum.exe.ignore │ │ ├── checksum.license.txt │ │ ├── shimgen.exe │ │ ├── shimgen.exe.ignore │ │ └── shimgen.license.txt ├── chocolatey.sln ├── chocolatey.sln.DotSettings ├── chocolatey.slnf ├── chocolatey.tests.integration │ ├── App.config │ ├── MockEventSubscriptionManager.cs │ ├── NUnitSetup.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Scenario.cs │ ├── TODO.cs │ ├── chocolatey.tests.integration.csproj │ ├── context │ │ ├── badpackage │ │ │ ├── 1.0 │ │ │ │ ├── badpackage.nuspec │ │ │ │ └── tools │ │ │ │ │ ├── chocolateyInstall.ps1 │ │ │ │ │ └── chocolateyUninstall.ps1 │ │ │ └── 2.0 │ │ │ │ ├── badpackage.nuspec │ │ │ │ └── tools │ │ │ │ ├── chocolateyInstall.ps1 │ │ │ │ └── chocolateyUninstall.ps1 │ │ ├── dependencies │ │ │ ├── conflict_with_dependency_tree │ │ │ │ ├── childdependencywithlooserversiondependency │ │ │ │ │ └── 1.0.0 │ │ │ │ │ │ └── childdependencywithlooserversiondependency.nuspec │ │ │ │ └── toplevelhasexactversiondependency │ │ │ │ │ └── 1.0.0 │ │ │ │ │ └── toplevelhasexactversiondependency.nuspec │ │ │ ├── conflictingdependency │ │ │ │ ├── 1.0.1 │ │ │ │ │ ├── conflictingdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 2.0.0 │ │ │ │ │ ├── conflictingdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ └── 2.1.0 │ │ │ │ │ ├── conflictingdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ ├── hasdependency │ │ │ │ ├── 1.0.0 │ │ │ │ │ ├── hasdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 1.0.1 │ │ │ │ │ ├── hasdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 1.1.0 │ │ │ │ │ ├── hasdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 1.5.0 │ │ │ │ │ ├── hasdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 1.6.0 │ │ │ │ │ ├── hasdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 2.0.0 │ │ │ │ │ ├── hasdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 2.0.1 │ │ │ │ │ ├── hasdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ └── 2.1.0 │ │ │ │ │ ├── hasdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ ├── isdependency │ │ │ │ ├── 1.0.0 │ │ │ │ │ ├── isdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 1.0.1 │ │ │ │ │ ├── isdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 1.1.0 │ │ │ │ │ ├── isdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 2.0.0 │ │ │ │ │ ├── isdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ └── 2.1.0 │ │ │ │ │ ├── isdependency.nuspec │ │ │ │ │ └── tools │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ └── isexactversiondependency │ │ │ │ ├── 1.0.0-beta │ │ │ │ ├── isexactversiondependency.nuspec │ │ │ │ └── tools │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 1.0.0 │ │ │ │ ├── isexactversiondependency.nuspec │ │ │ │ └── tools │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 1.0.1 │ │ │ │ ├── isexactversiondependency.nuspec │ │ │ │ └── tools │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ ├── 1.1.0 │ │ │ │ ├── isexactversiondependency.nuspec │ │ │ │ └── tools │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ └── 2.0.0 │ │ │ │ ├── isexactversiondependency.nuspec │ │ │ │ └── tools │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ └── chocolateyuninstall.ps1 │ │ ├── dependenciesbeforemodify │ │ │ ├── hasdependencywithbeforemodify │ │ │ │ ├── 1.0.0 │ │ │ │ │ ├── hasdependencywithbeforemodify.nuspec │ │ │ │ │ └── tools │ │ │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ │ │ └── purpose.txt │ │ │ │ └── 2.0.0 │ │ │ │ │ ├── hasdependencywithbeforemodify.nuspec │ │ │ │ │ └── tools │ │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ │ └── purpose.txt │ │ │ └── isdependencywithbeforemodify │ │ │ │ ├── 1.0.0 │ │ │ │ ├── isdependencywithbeforemodify.nuspec │ │ │ │ └── tools │ │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ │ └── purpose.txt │ │ │ │ └── 2.0.0 │ │ │ │ ├── isdependencywithbeforemodify.nuspec │ │ │ │ └── tools │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ └── purpose.txt │ │ ├── exactpackage │ │ │ ├── exactpackage.dontfind │ │ │ │ └── 1.0.0 │ │ │ │ │ ├── exactpackage.dontfind.nuspec │ │ │ │ │ └── tools │ │ │ │ │ └── purpose.txt │ │ │ └── exactpackage │ │ │ │ ├── 0.9.0 │ │ │ │ ├── exactpackage.nuspec │ │ │ │ └── tools │ │ │ │ │ └── purpose.txt │ │ │ │ ├── 1.0.0-beta1 │ │ │ │ ├── exactpackage.nuspec │ │ │ │ └── tools │ │ │ │ │ └── purpose.txt │ │ │ │ └── 1.0.0 │ │ │ │ ├── exactpackage.nuspec │ │ │ │ └── tools │ │ │ │ └── purpose.txt │ │ ├── installpackage │ │ │ ├── 0.9.9+build.543 │ │ │ │ ├── installpackage.nuspec │ │ │ │ └── tools │ │ │ │ │ ├── Casemismatch.exe.ignore │ │ │ │ │ ├── casemismatch.exe │ │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ │ ├── console.exe │ │ │ │ │ ├── graphical.exe │ │ │ │ │ ├── graphical.exe.gui │ │ │ │ │ ├── not.installed.exe │ │ │ │ │ └── not.installed.exe.ignore │ │ │ ├── 1.0.0-alpha.34 │ │ │ │ ├── installpackage.nuspec │ │ │ │ └── tools │ │ │ │ │ ├── Casemismatch.exe.ignore │ │ │ │ │ ├── casemismatch.exe │ │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ │ ├── console.exe │ │ │ │ │ ├── graphical.exe │ │ │ │ │ ├── graphical.exe.gui │ │ │ │ │ ├── not.installed.exe │ │ │ │ │ └── not.installed.exe.ignore │ │ │ └── 1.0.0 │ │ │ │ ├── installpackage.nuspec │ │ │ │ └── tools │ │ │ │ ├── Casemismatch.exe.ignore │ │ │ │ ├── casemismatch.exe │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ ├── console.exe │ │ │ │ ├── graphical.exe │ │ │ │ ├── graphical.exe.gui │ │ │ │ ├── not.installed.exe │ │ │ │ └── not.installed.exe.ignore │ │ ├── nonterminatingerror │ │ │ └── 1.0 │ │ │ │ ├── nonterminatingerror.nuspec │ │ │ │ └── tools │ │ │ │ └── chocolateyInstall.ps1 │ │ ├── portablepackage │ │ │ └── 1.0.0 │ │ │ │ ├── portablepackage.nuspec │ │ │ │ └── tools │ │ │ │ ├── Casemismatch.exe.ignore │ │ │ │ ├── casemismatch.exe │ │ │ │ ├── console.exe │ │ │ │ ├── graphical.exe │ │ │ │ ├── graphical.exe.gui │ │ │ │ ├── not.installed.exe │ │ │ │ └── not.installed.exe.ignore │ │ ├── scriptpackage.hook │ │ │ ├── 1.0.0 │ │ │ │ ├── hook │ │ │ │ │ ├── dontrun.ps1 │ │ │ │ │ ├── post-beforemodify-all.ps1 │ │ │ │ │ ├── post-beforemodify-installpackage.ps1 │ │ │ │ │ ├── post-beforemodify-upgradepackage.ps1 │ │ │ │ │ ├── post-install-all.ps1 │ │ │ │ │ ├── post-install-installpackage.ps1 │ │ │ │ │ ├── post-install-upgradepackage.ps1 │ │ │ │ │ ├── post-uninstall-all.ps1 │ │ │ │ │ ├── post-uninstall-installpackage.ps1 │ │ │ │ │ ├── post-uninstall-upgradepackage.ps1 │ │ │ │ │ ├── post-upgrade-all.ps1 │ │ │ │ │ ├── post-upgrade-installpackage.ps1 │ │ │ │ │ ├── post-upgrade-upgradepackage.ps1 │ │ │ │ │ ├── pre-beforemodify-all.ps1 │ │ │ │ │ ├── pre-beforemodify-installpackage.ps1 │ │ │ │ │ ├── pre-beforemodify-upgradepackage.ps1 │ │ │ │ │ ├── pre-install-all.ps1 │ │ │ │ │ ├── pre-install-doesnotexist.ps1 │ │ │ │ │ ├── pre-install-installpackage.ps1 │ │ │ │ │ ├── pre-install-upgradepackage.ps1 │ │ │ │ │ ├── pre-uninstall-all.ps1 │ │ │ │ │ ├── pre-uninstall-installpackage.ps1 │ │ │ │ │ ├── pre-uninstall-upgradepackage.ps1 │ │ │ │ │ ├── pre-upgrade-all.ps1 │ │ │ │ │ ├── pre-upgrade-installpackage.ps1 │ │ │ │ │ └── pre-upgrade-upgradepackage.ps1 │ │ │ │ └── scriptpackage.hook.nuspec │ │ │ └── 2.0.0 │ │ │ │ ├── hook │ │ │ │ ├── dontrun.ps1 │ │ │ │ ├── post-beforemodify-all.ps1 │ │ │ │ ├── post-beforemodify-installpackage.ps1 │ │ │ │ ├── post-beforemodify-upgradepackage.ps1 │ │ │ │ ├── post-install-all.ps1 │ │ │ │ ├── post-install-doesnotexist.ps1 │ │ │ │ ├── post-install-installpackage.ps1 │ │ │ │ ├── post-install-upgradepackage.ps1 │ │ │ │ ├── post-uninstall-all.ps1 │ │ │ │ ├── post-uninstall-installpackage.ps1 │ │ │ │ ├── post-uninstall-upgradepackage.ps1 │ │ │ │ ├── post-upgrade-all.ps1 │ │ │ │ ├── post-upgrade-installpackage.ps1 │ │ │ │ ├── post-upgrade-upgradepackage.ps1 │ │ │ │ ├── pre-beforemodify-all.ps1 │ │ │ │ ├── pre-beforemodify-installpackage.ps1 │ │ │ │ ├── pre-beforemodify-upgradepackage.ps1 │ │ │ │ ├── pre-install-all.ps1 │ │ │ │ ├── pre-install-installpackage.ps1 │ │ │ │ ├── pre-install-upgradepackage.ps1 │ │ │ │ ├── pre-uninstall-all.ps1 │ │ │ │ ├── pre-uninstall-installpackage.ps1 │ │ │ │ ├── pre-uninstall-upgradepackage.ps1 │ │ │ │ ├── pre-upgrade-all.ps1 │ │ │ │ ├── pre-upgrade-installpackage.ps1 │ │ │ │ └── pre-upgrade-upgradepackage.ps1 │ │ │ │ └── scriptpackage.hook.nuspec │ │ ├── testing.packages.config │ │ ├── unsupportedelements │ │ │ ├── 1.0.0 │ │ │ │ ├── icon.png │ │ │ │ ├── readme.md │ │ │ │ ├── tools │ │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ └── unsupportedelements.nuspec │ │ │ └── 1.1.0 │ │ │ │ ├── icon.png │ │ │ │ ├── readme.md │ │ │ │ ├── tools │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ │ └── unsupportedelements.nuspec │ │ ├── upgradepackage │ │ │ ├── 1.0.0 │ │ │ │ ├── tools │ │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ │ ├── console.exe │ │ │ │ │ ├── console.exe.config │ │ │ │ │ ├── console.exe.config.install.xdt │ │ │ │ │ ├── graphical.exe │ │ │ │ │ └── graphical.exe.gui │ │ │ │ └── upgradepackage.nuspec │ │ │ ├── 1.1.0 │ │ │ │ ├── tools │ │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ │ ├── console.exe │ │ │ │ │ ├── console.exe.config │ │ │ │ │ ├── console.exe.config.install.xdt │ │ │ │ │ ├── graphical.exe │ │ │ │ │ └── graphical.exe.gui │ │ │ │ └── upgradepackage.nuspec │ │ │ ├── 1.1.1-beta.1 │ │ │ │ ├── tools │ │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ │ ├── console.exe │ │ │ │ │ ├── console.exe.config │ │ │ │ │ ├── console.exe.config.install.xdt │ │ │ │ │ ├── graphical.exe │ │ │ │ │ └── graphical.exe.gui │ │ │ │ └── upgradepackage.nuspec │ │ │ ├── 1.1.1-beta │ │ │ │ ├── tools │ │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ │ ├── console.exe │ │ │ │ │ ├── console.exe.config │ │ │ │ │ ├── console.exe.config.install.xdt │ │ │ │ │ ├── graphical.exe │ │ │ │ │ └── graphical.exe.gui │ │ │ │ └── upgradepackage.nuspec │ │ │ └── 1.1.1-beta2 │ │ │ │ ├── tools │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ ├── chocolateyuninstall.ps1 │ │ │ │ ├── console.exe │ │ │ │ ├── console.exe.config │ │ │ │ ├── console.exe.config.install.xdt │ │ │ │ ├── graphical.exe │ │ │ │ └── graphical.exe.gui │ │ │ │ └── upgradepackage.nuspec │ │ └── uppercase │ │ │ ├── 1.0.0 │ │ │ ├── UpperCase.nuspec │ │ │ └── tools │ │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ └── 1.1.0 │ │ │ ├── UpperCase.nuspec │ │ │ └── tools │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ ├── chocolateyinstall.ps1 │ │ │ └── chocolateyuninstall.ps1 │ ├── infrastructure.app │ │ ├── builders │ │ │ └── ConfigurationBuilderSpecs.cs │ │ ├── nuget │ │ │ └── NugetListSpecs.cs │ │ └── services │ │ │ └── FilesServiceSpecs.cs │ ├── infrastructure │ │ ├── commands │ │ │ └── CommandExecutorSpecs.cs │ │ ├── cryptography │ │ │ └── CryptoHashProviderSpecs.cs │ │ └── filesystem │ │ │ ├── CopyMe.txt │ │ │ ├── DotNetFileSystemSpecs.cs │ │ │ ├── MoveMe.txt │ │ │ ├── Slipsum.txt │ │ │ └── context │ │ │ ├── DeleteMe.txt │ │ │ └── attributes.txt │ ├── packages.config │ └── scenarios │ │ ├── InfoScenarios.cs │ │ ├── InstallScenarios.cs │ │ ├── ListScenarios.cs │ │ ├── PackScenarios.cs │ │ ├── PinScenarios.cs │ │ ├── SearchScenarios.cs │ │ ├── UninstallScenarios.cs │ │ └── UpgradeScenarios.cs ├── chocolatey.tests │ ├── App.config │ ├── MockLogger.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── TinySpec.cs │ ├── UNCHelper.cs │ ├── chocolatey.tests.csproj │ ├── infrastructure.app │ │ ├── attributes │ │ │ └── CommandForAttributeSpecs.cs │ │ ├── commands │ │ │ ├── ChocolateyApiKeyCommandSpecs.cs │ │ │ ├── ChocolateyCacheCommandSpecs.cs │ │ │ ├── ChocolateyConfigCommandSpecs.cs │ │ │ ├── ChocolateyExportCommandSpecs.cs │ │ │ ├── ChocolateyFeatureCommandSpecs.cs │ │ │ ├── ChocolateyHelpCommandSpecs.cs │ │ │ ├── ChocolateyInfoCommandSpecs.cs │ │ │ ├── ChocolateyInstallCommandSpecs.cs │ │ │ ├── ChocolateyListCommandSpecs.cs │ │ │ ├── ChocolateyNewCommandSpecs.cs │ │ │ ├── ChocolateyOutdatedCommandSpecs.cs │ │ │ ├── ChocolateyPackCommandSpecs.cs │ │ │ ├── ChocolateyPinCommandSpecs.cs │ │ │ ├── ChocolateyPushCommandSpecs.cs │ │ │ ├── ChocolateyRuleCommandSpecs.cs │ │ │ ├── ChocolateySearchCommandSpecs.cs │ │ │ ├── ChocolateySourceCommandSpecs.cs │ │ │ ├── ChocolateyTemplateCommandSpecs.cs │ │ │ ├── ChocolateyUninstallCommandSpecs.cs │ │ │ ├── ChocolateyUnpackSelfCommandSpecs.cs │ │ │ └── ChocolateyUpgradeCommandSpecs.cs │ │ ├── configuration │ │ │ └── ConfigurationOptionsSpec.cs │ │ ├── nuget │ │ │ ├── ChocolateyNuGetProjectContextSpecs.cs │ │ │ ├── ChocolateyNugetCredentialProviderSpecs.cs │ │ │ ├── ChocolateyNugetLoggerSpecs.cs │ │ │ └── NugetCommonSpecs.cs │ │ ├── services │ │ │ ├── AutomaticUninstallerServiceSpecs.cs │ │ │ ├── ChocolateyConfigSettingsServiceSpecs.cs │ │ │ ├── ChocolateyPackageServiceSpecs.cs │ │ │ ├── FilesServiceSpecs.cs │ │ │ ├── NugetServiceSpecs.cs │ │ │ ├── RegistryServiceSpecs.cs │ │ │ ├── RulesServiceSpecs.cs │ │ │ └── TemplateServiceSpecs.cs │ │ └── utility │ │ │ ├── ArgumentsUtilitySpecs.cs │ │ │ └── PackageUtilitySpecs.cs │ ├── infrastructure │ │ ├── commandline │ │ │ └── InteractivePromptSpecs.cs │ │ ├── commands │ │ │ ├── CommandExecutorSpecs.cs │ │ │ ├── ExternalCommandArgsBuilderSpecs.cs │ │ │ └── PowershellExecutorSpecs.cs │ │ ├── configuration │ │ │ └── ConfigSpecs.cs │ │ ├── cryptography │ │ │ └── CryptoHashProviderSpecs.cs │ │ ├── events │ │ │ ├── EventSubscriptionManagerSpecs.cs │ │ │ └── context │ │ │ │ ├── FakeEvent.cs │ │ │ │ └── FakeSubscriber.cs │ │ ├── filesystem │ │ │ └── DotNetFileSystemSpecs.cs │ │ ├── guards │ │ │ └── EnsureSpecs.cs │ │ ├── information │ │ │ └── VersionInformationSpecs.cs │ │ ├── platforms │ │ │ └── PlatformSpecs.cs │ │ ├── tokens │ │ │ └── TokenReplacerSpecs.cs │ │ └── tolerance │ │ │ └── FaultToleranceSpecs.cs │ └── packages.config └── chocolatey │ ├── AssemblyExtensions.cs │ ├── BannedSymbols.txt │ ├── EnumExtensions.cs │ ├── EnumerableExtensions.cs │ ├── ExceptionExtensions.cs │ ├── FileSystemExtensions.cs │ ├── GetChocolatey.cs │ ├── ILogExtensions.cs │ ├── LogExtensions.cs │ ├── NuGetVersionExtensions.cs │ ├── ObjectExtensions.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── RuleResultExtensions.cs │ ├── StringExtensions.cs │ ├── StringResources.cs │ ├── TypeExtensions.cs │ ├── chocolatey.csproj │ ├── ilmerge.internalize.ignore.dll.txt │ ├── infrastructure.app │ ├── ApplicationParameters.cs │ ├── attributes │ │ ├── CommandForAttribute.cs │ │ └── MultiServiceAttribute.cs │ ├── builders │ │ └── ConfigurationBuilder.cs │ ├── commands │ │ ├── ChocolateyApiKeyCommand.cs │ │ ├── ChocolateyCacheCommand.cs │ │ ├── ChocolateyCommandBase.cs │ │ ├── ChocolateyConfigCommand.cs │ │ ├── ChocolateyExportCommand.cs │ │ ├── ChocolateyFeatureCommand.cs │ │ ├── ChocolateyHelpCommand.cs │ │ ├── ChocolateyInfoCommand.cs │ │ ├── ChocolateyInstallCommand.cs │ │ ├── ChocolateyListCommand.cs │ │ ├── ChocolateyNewCommand.cs │ │ ├── ChocolateyOutdatedCommand.cs │ │ ├── ChocolateyPackCommand.cs │ │ ├── ChocolateyPinCommand.cs │ │ ├── ChocolateyPushCommand.cs │ │ ├── ChocolateyRuleCommand.cs │ │ ├── ChocolateySearchCommand.cs │ │ ├── ChocolateySourceCommand.cs │ │ ├── ChocolateyTemplateCommand.cs │ │ ├── ChocolateyUninstallCommand.cs │ │ ├── ChocolateyUnpackSelfCommand.cs │ │ └── ChocolateyUpgradeCommand.cs │ ├── configuration │ │ ├── ChocolateyConfiguration.cs │ │ ├── ChocolateySource.cs │ │ ├── ConfigFileApiKeySetting.cs │ │ ├── ConfigFileConfigSetting.cs │ │ ├── ConfigFileFeatureSetting.cs │ │ ├── ConfigFileSettings.cs │ │ ├── ConfigFileSourceSetting.cs │ │ ├── ConfigurationOptions.cs │ │ ├── EnvironmentSettings.cs │ │ ├── PackagesConfigFilePackageSetting.cs │ │ ├── PackagesConfigFileSettings.cs │ │ └── chocolatey.config │ ├── domain │ │ ├── ApiKeyCommandType.cs │ │ ├── CacheCommandType.cs │ │ ├── ChocolateyPackageInformation.cs │ │ ├── ChocolateyPackageMetadata.cs │ │ ├── CommandNameType.cs │ │ ├── ConfigCommandType.cs │ │ ├── FeatureCommandType.cs │ │ ├── GenericRegistryKey.cs │ │ ├── GenericRegistryValue.cs │ │ ├── InstallTokens.cs │ │ ├── InstallerType.cs │ │ ├── PackageFile.cs │ │ ├── PackageFiles.cs │ │ ├── PinCommandType.cs │ │ ├── Registry.cs │ │ ├── RegistryApplicationKey.cs │ │ ├── RegistryHiveType.cs │ │ ├── RegistryValueExtensions.cs │ │ ├── RegistryValueKindType.cs │ │ ├── SourceCommandType.cs │ │ ├── SourceType.cs │ │ ├── SourceTypes.cs │ │ ├── TemplateCommandType.cs │ │ └── installers │ │ │ ├── BitRockInstaller.cs │ │ │ ├── CustomInstaller.cs │ │ │ ├── GhostInstaller.cs │ │ │ ├── IInstaller.cs │ │ │ ├── InnoSetupInstaller.cs │ │ │ ├── InstallForJInstaller.cs │ │ │ ├── InstallShieldInstaller.cs │ │ │ ├── InstallerBase.cs │ │ │ ├── IzPackInstaller.cs │ │ │ ├── MsiInstaller.cs │ │ │ ├── MsiPatchInstaller.cs │ │ │ ├── NsisInstaller.cs │ │ │ ├── PackageForTheWebInstaller.cs │ │ │ ├── QtInstaller.cs │ │ │ ├── SetupFactoryInstaller.cs │ │ │ ├── SquirrelInstaller.cs │ │ │ ├── WindowsUpdateInstaller.cs │ │ │ └── WiseInstaller.cs │ ├── events │ │ ├── HandlePackageResultCompletedMessage.cs │ │ ├── PostRunMessage.cs │ │ └── PreRunMessage.cs │ ├── nuget │ │ ├── ChocolateyLocalPackageRepository.cs │ │ ├── ChocolateyNuGetProjectContext.cs │ │ ├── ChocolateyNuGetSettings.cs │ │ ├── ChocolateyNugetCredentialProvider.cs │ │ ├── ChocolateyNugetLogger.cs │ │ ├── ChocolateyPackagePathResolver.cs │ │ ├── ChocolateyPhysicalFileSystem.cs │ │ ├── ChocolateySourceCacheContext.cs │ │ ├── DictionaryPropertyProvider.cs │ │ ├── NuGetEndpointResources.cs │ │ ├── NuGetEndpointResourcesExtensions.cs │ │ ├── NuGetFileSystemExtensions.cs │ │ ├── NugetCommon.cs │ │ ├── NugetEncryptionUtility.cs │ │ ├── NugetList.cs │ │ ├── NugetPack.cs │ │ └── NugetPush.cs │ ├── registration │ │ ├── ChocolateyRegistrationModule.cs │ │ ├── ContainerBinding.cs │ │ ├── IContainerRegistrator.cs │ │ ├── IContainerResolver.cs │ │ ├── IExtensionConfiguration.cs │ │ ├── IExtensionEnvironment.cs │ │ ├── IExtensionModule.cs │ │ ├── SimpleInjectorContainerRegistrator.cs │ │ └── SimpleInjectorContainerResolver.cs │ ├── rules │ │ ├── EmptyOrInvalidUrlMetadataRule.cs │ │ ├── FrameWorkReferencesMetadataRule.cs │ │ ├── IconMetadataRule.cs │ │ ├── LicenseMetadataRule.cs │ │ ├── MetadataRuleBase.cs │ │ ├── PackageTypesMetadataRule.cs │ │ ├── ReadmeMetadataRule.cs │ │ ├── RepositoryMetadataRule.cs │ │ ├── RequireLicenseAcceptanceMetadataRule.cs │ │ ├── RequiredMetadataRule.cs │ │ ├── RuleIdentifiers.cs │ │ ├── ServicableMetadataRule.cs │ │ └── VersionMetadataRule.cs │ ├── runners │ │ ├── ConsoleApplication.cs │ │ └── GenericRunner.cs │ ├── services │ │ ├── AutomaticUninstallerService.cs │ │ ├── ChocolateyConfigSettingsService.cs │ │ ├── ChocolateyPackageInformationService.cs │ │ ├── ChocolateyPackageService.cs │ │ ├── ConfigTransformService.cs │ │ ├── CygwinService.cs │ │ ├── FilesService.cs │ │ ├── IAutomaticUninstallerService.cs │ │ ├── IChocolateyConfigSettingsService.cs │ │ ├── IChocolateyPackageInformationService.cs │ │ ├── IChocolateyPackageService.cs │ │ ├── IConfigTransformService.cs │ │ ├── IFilesService.cs │ │ ├── INugetService.cs │ │ ├── IPendingRebootService.cs │ │ ├── IPowershellService.cs │ │ ├── IProcessCollectorService.cs │ │ ├── IRegistryService.cs │ │ ├── IShimGenerationService.cs │ │ ├── ISourceRunner.cs │ │ ├── ITemplateService.cs │ │ ├── NugetService.cs │ │ ├── PendingRebootService.cs │ │ ├── PowershellService.cs │ │ ├── ProcessCollectorService.cs │ │ ├── PythonService.cs │ │ ├── RegistryService.cs │ │ ├── RubyGemsService.cs │ │ ├── RuleService.cs │ │ ├── ShimGenerationService.cs │ │ ├── TemplateService.cs │ │ └── WindowsFeatureService.cs │ ├── tasks │ │ └── RemovePendingPackagesTask.cs │ ├── templates │ │ ├── ChocolateyBeforeModifyTemplate.cs │ │ ├── ChocolateyInstallTemplate.cs │ │ ├── ChocolateyLicenseFileTemplate.cs │ │ ├── ChocolateyReadMeTemplate.cs │ │ ├── ChocolateyTodoTemplate.cs │ │ ├── ChocolateyUninstallTemplate.cs │ │ ├── ChocolateyVerificationFileTemplate.cs │ │ ├── NuspecTemplate.cs │ │ └── TemplateValues.cs │ ├── utility │ │ ├── ArgumentsUtility.cs │ │ └── PackageUtility.cs │ └── validations │ │ ├── CacheFolderValidationLockdown.cs │ │ ├── GlobalConfigurationValidation.cs │ │ └── SystemStateValidation.cs │ ├── infrastructure │ ├── adapters │ │ ├── Assembly.cs │ │ ├── Console.cs │ │ ├── CustomString.cs │ │ ├── DateTime.cs │ │ ├── Environment.cs │ │ ├── HashAlgorithm.cs │ │ ├── IAssembly.cs │ │ ├── IConsole.cs │ │ ├── IDateTime.cs │ │ ├── IEncryptionUtility.cs │ │ ├── IEnvironment.cs │ │ ├── IHashAlgorithm.cs │ │ ├── IProcess.cs │ │ └── Process.cs │ ├── commandline │ │ ├── ExitScenarioHandler.cs │ │ ├── InteractivePrompt.cs │ │ ├── Options.cs │ │ ├── ReadKeyTimeout.cs │ │ └── ReadLineTimeout.cs │ ├── commands │ │ ├── CommandExecutor.cs │ │ ├── Execute.cs │ │ ├── ExitCodeDescription.cs │ │ ├── ExternalCommandArgsBuilder.cs │ │ ├── ExternalCommandArgument.cs │ │ ├── ICommand.cs │ │ ├── ICommandExecutor.cs │ │ ├── IListCommand.cs │ │ └── PowershellExecutor.cs │ ├── configuration │ │ └── Config.cs │ ├── cryptography │ │ ├── CryptoHashProvider.cs │ │ ├── CryptoHashProviderType.cs │ │ ├── DefaultEncryptionUtility.cs │ │ ├── HashConverter.cs │ │ └── IHashProvider.cs │ ├── events │ │ ├── EventManager.cs │ │ └── IMessage.cs │ ├── extractors │ │ └── AssemblyFileExtractor.cs │ ├── filesystem │ │ ├── DotNetFileSystem.cs │ │ ├── FileSystem.cs │ │ └── IFileSystem.cs │ ├── guards │ │ └── Ensure.cs │ ├── information │ │ ├── ExtensionInformation.cs │ │ ├── ProcessInformation.cs │ │ ├── ProcessTree.cs │ │ └── VersionInformation.cs │ ├── licensing │ │ ├── ChocolateyLicense.cs │ │ ├── ChocolateyLicenseType.cs │ │ ├── License.cs │ │ └── LicenseValidation.cs │ ├── logging │ │ ├── AggregateLog.cs │ │ ├── ChocolateyLoggers.cs │ │ ├── ILog.cs │ │ ├── Log.cs │ │ ├── Log4NetAppenderConfiguration.cs │ │ ├── Log4NetLog.cs │ │ ├── LogLevelType.cs │ │ ├── LogMessage.cs │ │ ├── LogSinkLog.cs │ │ ├── NullLog.cs │ │ ├── TraceLog.cs │ │ ├── log4net.config.xml │ │ ├── log4net.mono.config.xml │ │ ├── log4net.mono.nocolor.config.xml │ │ └── log4net.nocolor.config.xml │ ├── platforms │ │ ├── Platform.cs │ │ └── PlatformType.cs │ ├── powershell │ │ ├── PoshHost.cs │ │ ├── PoshHostRawUserInterface.cs │ │ └── PoshHostUserInterface.cs │ ├── registration │ │ ├── AssemblyResolution.cs │ │ ├── Bootstrap.cs │ │ ├── HttpsSecurity.cs │ │ ├── SecurityProtocol.cs │ │ ├── SimpleInjectorContainer.cs │ │ └── SimpleInjectorContainerResolutionBehavior.cs │ ├── results │ │ ├── IResult.cs │ │ ├── PackageResult.cs │ │ ├── PowerShellExecutionResults.cs │ │ ├── Result.cs │ │ ├── ResultMessage.cs │ │ └── ResultType.cs │ ├── rules │ │ ├── IMetadataRule.cs │ │ ├── ImmutableRule.cs │ │ ├── RuleResult.cs │ │ └── RuleType.cs │ ├── services │ │ ├── EventSubscriptionManagerService.cs │ │ ├── IDateTimeService.cs │ │ ├── IEventSubscriptionManagerService.cs │ │ ├── IRegularExpressionService.cs │ │ ├── IRuleService.cs │ │ ├── IXmlService.cs │ │ ├── RegularExpressionService.cs │ │ ├── SystemDateTimeService.cs │ │ ├── SystemDateTimeUtcService.cs │ │ └── XmlService.cs │ ├── synchronization │ │ └── GlobalMutex.cs │ ├── tasks │ │ └── ITask.cs │ ├── tokens │ │ └── TokenReplacer.cs │ ├── tolerance │ │ └── FaultTolerance.cs │ ├── validations │ │ ├── IValidation.cs │ │ ├── ValidationResult.cs │ │ └── ValidationStatus.cs │ └── xml │ │ └── XmlCData.cs │ └── packages.config ├── tests ├── Vagrantfile ├── helpers │ ├── common-helpers.psm1 │ └── common │ │ ├── Archives │ │ └── Expand-ZipArchive.ps1 │ │ ├── Chocolatey │ │ ├── ConvertFrom-ChocolateyOutput.ps1 │ │ ├── ConvertTo-ChocoAuditObject.ps1 │ │ ├── Disable-ChocolateyFeature.ps1 │ │ ├── Disable-ChocolateySource.ps1 │ │ ├── Enable-ChocolateyFeature.ps1 │ │ ├── Enable-ChocolateySource.ps1 │ │ ├── Get-ChocoPath.ps1 │ │ ├── Get-ChocolateyFeature.ps1 │ │ ├── Get-ChocolateyInstalledPackages.ps1 │ │ ├── Get-ChocolateyLicense.ps1 │ │ ├── Get-ChocolateySource.ps1 │ │ ├── Get-ChocolateyTestLocation.ps1 │ │ ├── Get-ChocolateyVersion.ps1 │ │ ├── Get-ExpectedChocolateyHeader.ps1 │ │ ├── Get-OriginalChocolateyPath.ps1 │ │ ├── Initialize-ChocolateyTestInstall.ps1 │ │ ├── Invoke-Choco.ps1 │ │ ├── New-ChocolateyInstallSnapshot.ps1 │ │ ├── New-ChocolateyTestPackage.ps1 │ │ ├── Remove-ChocolateyInstallSnapshot.ps1 │ │ ├── Remove-ChocolateyTestInstall.ps1 │ │ ├── Restore-ChocolateyInstallSnapshot.ps1 │ │ ├── Set-ChocolateyFeature.ps1 │ │ ├── Set-ChocolateyTestLocation.ps1 │ │ ├── Test-ChocolateyVersionEqualOrHigherThan.ps1 │ │ ├── Test-HasNuGetV3Source.ps1 │ │ ├── Test-PackageIsEqualOrHigher.ps1 │ │ └── Test-VersionEqualOrHigher.ps1 │ │ ├── Get-TempDirectory.ps1 │ │ ├── Get-WhatIfResult.ps1 │ │ ├── Logging │ │ ├── Clear-ChocoLogData.ps1 │ │ ├── Get-ChocoLogData.ps1 │ │ └── Get-ChocoLogPath.ps1 │ │ ├── NuGet.Versioning.dll │ │ ├── NuGet │ │ ├── Get-NuGetPaths.ps1 │ │ ├── Remove-NuGetPaths.ps1 │ │ └── Test-NuGetPaths.ps1 │ │ ├── Set-RegistryKeyOwner.ps1 │ │ ├── Test-ByteOrderMark.ps1 │ │ └── Web │ │ └── Invoke-DownloadOrCacheFile.ps1 ├── packages │ ├── MvcMusicStore │ │ ├── v1.0.0 │ │ │ ├── mvcmusicstore-db │ │ │ │ ├── mvcmusicstore-db.nuspec │ │ │ │ └── tools │ │ │ │ │ └── chocolateyinstall.ps1 │ │ │ └── mvcmusicstore-web │ │ │ │ ├── mvcmusicstore-web.nuspec │ │ │ │ └── tools │ │ │ │ └── chocolateyinstall.ps1 │ │ └── v1.2.0 │ │ │ ├── mvcmusicstore-db │ │ │ ├── mvcmusicstore-db.nuspec │ │ │ └── tools │ │ │ │ └── chocolateyinstall.ps1 │ │ │ └── mvcmusicstore-web │ │ │ ├── mvcmusicstore-web.nuspec │ │ │ └── tools │ │ │ └── chocolateyinstall.ps1 │ ├── add-path │ │ ├── add-path.nuspec │ │ └── tools │ │ │ ├── chocolateyinstall.ps1 │ │ │ └── chocolateyuninstall.ps1 │ ├── business-only-license │ │ ├── business-only-license.nuspec │ │ ├── icons │ │ │ └── icon.ico │ │ └── tools │ │ │ ├── 7z1900-x64.exe │ │ │ ├── 7z1900-x64.exe.ignore │ │ │ ├── chocolateyinstall.ps1 │ │ │ └── chocolateyuninstall.ps1 │ ├── circulardependency1 │ │ ├── README.md │ │ └── circulardependency1.nuspec │ ├── circulardependency2 │ │ ├── README.md │ │ └── circulardependency2.nuspec │ ├── dependencyfailure │ │ ├── dependencyfailure.nuspec │ │ └── tools │ │ │ └── chocolateyinstall.ps1 │ ├── failingdependency │ │ ├── failingdependency.nuspec │ │ └── tools │ │ │ └── chocolateyinstall.ps1 │ ├── get-chocolateyunzip-custom-paths │ │ └── 0.0.1 │ │ │ ├── get-chocolateyunzip-test.nuspec │ │ │ └── tools │ │ │ ├── chocolateyinstall.ps1 │ │ │ └── test.zip │ ├── get-chocolateyunzip-licensed │ │ ├── README.md │ │ ├── TODO.txt │ │ ├── get-chocolateyunzip-licensed.nuspec │ │ └── tools │ │ │ ├── chocolateyinstall.ps1 │ │ │ ├── cmake-3.21.2-windows-i386.zip │ │ │ ├── cmake-3.21.2-windows-i386 │ │ │ └── noop │ │ │ ├── cmake-3.21.2-windows-x86_64.zip │ │ │ └── cmake-3.21.2-windows-x86_64 │ │ │ └── noop │ ├── get-chocolateyunzip-test │ │ ├── 0.0.1 │ │ │ ├── get-chocolateyunzip-test.nuspec │ │ │ └── tools │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ └── test.zip │ │ └── 0.0.2 │ │ │ ├── get-chocolateyunzip-test.nuspec │ │ │ └── tools │ │ │ ├── chocolateyinstall.ps1 │ │ │ └── purpose.txt │ ├── getconfig │ │ ├── getconfig.nuspec │ │ └── tools │ │ │ └── chocolateyinstall.ps1 │ ├── hasbeforeinstallblock │ │ └── 1.0.0 │ │ │ ├── Readme.md │ │ │ ├── hasbeforeinstallblock.nuspec │ │ │ └── tools │ │ │ └── chocolateyinstall.ps1 │ ├── hasfailingnesteddependency │ │ └── 1.0.0 │ │ │ ├── hasfailingnesteddependency.nuspec │ │ │ └── tools │ │ │ ├── chocolateyinstall.ps1 │ │ │ └── chocolateyuninstall.ps1 │ ├── hasnesteddependency │ │ └── 1.0.0 │ │ │ ├── hasnesteddependency.nuspec │ │ │ └── tools │ │ │ ├── chocolateyinstall.ps1 │ │ │ └── chocolateyuninstall.ps1 │ ├── hasoutofrangedependency │ │ ├── 1.0.0 │ │ │ ├── hasnesteddependency.nuspec │ │ │ └── tools │ │ │ │ ├── chocolateybeforemodify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ └── chocolateyuninstall.ps1 │ │ ├── 2.0.0 │ │ │ ├── hasnesteddependency.nuspec │ │ │ └── tools │ │ │ │ ├── chocolateybeforemodify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ └── chocolateyuninstall.ps1 │ │ ├── 2.0.1 │ │ │ ├── hasnesteddependency.nuspec │ │ │ └── tools │ │ │ │ ├── chocolateybeforemodify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ └── chocolateyuninstall.ps1 │ │ ├── 2.0.2 │ │ │ ├── hasnesteddependency.nuspec │ │ │ └── tools │ │ │ │ ├── chocolateybeforemodify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ └── chocolateyuninstall.ps1 │ │ ├── 2.0.3 │ │ │ ├── hasnesteddependency.nuspec │ │ │ └── tools │ │ │ │ ├── chocolateybeforemodify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ └── chocolateyuninstall.ps1 │ │ └── Readme.md │ ├── install-chocolateyinstallpackage-tests │ │ ├── chocolateyinstall.ps1 │ │ └── install-chocolateyinstallpackage-tests.nuspec │ ├── msi.template │ │ ├── msi.template.nuspec │ │ └── templates │ │ │ ├── ReadMe.md │ │ │ ├── msi.nuspec.template │ │ │ └── tools │ │ │ ├── LICENSE.txt │ │ │ ├── VERIFICATION.txt │ │ │ ├── chocolateybeforemodify.ps1 │ │ │ ├── chocolateyinstall.ps1 │ │ │ └── chocolateyuninstall.ps1 │ ├── nonnormalizedversions │ │ ├── nonnormalizedversions.004.0.01.0.nupkg │ │ └── nonnormalizedversions.01.0.0.0.nupkg │ ├── package.extension │ │ ├── extensions │ │ │ ├── Test-ExtensionAvailable.ps1 │ │ │ └── package.psm1 │ │ └── package.extension.nuspec │ ├── package.template │ │ ├── package.template.nuspec │ │ └── templates │ │ │ ├── chocolateyinstall.ps1 │ │ │ └── notice.txt │ ├── pureportable │ │ └── 1.0.0 │ │ │ ├── pureportable.nuspec │ │ │ ├── purpose.txt │ │ │ └── tools │ │ │ ├── console.exe │ │ │ └── graphical.exe │ ├── test-chocolateypath │ │ ├── test-chocolateypath.nuspec │ │ └── tools │ │ │ ├── chocolateybeforemodify.ps1 │ │ │ ├── chocolateyinstall.ps1 │ │ │ └── chocolateyuninstall.ps1 │ ├── upgradedowngradesdependency │ │ ├── 1.0.0 │ │ │ ├── downgradesdependency.nuspec │ │ │ ├── tools │ │ │ │ ├── chocolateybeforemodify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ └── upgradedowngradesdependency.nuspec │ │ ├── 2.0.0 │ │ │ ├── downgradesdependency.nuspec │ │ │ ├── tools │ │ │ │ ├── chocolateybeforemodify.ps1 │ │ │ │ ├── chocolateyinstall.ps1 │ │ │ │ └── chocolateyuninstall.ps1 │ │ │ └── upgradedowngradesdependency.nuspec │ │ └── Readme.md │ └── zip.template │ │ ├── templates │ │ ├── ReadMe.md │ │ ├── tools │ │ │ ├── LICENSE.txt │ │ │ ├── VERIFICATION.txt │ │ │ ├── chocolateybeforemodify.ps1 │ │ │ └── chocolateyinstall.ps1 │ │ └── zip.nuspec.template │ │ └── zip.template.nuspec └── pester-tests │ ├── BundledApplications.Tests.ps1 │ ├── TestCertificate.pfx │ ├── chocolatey.Tests.ps1 │ ├── chocolateyProfile.Tests.ps1 │ ├── commands │ ├── Install-ChocolateyInstallPackage.Tests.ps1 │ ├── choco-apikey.Tests.ps1 │ ├── choco-config.Tests.ps1 │ ├── choco-export.Tests.ps1 │ ├── choco-feature.Tests.ps1 │ ├── choco-help.Tests.ps1 │ ├── choco-info.Tests.ps1 │ ├── choco-install.Tests.ps1 │ ├── choco-list.Tests.ps1 │ ├── choco-new.Tests.ps1 │ ├── choco-outdated.Tests.ps1 │ ├── choco-pack.Tests.ps1 │ ├── choco-pin.Tests.ps1 │ ├── choco-push.Tests.ps1 │ ├── choco-removed.Tests.ps1 │ ├── choco-rule.Tests.ps1 │ ├── choco-search.Tests.ps1 │ ├── choco-source.Tests.ps1 │ ├── choco-template.Tests.ps1 │ ├── choco-uninstall.Tests.ps1 │ ├── choco-upgrade.Tests.ps1 │ ├── choco-version.Tests.ps1 │ ├── demo-projects.zip │ ├── failingnested.packages.config │ ├── testnuspecs │ │ ├── basic-dependencies │ │ │ └── basic-dependencies.nuspec │ │ ├── basic │ │ │ ├── basic.nuspec │ │ │ └── tools │ │ │ │ └── purpose.txt │ │ ├── cdata │ │ │ └── cdata.nuspec │ │ ├── description-long.nuspec │ │ ├── empty-requireLicenseAcceptance.nuspec │ │ ├── empty.nuspec │ │ ├── forward-slash │ │ │ ├── forward-slash.nuspec │ │ │ └── tools │ │ │ │ └── purpose.txt │ │ ├── full │ │ │ ├── full.nuspec │ │ │ └── tools │ │ │ │ └── purpose.txt │ │ ├── invalid-bugtrackerurl.nuspec │ │ ├── invalid-character-and.nuspec │ │ ├── invalid-character-lesser.nuspec │ │ ├── invalid-docsurl.nuspec │ │ ├── invalid-iconurl.nuspec │ │ ├── invalid-id.nuspec │ │ ├── invalid-licenseUrl.nuspec │ │ ├── invalid-mailinglisturl.nuspec │ │ ├── invalid-no-content.nuspec │ │ ├── invalid-projectsourceurl.nuspec │ │ ├── invalid-projecturl.nuspec │ │ ├── invalid-requireLicenseAcceptance.nuspec │ │ ├── invalid-version.nuspec │ │ ├── missing.nuspec │ │ └── required.nuspec │ └── testpackages │ │ ├── .gitignore │ │ ├── chocolatey-dummy-package │ │ └── 1.0.0 │ │ │ └── chocolatey-dummy-package.nuspec │ │ ├── installpackage │ │ └── 1.0.0 │ │ │ ├── installpackage.nuspec │ │ │ └── tools │ │ │ ├── Casemismatch.exe.ignore │ │ │ ├── casemismatch.exe │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ ├── chocolateyinstall.ps1 │ │ │ ├── chocolateyuninstall.ps1 │ │ │ ├── console.exe │ │ │ ├── graphical.exe │ │ │ ├── graphical.exe.gui │ │ │ ├── not.installed.exe │ │ │ └── not.installed.exe.ignore │ │ ├── packagewithscript │ │ └── 1.0.0 │ │ │ ├── packagewithscript.nuspec │ │ │ └── tools │ │ │ ├── chocolateyBeforeModify.ps1 │ │ │ ├── chocolateyinstall.ps1 │ │ │ └── chocolateyuninstall.ps1 │ │ ├── too-long-description │ │ └── 1.0.0 │ │ │ └── too-long-description.nuspec │ │ ├── too-long-title │ │ └── 1.0.0 │ │ │ └── too-long-title.nuspec │ │ └── zip-log-disable-test │ │ ├── tools │ │ ├── chocolateyinstall.ps1 │ │ └── zip-log-disable-test.zip │ │ └── zip-log-disable-test.nuspec │ ├── features │ ├── ArgumentsDecryption.Tests.ps1 │ ├── ChocolateyCache.Tests.ps1 │ ├── ChocolateyFunctions.Tests.ps1 │ ├── CredentialProvider.Tests.ps1 │ ├── CygwinSource.Tests.ps1 │ ├── EnvironmentVariables.Tests.ps1 │ ├── Hooks.Tests.ps1 │ ├── PageSize.Tests.ps1 │ ├── Proxy.Tests.ps1 │ ├── PythonSource.Tests.ps1 │ ├── RubySource.Tests.ps1 │ ├── UserAgent.Tests.ps1 │ └── WindowsFeaturesSource.Tests.ps1 │ └── powershell-commands │ ├── Get-EnvironmentVariable.Tests.ps1 │ ├── Get-EnvironmentVariableNames.Tests.ps1 │ ├── Install-ChocolateyPath.Tests.ps1 │ ├── Set-EnvironmentVariable.Tests.ps1 │ ├── Test-ProcessAdminRights.Tests.ps1 │ ├── Uninstall-ChocolateyPath.Tests.ps1 │ └── Update-SessionEnvironment.Tests.ps1 ├── tools └── packages.config ├── update-cmdlet-documentation.ps1 └── update-nuget-client.ps1 /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | packages.config @chocolatey/chocolatey-credits-reviewers 2 | CREDITS.md @chocolatey/chocolatey-credits-reviewers 3 | /src/chocolatey.resources/tools/ @chocolatey/chocolatey-credits-reviewers 4 | /lib/ @chocolatey/chocolatey-credits-reviewers -------------------------------------------------------------------------------- /.github/workflows/vote-for-issue.yml: -------------------------------------------------------------------------------- 1 | name: 'Add Comment To New Issue' 2 | on: 3 | issues: 4 | types: opened 5 | permissions: 6 | contents: read 7 | issues: write 8 | 9 | jobs: 10 | new_issue_comment: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - uses: GrantBirki/comment@v2.1.0 14 | with: 15 | issue-number: ${{ github.event.issue.number }} 16 | body: | 17 | **To vote for this issue, please add a 👍 emoji to the issue description. Votes in comments are not recorded.** -------------------------------------------------------------------------------- /.notifications/discord.txt: -------------------------------------------------------------------------------- 1 | We have just released v{0} of the Chocolatey CLI! 2 | 3 | Release notes can be found here: 4 | 5 | https://docs.chocolatey.org/en-us/choco/release-notes#{1} -------------------------------------------------------------------------------- /.notifications/mastodon.txt: -------------------------------------------------------------------------------- 1 | We have just released v{0} of the Chocolatey CLI! Release notes can be found here: https://docs.chocolatey.org/en-us/choco/release-notes#{1}. -------------------------------------------------------------------------------- /.notifications/slack.txt: -------------------------------------------------------------------------------- 1 | @channel We have just released v{0} of the Chocolatey CLI! 2 | 3 | Release notes can be found here: 4 | 5 | https://docs.chocolatey.org/en-us/choco/release-notes#{1} -------------------------------------------------------------------------------- /.notifications/twitter.txt: -------------------------------------------------------------------------------- 1 | We have just released v{0} of the Chocolatey CLI! 2 | 3 | Release notes can be found here: 4 | 5 | https://docs.chocolatey.org/en-us/choco/release-notes#{1} -------------------------------------------------------------------------------- /.templates/contributors/contributor-details.sbn: -------------------------------------------------------------------------------- 1 | {{contributor.login}} -------------------------------------------------------------------------------- /.templates/contributors/contributors.sbn: -------------------------------------------------------------------------------- 1 | 2 | 3 | __Contributors__ 4 | 5 | {{ contributors.count }} contributors made this release possible. 6 | 7 | {{ for contributor in contributors.items 8 | include 'contributor-details' 9 | end }} -------------------------------------------------------------------------------- /.templates/contributors/create/footer.sbn: -------------------------------------------------------------------------------- 1 | {{ if config.create.include_footer }} 2 | 3 | ### {{ config.create.footer_heading }} 4 | 5 | {{ if config.create.milestone_replace_text 6 | replace_milestone_title config.create.footer_content config.create.milestone_replace_text milestone.target.title 7 | else 8 | config.create.footer_content 9 | end 10 | end }} 11 | -------------------------------------------------------------------------------- /.templates/contributors/index.sbn: -------------------------------------------------------------------------------- 1 | {{- 2 | include 'release-info' 3 | if milestone.target.description 4 | include 'milestone' 5 | end 6 | include 'issues' | string.rstrip 7 | if contributors.count > 0 8 | include 'contributors' 9 | end 10 | if template_kind == "CREATE" 11 | include 'create/footer' 12 | end 13 | ~}} 14 | -------------------------------------------------------------------------------- /.templates/contributors/issue-details.sbn: -------------------------------------------------------------------------------- 1 | ### {{ issue_label }} 2 | 3 | {{ for issue in issues.items[issue_label] 4 | include 'issue-note' 5 | end }} 6 | -------------------------------------------------------------------------------- /.templates/contributors/issues.sbn: -------------------------------------------------------------------------------- 1 | 2 | {{ for issue_label in issue_labels 3 | include 'issue-details' 4 | end }} 5 | -------------------------------------------------------------------------------- /.templates/contributors/milestone.sbn: -------------------------------------------------------------------------------- 1 | 2 | {{ milestone.target.description }} 3 | -------------------------------------------------------------------------------- /.templates/contributors/release-info.sbn: -------------------------------------------------------------------------------- 1 | {{ 2 | if issues.count > 0 3 | if commits.count > 0 4 | }}As part of this release we had [{{ commits.count }} {{ commits.count | string.pluralize "commit" "commits" }}]({{ commits.html_url }}) which resulted in [{{ issues.count }} {{ issues.count | string.pluralize "issue" "issues" }}]({{ milestone.target.html_url }}?{{ milestone.query_string }}) being closed. 5 | {{ else 6 | }}As part of this release we had [{{ issues.count }} {{ issues.count | string.pluralize "issue" "issues" }}]({{ milestone.target.html_url }}?{{ milestone.query_string }}) closed. 7 | {{ end 8 | else if commits.count > 0 9 | }}As part of this release we had [{{ commits.count }} {{ commits.count | string.pluralize "commit" "commits" }}]({{ commits.html_url }}). 10 | {{ end -}} 11 | -------------------------------------------------------------------------------- /.templates/default/create/footer.sbn: -------------------------------------------------------------------------------- 1 | {{ if config.create.include_footer }} 2 | 3 | ### {{ config.create.footer_heading }} 4 | 5 | {{ if config.create.milestone_replace_text 6 | replace_milestone_title config.create.footer_content config.create.milestone_replace_text milestone.target.title 7 | else 8 | config.create.footer_content 9 | end 10 | end }} 11 | -------------------------------------------------------------------------------- /.templates/default/index.sbn: -------------------------------------------------------------------------------- 1 | {{- 2 | include 'release-info' 3 | if milestone.target.description 4 | include 'milestone' 5 | end 6 | include 'issues' | string.rstrip 7 | if template_kind == "CREATE" 8 | include 'create/footer' 9 | end 10 | ~}} 11 | -------------------------------------------------------------------------------- /.templates/default/issue-details.sbn: -------------------------------------------------------------------------------- 1 | ### {{ issue_label }} 2 | 3 | {{ for issue in issues.items[issue_label] 4 | include 'issue-note' 5 | end }} 6 | -------------------------------------------------------------------------------- /.templates/default/issue-note.sbn: -------------------------------------------------------------------------------- 1 | - {{ issue.title }} - see [#{{ issue.public_number}}]({{ issue.html_url }}). 2 | -------------------------------------------------------------------------------- /.templates/default/issues.sbn: -------------------------------------------------------------------------------- 1 | 2 | {{ for issue_label in issue_labels 3 | include 'issue-details' 4 | end }} 5 | -------------------------------------------------------------------------------- /.templates/default/milestone.sbn: -------------------------------------------------------------------------------- 1 | 2 | {{ milestone.target.description }} 3 | -------------------------------------------------------------------------------- /.templates/default/release-info.sbn: -------------------------------------------------------------------------------- 1 | {{ 2 | if issues.count > 0 3 | if commits.count > 0 4 | }}As part of this release we had [{{ commits.count }} {{ commits.count | string.pluralize "commit" "commits" }}]({{ commits.html_url }}) which resulted in [{{ issues.count }} {{ issues.count | string.pluralize "issue" "issues" }}]({{ milestone.target.html_url }}?{{ milestone.query_string }}) being closed. 5 | {{ else 6 | }}As part of this release we had [{{ issues.count }} {{ issues.count | string.pluralize "issue" "issues" }}]({{ milestone.target.html_url }}?{{ milestone.query_string }}) closed. 7 | {{ end 8 | else if commits.count > 0 9 | }}As part of this release we had [{{ commits.count }} {{ commits.count | string.pluralize "commit" "commits" }}]({{ commits.html_url }}). 10 | {{ end -}} 11 | -------------------------------------------------------------------------------- /.templates/no/issues/create/footer.sbn: -------------------------------------------------------------------------------- 1 | {{ if config.create.include_footer }} 2 | 3 | ### {{ config.create.footer_heading }} 4 | 5 | {{ if config.create.milestone_replace_text 6 | replace_milestone_title config.create.footer_content config.create.milestone_replace_text milestone.target.title 7 | else 8 | config.create.footer_content 9 | end 10 | end }} 11 | -------------------------------------------------------------------------------- /.templates/no/issues/index.sbn: -------------------------------------------------------------------------------- 1 | {{- 2 | include 'release-info' 3 | if milestone.target.description 4 | include 'milestone' 5 | end 6 | include 'issues' | string.rstrip 7 | if template_kind == "CREATE" 8 | include 'create/footer' 9 | end 10 | ~}} 11 | -------------------------------------------------------------------------------- /.templates/no/issues/issues.sbn: -------------------------------------------------------------------------------- 1 | 2 | This release had no issues associated with it. 3 | -------------------------------------------------------------------------------- /.templates/no/issues/milestone.sbn: -------------------------------------------------------------------------------- 1 | 2 | {{ milestone.target.description }} 3 | -------------------------------------------------------------------------------- /.templates/no/issues/release-info.sbn: -------------------------------------------------------------------------------- 1 | {{ 2 | if commits.count > 0 3 | }}As part of this release we had [{{ commits.count }} {{ commits.count | string.pluralize "commit" "commits" }}]({{ commits.html_url }}). 4 | {{ end -}} 5 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "yzhang.markdown-all-in-one" 4 | ] 5 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "[powershell]": { 3 | "files.encoding": "utf8bom", 4 | }, 5 | "markdown.extension.toc.levels": "2..6" 6 | } -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Chocolatey Open Source CHANGELOG 2 | 3 | See all - https://docs.chocolatey.org/en-us/choco/release-notes -------------------------------------------------------------------------------- /CHANGELOG_LICENSED.md: -------------------------------------------------------------------------------- 1 | # Chocolatey Licensed CHANGELOG 2 | 3 | See all - https://docs.chocolatey.org/en-us/licensed-extension/release-notes -------------------------------------------------------------------------------- /GitVersion.yml: -------------------------------------------------------------------------------- 1 | next-version: 2.0.0 -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 - 2021 Chocolatey Software, Inc. 2 | Copyright (c) 2011 - 2017 RealDimensions Software, LLC 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | 16 | Additional legal information and licenses used by Chocolatey CLI can be 17 | found in the CREDITS file or at 18 | https://github.com/chocolatey/choco/blob/develop/docs/legal/CREDITS.md 19 | -------------------------------------------------------------------------------- /build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set psscript="%~dp0build.ps1" 3 | echo ================================================== 4 | echo ============= WRAP POWERSHELL SCRIPT ============= 5 | echo ================================================== 6 | 7 | echo calling %psscript% with args %* 8 | PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%psscript%' %*" 9 | set buildstatus=%ERRORLEVEL% 10 | echo ================================================== 11 | exit /b %buildstatus% -------------------------------------------------------------------------------- /build.debug.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set psscript="%~dp0build.ps1" 3 | echo ================================================== 4 | echo ============= WRAP POWERSHELL SCRIPT ============= 5 | echo ================================================== 6 | 7 | echo calling %psscript% with args %* 8 | PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%psscript%' -Configuration Debug %*" 9 | set buildstatus=%ERRORLEVEL% 10 | echo ================================================== 11 | exit /b %buildstatus% 12 | -------------------------------------------------------------------------------- /build.debug.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -eo pipefail 3 | 4 | ./build.sh --configuration=Debug $* -------------------------------------------------------------------------------- /build.official.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | set psscript="%~dp0build.ps1" 3 | echo ================================================== 4 | echo ============= WRAP POWERSHELL SCRIPT ============= 5 | echo ================================================== 6 | 7 | echo calling %psscript% with args %* 8 | PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%psscript%' -Configuration ReleaseOfficial %*" 9 | set buildstatus=%ERRORLEVEL% 10 | echo ================================================== 11 | exit /b %buildstatus% 12 | -------------------------------------------------------------------------------- /build.official.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -eo pipefail 3 | 4 | ./build.sh --configuration=ReleaseOfficial $* -------------------------------------------------------------------------------- /cake.config: -------------------------------------------------------------------------------- 1 | ; This is the default configuration file for Cake. 2 | ; This file was downloaded from https://github.com/cake-build/resources 3 | 4 | [Nuget] 5 | UseInProcessClient=true 6 | LoadDependencies=false 7 | 8 | [Paths] 9 | Tools=./tools 10 | Addins=./tools/Addins 11 | Modules=./tools/Modules 12 | 13 | [Settings] 14 | SkipVerification=true -------------------------------------------------------------------------------- /chocolatey.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/chocolatey.snk -------------------------------------------------------------------------------- /docker/choco_official_wrapper: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | mono /opt/chocolatey/choco.exe "$@" 4 | -------------------------------------------------------------------------------- /docker/choco_wrapper: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | mono /opt/chocolatey/choco.exe "$@" --allow-unofficial 4 | -------------------------------------------------------------------------------- /docs/images/branching-strategy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/docs/images/branching-strategy.png -------------------------------------------------------------------------------- /docs/logo/chocolatey.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/docs/logo/chocolatey.ico -------------------------------------------------------------------------------- /docs/logo/chocolateyicon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/docs/logo/chocolateyicon.gif -------------------------------------------------------------------------------- /docs/logo/chocolateyicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/docs/logo/chocolateyicon.png -------------------------------------------------------------------------------- /lib/PowerShell/System.Management.Automation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/lib/PowerShell/System.Management.Automation.dll -------------------------------------------------------------------------------- /lib/Rhino.Licensing.1.4.1/lib/net40/Rhino.Licensing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/lib/Rhino.Licensing.1.4.1/lib/net40/Rhino.Licensing.dll -------------------------------------------------------------------------------- /lib/Rhino.Licensing.1.4.1/lib/net40/acknowledgements.txt: -------------------------------------------------------------------------------- 1 | Rhino Licensing is making use of the excellent log4net logging framework -------------------------------------------------------------------------------- /nuspec/chocolatey/chocolatey/tools/chocolateyInstall/choco.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/nuspec/chocolatey/chocolatey/tools/chocolateyInstall/choco.exe.ignore -------------------------------------------------------------------------------- /setup.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | SET DIR=%~dp0% 4 | 5 | %windir%\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy unrestricted -Command "$Error.Clear();& '%DIR%setup.ps1' %*;Exit $Error.Count + $LastExitCode" 6 | 7 | pause -------------------------------------------------------------------------------- /setup.ps1: -------------------------------------------------------------------------------- 1 | ### install chocolatey ### 2 | if (-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")) { 3 | Invoke-Expression ((New-Object net.webclient).DownloadString("https://community.chocolatey.org/install.ps1")) 4 | } 5 | 6 | choco install dotnetfx -y 7 | choco install visualstudio2019buildtools -y 8 | choco install netfx-4.8-devpack -y 9 | choco install dotnet-sdk -y 10 | -------------------------------------------------------------------------------- /src/chocolatey.console/ilmerge.internalize.ignore.txt: -------------------------------------------------------------------------------- 1 | chocolatey.* 2 | NuGet.* 3 | SimpleInjector.* 4 | Rhino.Licensing.* 5 | log4net.* 6 | Microsoft.Web.XmlTransform.* -------------------------------------------------------------------------------- /src/chocolatey.console/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/chocolatey.install/assets/WiXUIDialogBmp.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.install/assets/WiXUIDialogBmp.bmp -------------------------------------------------------------------------------- /src/chocolatey.install/assets/WixUIBannerBmp.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.install/assets/WixUIBannerBmp.bmp -------------------------------------------------------------------------------- /src/chocolatey.install/assets/choco.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.install/assets/choco.ico -------------------------------------------------------------------------------- /src/chocolatey.resources/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 Chocolatey Software, Inc. 2 | Copyright (c) 2011 - 2017 RealDimensions Software, LLC 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. -------------------------------------------------------------------------------- /src/chocolatey.resources/chocolatey.resources.README.txt: -------------------------------------------------------------------------------- 1 | This is meant to be temporary. -------------------------------------------------------------------------------- /src/chocolatey.resources/redirects/choco.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.resources/redirects/choco.exe -------------------------------------------------------------------------------- /src/chocolatey.resources/redirects/choco.exe.ignore: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/chocolatey.resources/tools/7z.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.resources/tools/7z.dll -------------------------------------------------------------------------------- /src/chocolatey.resources/tools/7z.dll.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/chocolatey.resources/tools/7z.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.resources/tools/7z.exe -------------------------------------------------------------------------------- /src/chocolatey.resources/tools/7z.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.resources/tools/7z.exe.ignore -------------------------------------------------------------------------------- /src/chocolatey.resources/tools/7z.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/chocolatey.resources/tools/checksum.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.resources/tools/checksum.exe -------------------------------------------------------------------------------- /src/chocolatey.resources/tools/checksum.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/chocolatey.resources/tools/checksum.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.resources/tools/checksum.exe.ignore -------------------------------------------------------------------------------- /src/chocolatey.resources/tools/checksum.license.txt: -------------------------------------------------------------------------------- 1 | CheckSum is licensed as Apache v2 - https://raw.github.com/ferventcoder/checksum/master/LICENSE -------------------------------------------------------------------------------- /src/chocolatey.resources/tools/shimgen.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.resources/tools/shimgen.exe -------------------------------------------------------------------------------- /src/chocolatey.resources/tools/shimgen.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.resources/tools/shimgen.exe.ignore -------------------------------------------------------------------------------- /src/chocolatey.slnf: -------------------------------------------------------------------------------- 1 | { 2 | "solution": { 3 | "path": "chocolatey.sln", 4 | "projects": [ 5 | "Chocolatey.PowerShell\\Chocolatey.PowerShell.csproj", 6 | "chocolatey.console\\chocolatey.console.csproj", 7 | "chocolatey.resources\\chocolatey.resources.csproj", 8 | "chocolatey.tests.integration\\chocolatey.tests.integration.csproj", 9 | "chocolatey.tests\\chocolatey.tests.csproj", 10 | "chocolatey\\chocolatey.csproj" 11 | ] 12 | } 13 | } -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/badpackage/1.0/badpackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | badpackage 5 | 1.0 6 | badpackage 7 | Rob Reynolds 8 | Rob Reynolds 9 | false 10 | badpackage - This package errors during install. That is its only purpose 11 | badpackage - This package errors during install 12 | badpackage 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/badpackage/1.0/tools/chocolateyInstall.ps1: -------------------------------------------------------------------------------- 1 | $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" 2 | 3 | "simple file" | Out-File "$toolsDir\simplefile.txt" -Force 4 | 5 | Write-Output "This is $packageName v$packageVersion being installed to `n '$packageFolder'." 6 | Write-Host "PowerShell Version is '$($PSVersionTable.PSVersion)' and CLR Version is '$($PSVersionTable.CLRVersion)'." 7 | Write-Host "Execution Policy is '$(Get-ExecutionPolicy)'." 8 | Write-Host "PSScriptRoot is '$PSScriptRoot'." 9 | Write-Debug "A debug message." 10 | Write-Verbose "Yo!" 11 | Write-Warning "A warning!" 12 | Write-Error "Oh no! An error" 13 | throw "We had an error captain!" 14 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/badpackage/1.0/tools/chocolateyUninstall.ps1: -------------------------------------------------------------------------------- 1 | $packageName = 'badpackage' 2 | 3 | Write-Host "Ya!" 4 | Write-Debug "A debug message" 5 | Write-Warning "A warning!" 6 | Write-Error "Oh no! An error" 7 | throw "We had an error captain!" 8 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/badpackage/2.0/badpackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | badpackage 5 | 2.0 6 | badpackage 7 | Rob Reynolds 8 | Rob Reynolds 9 | false 10 | badpackage - This package errors during install. That is its only purpose 11 | badpackage - This package errors during install 12 | badpackage 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/badpackage/2.0/tools/chocolateyInstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "This is $packageName v$packageVersion being installed to `n '$packageFolder'." 2 | Write-Host "PowerShell Version is '$($PSVersionTable.PSVersion)' and CLR Version is '$($PSVersionTable.CLRVersion)'." 3 | Write-Host "Execution Policy is '$(Get-ExecutionPolicy)'." 4 | Write-Host "PSScriptRoot is '$PSScriptRoot'." 5 | Write-Debug "A debug message." 6 | Write-Verbose "Yo!" 7 | Write-Warning "A warning!" 8 | Write-Error "Oh no! An error" 9 | throw "We had an error captain!" 10 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/badpackage/2.0/tools/chocolateyUninstall.ps1: -------------------------------------------------------------------------------- 1 | $packageName = 'badpackage' 2 | 3 | Write-Host "Ya!" 4 | Write-Debug "A debug message" 5 | Write-Warning "A warning!" 6 | Write-Error "Oh no! An error" 7 | throw "We had an error captain!" 8 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/conflict_with_dependency_tree/childdependencywithlooserversiondependency/1.0.0/childdependencywithlooserversiondependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | childdependencywithlooserversiondependency 5 | 1.0.0 6 | __REPLACE_AUTHORS_OF_SOFTWARE__ 7 | __REPLACE_YOUR_NAME__ 8 | __REPLACE__ 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/conflict_with_dependency_tree/toplevelhasexactversiondependency/1.0.0/toplevelhasexactversiondependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | toplevelhasexactversiondependency 5 | 1.0.0 6 | __REPLACE_AUTHORS_OF_SOFTWARE__ 7 | __REPLACE_YOUR_NAME__ 8 | __REPLACE__ 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/conflictingdependency/1.0.1/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/conflictingdependency/1.0.1/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/conflictingdependency/2.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/conflictingdependency/2.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/conflictingdependency/2.1.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/conflictingdependency/2.1.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.0.1/hasdependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | hasdependency 5 | 1.0.1 6 | hasdependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | 14 | hasdependency admin 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.0.1/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.0.1/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.1.0/hasdependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | hasdependency 5 | 1.1.0 6 | hasdependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | 14 | hasdependency admin 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.1.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.1.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.5.0/hasdependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | hasdependency 5 | 1.5.0 6 | hasdependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | 14 | hasdependency admin 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.5.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.5.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.6.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/1.6.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/2.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/2.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/2.0.1/hasdependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | hasdependency 5 | 2.0.1 6 | hasdependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | 14 | hasdependency admin 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/2.0.1/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/2.0.1/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/2.1.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/hasdependency/2.1.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/1.0.0/isdependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isdependency 5 | 1.0.0 6 | isdependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isdependency admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/1.0.1/isdependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isdependency 5 | 1.0.1 6 | isdependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isdependency admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/1.0.1/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/1.0.1/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/1.1.0/isdependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isdependency 5 | 1.1.0 6 | isdependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isdependency admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/1.1.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/1.1.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/2.0.0/isdependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isdependency 5 | 2.0.0 6 | isdependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isdependency admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/2.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/2.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/2.1.0/isdependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isdependency 5 | 2.1.0 6 | isdependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isdependency admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/2.1.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isdependency/2.1.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.0.0-beta/isexactversiondependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isexactversiondependency 5 | 1.0.0-beta 6 | isexactversiondependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isexactversiondependency admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.0.0-beta/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.0.0-beta/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.0.0/isexactversiondependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isexactversiondependency 5 | 1.0.0 6 | isexactversiondependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isexactversiondependency admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.0.1/isexactversiondependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isexactversiondependency 5 | 1.0.1 6 | isexactversiondependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isexactversiondependency admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.0.1/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.0.1/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.1.0/isexactversiondependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isexactversiondependency 5 | 1.1.0 6 | isexactversiondependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isexactversiondependency admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.1.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/1.1.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/2.0.0/isexactversiondependency.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isexactversiondependency 5 | 2.0.0 6 | isexactversiondependency 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isexactversiondependency admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/2.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependencies/isexactversiondependency/2.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/hasdependencywithbeforemodify/1.0.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Ran BeforeModify: $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/hasdependencywithbeforemodify/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/hasdependencywithbeforemodify/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/hasdependencywithbeforemodify/1.0.0/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | This package is used to test out upgrade behaviour with beforeModify scripts in play for the main package and dependencies. -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/hasdependencywithbeforemodify/2.0.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Ran BeforeModify: $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/hasdependencywithbeforemodify/2.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/hasdependencywithbeforemodify/2.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/hasdependencywithbeforemodify/2.0.0/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | This package is used to test out upgrade behaviour with beforeModify scripts in play for the main package and dependencies. -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/isdependencywithbeforemodify/1.0.0/isdependencywithbeforemodify.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isdependencywithbeforemodify 5 | 1.0.0 6 | isdependencywithbeforemodify 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isdependencywithbeforemodify admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/isdependencywithbeforemodify/1.0.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Ran BeforeModify: $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/isdependencywithbeforemodify/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/isdependencywithbeforemodify/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/isdependencywithbeforemodify/1.0.0/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | This package is used to test out upgrade behaviour with beforeModify scripts in play for the main package and dependencies. -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/isdependencywithbeforemodify/2.0.0/isdependencywithbeforemodify.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | isdependencywithbeforemodify 5 | 2.0.0 6 | isdependencywithbeforemodify 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | isdependencywithbeforemodify admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/isdependencywithbeforemodify/2.0.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Ran BeforeModify: $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/isdependencywithbeforemodify/2.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/isdependencywithbeforemodify/2.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/dependenciesbeforemodify/isdependencywithbeforemodify/2.0.0/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | This package is used to test out upgrade behaviour with beforeModify scripts in play for the main package and dependencies. -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/exactpackage/exactpackage.dontfind/1.0.0/exactpackage.dontfind.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | exactpackage.dontfind 5 | 1.0.0 6 | exactpackage.dontfind 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | exactpackage.dontfind admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/exactpackage/exactpackage.dontfind/1.0.0/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | when running choco list exactpackage -e, this package should not be returned. -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/exactpackage/exactpackage/0.9.0/exactpackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | exactpackage 5 | 0.9.0 6 | exactpackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | exactpackage admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/exactpackage/exactpackage/0.9.0/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | when running choco list exactpackage -e --all, this package should be in the resulting list. -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/exactpackage/exactpackage/1.0.0-beta1/exactpackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | exactpackage 5 | 1.0.0-beta1 6 | exactpackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | exactpackage admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/exactpackage/exactpackage/1.0.0-beta1/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | When running choco list exactpackage -a --all --pre, this package should be in the returned results. -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/exactpackage/exactpackage/1.0.0/exactpackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | exactpackage 5 | 1.0.0 6 | exactpackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | exactpackage admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/exactpackage/exactpackage/1.0.0/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | when running choco list exactpackage -e, this is the only package that should be returned. -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/installpackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | installpackage 5 | 0.9.9+build.543 6 | installpackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | installpackage admin 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/Casemismatch.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/Casemismatch.exe.ignore -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/casemismatch.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/casemismatch.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" 2 | "simple file" | Out-File "$toolsDir\simplefile.txt" -force 3 | 4 | Write-Output "This is $packageName v$packageVersion being installed to `n $packageFolder" 5 | Write-Host "Ya!" 6 | Write-Debug "A debug message" 7 | Write-Verbose "Yo!" 8 | Write-Warning "A warning!" 9 | 10 | Write-Output "$packageName v$packageVersion has been installed to `n $packageFolder" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/console.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/graphical.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/graphical.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/graphical.exe.gui: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/graphical.exe.gui -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/not.installed.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/not.installed.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/not.installed.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/0.9.9+build.543/tools/not.installed.exe.ignore -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/installpackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | installpackage 5 | 1.0.0-alpha.34 6 | installpackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | installpackage admin 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/Casemismatch.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/Casemismatch.exe.ignore -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/casemismatch.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/casemismatch.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" 2 | "simple file" | Out-File "$toolsDir\simplefile.txt" -force 3 | 4 | Write-Output "This is $packageName v$packageVersion being installed to `n $packageFolder" 5 | Write-Host "Ya!" 6 | Write-Debug "A debug message" 7 | Write-Verbose "Yo!" 8 | Write-Warning "A warning!" 9 | 10 | Write-Output "$packageName v$packageVersion has been installed to `n $packageFolder" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/console.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/graphical.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/graphical.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/graphical.exe.gui: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/graphical.exe.gui -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/not.installed.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/not.installed.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/not.installed.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0-alpha.34/tools/not.installed.exe.ignore -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0/installpackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | installpackage 5 | 1.0.0 6 | installpackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | installpackage admin 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/Casemismatch.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/Casemismatch.exe.ignore -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/casemismatch.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/casemismatch.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" 2 | "simple file" | Out-File "$toolsDir\simplefile.txt" -Force 3 | 4 | Write-Output "This is $packageName v$packageVersion being installed to `n $packageFolder" 5 | Write-Host "Ya!" 6 | Write-Debug "A debug message" 7 | Write-Verbose "Yo!" 8 | Write-Warning "A warning!" 9 | 10 | Write-Output "$packageName v$packageVersion has been installed to `n $packageFolder" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/console.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/graphical.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/graphical.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/graphical.exe.gui: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/graphical.exe.gui -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/not.installed.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/not.installed.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/not.installed.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/installpackage/1.0.0/tools/not.installed.exe.ignore -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/nonterminatingerror/1.0/nonterminatingerror.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | nonterminatingerror 5 | 1.0 6 | Rob Reynolds 7 | Rob Reynolds 8 | nonterminating - This package errors during install with a non-terminating error 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/nonterminatingerror/1.0/tools/chocolateyInstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Error "Oh no! An error" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/portablepackage/1.0.0/portablepackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | portablepackage 5 | 1.0.0 6 | portablepackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | portablepackage admin 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/Casemismatch.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/Casemismatch.exe.ignore -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/casemismatch.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/casemismatch.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/console.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/graphical.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/graphical.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/graphical.exe.gui: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/graphical.exe.gui -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/not.installed.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/not.installed.exe -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/not.installed.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/portablepackage/1.0.0/tools/not.installed.exe.ignore -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/dontrun.ps1: -------------------------------------------------------------------------------- 1 | Throw "This script should not be run" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-beforemodify-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-beforemodify-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-beforemodify-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-install-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-install-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-install-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-uninstall-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-uninstall-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-uninstall-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-upgrade-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-upgrade-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/post-upgrade-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-beforemodify-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-beforemodify-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-beforemodify-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-install-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-install-doesnotexist.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-install-doesnotexist.ps1 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-install-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-install-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-uninstall-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-uninstall-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-uninstall-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-upgrade-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-upgrade-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/hook/pre-upgrade-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/1.0.0/scriptpackage.hook.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | scriptpackage.hook 6 | 1.0.0 7 | scriptpackage.hook 8 | TheCakeIsNaOH 9 | scriptpackage.hook 10 | Package with various hook scripts 11 | Package with various hook scripts. Intended to test 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/dontrun.ps1: -------------------------------------------------------------------------------- 1 | Throw "This script should not be run" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-beforemodify-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-beforemodify-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-beforemodify-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-install-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-install-doesnotexist.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-install-doesnotexist.ps1 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-install-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-install-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-uninstall-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-uninstall-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-uninstall-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-upgrade-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-upgrade-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/post-upgrade-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-beforemodify-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-beforemodify-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-beforemodify-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-install-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-install-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-install-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-uninstall-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-uninstall-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-uninstall-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-upgrade-all.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-upgrade-installpackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/hook/pre-upgrade-upgradepackage.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$($MyInvocation.MyCommand.Name) hook ran for $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/scriptpackage.hook/2.0.0/scriptpackage.hook.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | scriptpackage.hook 6 | 2.0.0 7 | scriptpackage.hook 8 | TheCakeIsNaOH 9 | scriptpackage.hook 10 | Package with various hook scripts 11 | Package with various hook scripts. Intended to test 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/testing.packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 11 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/unsupportedelements/1.0.0/icon.png: -------------------------------------------------------------------------------- 1 | Text here -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/unsupportedelements/1.0.0/readme.md: -------------------------------------------------------------------------------- 1 | Text here -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/unsupportedelements/1.0.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" 2 | 3 | throw "This should not break the upgrade/uninstall" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/unsupportedelements/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/unsupportedelements/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/unsupportedelements/1.1.0/icon.png: -------------------------------------------------------------------------------- 1 | Text here -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/unsupportedelements/1.1.0/readme.md: -------------------------------------------------------------------------------- 1 | Text here -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/unsupportedelements/1.1.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/unsupportedelements/1.1.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/unsupportedelements/1.1.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.0.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" 2 | 3 | throw "This should not break the upgrade/uninstall" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.0.0/tools/console.exe: -------------------------------------------------------------------------------- 1 | 1.0.0 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.0.0/tools/console.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.0.0/tools/console.exe.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.0.0/tools/graphical.exe: -------------------------------------------------------------------------------- 1 | 1.0.0 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.0.0/tools/graphical.exe.gui: -------------------------------------------------------------------------------- 1 | 1.0.0 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.0.0/upgradepackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | upgradepackage 5 | 1.0.0 6 | upgradepackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | upgradepackage admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.0/tools/console.exe: -------------------------------------------------------------------------------- 1 | 1.1.0 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.0/tools/console.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.0/tools/console.exe.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.0/tools/graphical.exe: -------------------------------------------------------------------------------- 1 | 1.1.0 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.0/tools/graphical.exe.gui: -------------------------------------------------------------------------------- 1 | 1.1.0 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.0/upgradepackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | upgradepackage 5 | 1.1.0 6 | upgradepackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | upgradepackage admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta.1/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta.1/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta.1/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta.1/tools/console.exe: -------------------------------------------------------------------------------- 1 | 1.1.1-beta.1 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta.1/tools/console.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta.1/tools/console.exe.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta.1/tools/graphical.exe: -------------------------------------------------------------------------------- 1 | 1.1.1-beta.1 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta.1/tools/graphical.exe.gui: -------------------------------------------------------------------------------- 1 | 1.1.1-beta.1 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta.1/upgradepackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | upgradepackage 5 | 1.1.1-beta.1 6 | upgradepackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | upgradepackage admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/console.exe: -------------------------------------------------------------------------------- 1 | 1.1.1-beta -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/console.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/console.exe.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/graphical.exe: -------------------------------------------------------------------------------- 1 | 1.1.1-beta -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/tools/graphical.exe.gui: -------------------------------------------------------------------------------- 1 | 1.1.1-beta -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta/upgradepackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | upgradepackage 5 | 1.1.1-beta 6 | upgradepackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | upgradepackage admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/console.exe: -------------------------------------------------------------------------------- 1 | 1.1.1-beta2 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/console.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/console.exe.config.install.xdt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/graphical.exe: -------------------------------------------------------------------------------- 1 | 1.1.1-beta2 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/tools/graphical.exe.gui: -------------------------------------------------------------------------------- 1 | 1.1.1-beta2 -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/upgradepackage/1.1.1-beta2/upgradepackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | upgradepackage 5 | 1.1.1-beta2 6 | upgradepackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | upgradepackage admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/uppercase/1.0.0/UpperCase.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | UpperCase 5 | 1.0.0 6 | UpperCase 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | UpperCase admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/uppercase/1.0.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/uppercase/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/uppercase/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/uppercase/1.1.0/UpperCase.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | UpperCase 5 | 1.1.0 6 | UpperCase 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | 13 | UpperCase admin 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/uppercase/1.1.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/uppercase/1.1.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/context/uppercase/1.1.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/infrastructure/filesystem/CopyMe.txt: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/infrastructure/filesystem/MoveMe.txt: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /src/chocolatey.tests.integration/infrastructure/filesystem/context/DeleteMe.txt: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /src/chocolatey.tests/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/chocolatey/ilmerge.internalize.ignore.dll.txt: -------------------------------------------------------------------------------- 1 | chocolatey.* 2 | NuGet.* 3 | SimpleInjector.* 4 | Rhino.Licensing.* -------------------------------------------------------------------------------- /src/chocolatey/infrastructure.app/configuration/chocolatey.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/helpers/common/Archives/Expand-ZipArchive.ps1: -------------------------------------------------------------------------------- 1 | function Expand-ZipArchive { 2 | <# 3 | .Synopsis 4 | Helper function to extract the contents of an archive without a .zip extension. 5 | #> 6 | [CmdletBinding()] 7 | param( 8 | # The intunewin file to extract 9 | [Parameter(Position = 1, Mandatory = $true)] 10 | $Source, 11 | # The location to put the files when done. 12 | [Parameter(Position = 2, Mandatory = $true)] 13 | $Destination 14 | ) 15 | $zipFile = "$Source.zip" 16 | Rename-Item -Path $Source -NewName $zipFile 17 | try { 18 | Expand-Archive -Path $zipFile -DestinationPath $Destination 19 | } 20 | finally { 21 | Rename-Item -Path $zipFile -NewName $Source 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Disable-ChocolateyFeature.ps1: -------------------------------------------------------------------------------- 1 | function Disable-ChocolateyFeature { 2 | [Alias('Disable-ChocoFeature')] 3 | [CmdletBinding()] 4 | param( 5 | [Parameter(Mandatory = $true)] 6 | [string[]] 7 | $Name 8 | ) 9 | Set-ChocolateyFeature -Name $Name -Disable 10 | } 11 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Disable-ChocolateySource.ps1: -------------------------------------------------------------------------------- 1 | # TODO: Refactor the *-ChocolateySource functions to have a Get-ChocolateySource that can be piped to the Enable and Disable 2 | function Disable-ChocolateySource { 3 | [CmdletBinding()] 4 | param( 5 | [Parameter()] 6 | [string]$Name = "*", 7 | 8 | [Parameter()] 9 | [switch]$All 10 | ) 11 | 12 | $CurrentSources = Get-ChocolateySource -Name $Name 13 | foreach ($Source in $CurrentSources) { 14 | $null = Invoke-Choco source disable --name $Source.Name 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Enable-ChocolateyFeature.ps1: -------------------------------------------------------------------------------- 1 | function Enable-ChocolateyFeature { 2 | [Alias('Enable-ChocoFeature')] 3 | [CmdletBinding()] 4 | param( 5 | [Parameter(Mandatory = $true)] 6 | [string[]] 7 | $Name 8 | ) 9 | 10 | Set-ChocolateyFeature -Name $Name -Enable 11 | } 12 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Enable-ChocolateySource.ps1: -------------------------------------------------------------------------------- 1 | # TODO: Refactor the *-ChocolateySource functions to have a Get-ChocolateySource that can be piped to the Enable and Disable 2 | function Enable-ChocolateySource { 3 | [CmdletBinding()] 4 | param( 5 | [Parameter()] 6 | [string]$Name = "*", 7 | 8 | [Parameter()] 9 | [switch]$All 10 | ) 11 | # Significantly weird behaviour with piping this source list by property name. 12 | $CurrentSources = Get-ChocolateySource -Name $Name 13 | foreach ($Source in $CurrentSources) { 14 | $null = Invoke-Choco source enable --name $Source.Name 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Get-ChocoPath.ps1: -------------------------------------------------------------------------------- 1 | function Get-ChocoPath { 2 | <# 3 | .Synopsis 4 | Helper function to resolve the path to the chocolatey executable, or use an environment variable with the path. 5 | #> 6 | if (Test-Path Env:\CHOCO_EXECUTABLE) { 7 | return $env:CHOCO_EXECUTABLE 8 | } 9 | else { 10 | "$env:ChocolateyInstall\bin\choco.exe" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Get-ChocolateyInstalledPackages.ps1: -------------------------------------------------------------------------------- 1 | function Get-ChocolateyInstalledPackages { 2 | (Invoke-Choco list -r).Lines | ConvertFrom-ChocolateyOutput -Command List 3 | } 4 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Get-ChocolateyLicense.ps1: -------------------------------------------------------------------------------- 1 | function Get-ChocolateyLicense { 2 | if ($script:LicenseType -and $script:LicenseType -ne '') { 3 | return $script:LicenseType 4 | } 5 | 6 | $package = (Invoke-Choco list --limitoutput).Lines | 7 | ConvertFrom-ChocolateyOutput -Command List | 8 | Where-Object Name -Match "^chocolatey-license-" | 9 | Select-Object -First 1 # We only expect one package, so we only take the first result 10 | 11 | if ($package) { 12 | $script:LicenseType = $package.Name -replace "^chocolatey-license-" 13 | } 14 | else { 15 | $script:LicenseType = '' 16 | } 17 | 18 | $script:LicenseType 19 | } 20 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Get-ChocolateySource.ps1: -------------------------------------------------------------------------------- 1 | function Get-ChocolateySource { 2 | [CmdletBinding()] 3 | param( 4 | [Parameter()] 5 | [string]$Name = "*" 6 | ) 7 | # Significantly weird behaviour with piping this source list by property name. 8 | (Invoke-Choco source list -r).Lines | ConvertFrom-ChocolateyOutput -Command SourceList | Where-Object { 9 | $_.Name -like $Name 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Get-ChocolateyTestLocation.ps1: -------------------------------------------------------------------------------- 1 | function Get-ChocolateyTestLocation { 2 | <# 3 | .SYNOPSIS 4 | Gets the last set chocolatey test location. 5 | This is usually set when initializing the original 6 | location before creating snapshots, 7 | otherwise the value is typically null. 8 | #> 9 | [CmdletBinding()] 10 | param() 11 | 12 | $script:chocolateyTestLocation 13 | } 14 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Get-ChocolateyVersion.ps1: -------------------------------------------------------------------------------- 1 | function Get-ChocolateyVersion { 2 | <# 3 | .Synopsis 4 | Returns the current Chocolatey version as SemVer 5 | #> 6 | [Alias('Get-ChocoVersion')] 7 | [OutputType('NuGet.Versioning.NuGetVersion')] 8 | [CmdletBinding()] 9 | param() 10 | if (-not $script:runningVersion) { 11 | [NuGet.Versioning.NuGetVersion]$script:runningVersion = (Invoke-Choco --version).Lines | Where-Object { $_ -Match "^\d+\.[\d\.]+" } | Select-Object -First 1 12 | } 13 | 14 | $script:runningVersion 15 | } 16 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Get-ExpectedChocolateyHeader.ps1: -------------------------------------------------------------------------------- 1 | function Get-ExpectedChocolateyHeader { 2 | $packages = (Invoke-Choco list --limitoutput).Lines | 3 | Where-Object { $_ -NotMatch 'please upgrade' } | 4 | ConvertFrom-ChocolateyOutput -Command List 5 | 6 | $licenseType = Get-ChocolateyLicense 7 | 8 | if ($licenseType -eq "msp") { 9 | $licenseType = "ManagedServiceProvider" 10 | } 11 | elseif ($licenseType -eq 'education') { 12 | $licenseType = "Educational" 13 | } 14 | elseif ($licenseType -eq 'trial') { 15 | $licenseType = "BusinessTrial" 16 | } 17 | 18 | if ($packages.Name -contains "chocolatey.extension") { 19 | # hard coded license type for now 20 | return "Chocolatey v$(Get-ChocolateyVersion) $licenseType" 21 | } 22 | else { 23 | return "Chocolatey v$(Get-ChocolateyVersion)" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Get-OriginalChocolateyPath.ps1: -------------------------------------------------------------------------------- 1 | function Get-OriginalChocolateyPath { 2 | [CmdletBinding()] 3 | param() 4 | 5 | return $script:originalChocolateyInstall 6 | } 7 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Remove-ChocolateyTestInstall.ps1: -------------------------------------------------------------------------------- 1 | function Remove-ChocolateyTestInstall { 2 | [CmdletBinding()] 3 | param() 4 | 5 | Remove-ChocolateyInstallSnapshot -RemoveAll 6 | $chocolateyTestDirectory = Get-ChocolateyTestLocation 7 | 8 | if (Test-Path $chocolateyTestDirectory) { 9 | $null = Remove-Item $chocolateyTestDirectory -Force -Recurse 10 | } 11 | elseif (!$chocolateyTestDirectory) { 12 | Write-Warning "No test directory was found!" 13 | } 14 | 15 | $env:ChocolateyInstall = Get-OriginalChocolateyPath 16 | Set-ChocolateyTestLocation -Directory $null 17 | } 18 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Set-ChocolateyTestLocation.ps1: -------------------------------------------------------------------------------- 1 | function Set-ChocolateyTestLocation { 2 | <# 3 | .SYNOPSIS 4 | Sets the specified directory as the test 5 | location directory, to be used later in processing. 6 | #> 7 | [CmdletBinding(SupportsShouldProcess, ConfirmImpact = "Low")] 8 | param( 9 | [string]$Directory 10 | ) 11 | 12 | # Recommendation from PSScriptAnalyzer to use SupportsShouldProcess 13 | if ($PSCmdlet.ShouldProcess($Directory)) { 14 | $script:chocolateyTestLocation = $Directory 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Test-ChocolateyVersionEqualOrHigherThan.ps1: -------------------------------------------------------------------------------- 1 | function Test-ChocolateyVersionEqualOrHigherThan { 2 | <# 3 | .Synopsis 4 | Helper function that can be used to assert whether the current 5 | Chocolatey version is equal to or higher than a certain threshold. 6 | #> 7 | [Alias('Test-ChocoVersionEqualOrHigherThan')] 8 | [CmdletBinding()] 9 | [OutputType([boolean])] 10 | param( 11 | [NuGet.Versioning.NuGetVersion]$Version 12 | ) 13 | if (-not $script:ChocolateyInstalledVersion) { 14 | $script:ChocolateyInstalledVersion = ((Invoke-Choco list -r).Lines | ConvertFrom-ChocolateyOutput -Command List | Where-Object Name -EQ 'chocolatey').Version 15 | } 16 | 17 | return Test-VersionEqualOrHigher -InstalledVersion $script:ChocolateyInstalledVersion -CompareVersion $Version 18 | } 19 | -------------------------------------------------------------------------------- /tests/helpers/common/Chocolatey/Test-HasNuGetV3Source.ps1: -------------------------------------------------------------------------------- 1 | function Test-HasNuGetV3Source { 2 | [CmdletBinding()] 3 | [OutputType([boolean])] 4 | param( 5 | ) 6 | if (-not $script:ChocolateyEnabledSources) { 7 | $script:ChocolateyEnabledSources = (Invoke-Choco source list --limitoutput).Lines | ConvertFrom-ChocolateyOutput -Command SourceList | Where-Object Disabled -NE $true 8 | } 9 | $null -ne ($script:ChocolateyEnabledSources | Where-Object Url -match 'index\.json') 10 | } 11 | -------------------------------------------------------------------------------- /tests/helpers/common/Get-TempDirectory.ps1: -------------------------------------------------------------------------------- 1 | function Get-TempDirectory { 2 | <# 3 | .SYNOPSIS 4 | Returns the temporary directory. 5 | #> 6 | [System.IO.Path]::GetTempPath() 7 | } 8 | -------------------------------------------------------------------------------- /tests/helpers/common/Logging/Clear-ChocoLogData.ps1: -------------------------------------------------------------------------------- 1 | function Clear-ChocoLogData { 2 | Remove-Item (Get-ChocoLogPath) 3 | } -------------------------------------------------------------------------------- /tests/helpers/common/Logging/Get-ChocoLogData.ps1: -------------------------------------------------------------------------------- 1 | function Get-ChocoLogData { 2 | # Strip out the date and other incidental data from the beginning of log lines 3 | $chocoLogData = (Get-Content (Get-ChocoLogPath)) -replace '^\d.* \[', '[' 4 | [PSCustomObject]@{ 5 | Lines = $chocoLogData 6 | String = $chocoLogData -join "`r`n" 7 | } 8 | } -------------------------------------------------------------------------------- /tests/helpers/common/Logging/Get-ChocoLogPath.ps1: -------------------------------------------------------------------------------- 1 | function Get-ChocoLogPath { 2 | <# 3 | .Synopsis 4 | Helper function to resolve the path to the chocolatey log, or use an environment variable with the path of the Chocolatey executable. 5 | #> 6 | if (Test-Path Env:\CHOCO_EXECUTABLE) { 7 | "$(Split-Path -Parent $env:CHOCO_EXECUTABLE)\logs\chocolatey.log" 8 | } 9 | else { 10 | "$env:ChocolateyInstall\logs\chocolatey.log" 11 | } 12 | } -------------------------------------------------------------------------------- /tests/helpers/common/NuGet.Versioning.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/helpers/common/NuGet.Versioning.dll -------------------------------------------------------------------------------- /tests/helpers/common/NuGet/Get-NuGetPaths.ps1: -------------------------------------------------------------------------------- 1 | function Get-NuGetPaths { 2 | @( 3 | "$env:localappdata\NuGet" 4 | "$(Get-TempDirectory)\NuGetScratch" 5 | "$env:userprofile\.nuget" 6 | "${env:programfiles(x86)}\NuGet" 7 | ) 8 | } 9 | -------------------------------------------------------------------------------- /tests/helpers/common/NuGet/Remove-NuGetPaths.ps1: -------------------------------------------------------------------------------- 1 | function Remove-NuGetPaths { 2 | $NuGetPathsToRemove = Get-NuGetPaths 3 | $ChocolateyNuGetPath = "$(Get-TempDirectory)\chocolatey-invalid" 4 | 5 | if (Test-Path $ChocolateyNuGetPath) { 6 | Remove-Item -Path $ChocolateyNuGetPath -Recurse -Force -ErrorAction Stop 7 | } 8 | 9 | $script:NuGetCleared = $true 10 | 11 | # If we're in Test Kitchen, we're going to remove the NuGet config files because we don't need to worry about a user's config 12 | if ($env:TEST_KITCHEN) { 13 | foreach ($path in $NuGetPathsToRemove) { 14 | if (Test-Path $path) { 15 | Remove-Item -Path $path -Recurse -Force -ErrorAction Stop 16 | } 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /tests/helpers/common/NuGet/Test-NuGetPaths.ps1: -------------------------------------------------------------------------------- 1 | function Test-NuGetPaths { 2 | Context 'NuGet directory tests' { 3 | BeforeDiscovery { 4 | $NuGetPathsToCheck = Get-NuGetPaths 5 | $ChocolateyNuGetPath = "$(Get-TempDirectory)chocolatey-invalid" 6 | } 7 | 8 | AfterAll { 9 | $script:NuGetCleared = $null 10 | } 11 | 12 | It 'Did not create <_> directory' -ForEach $NuGetPathsToCheck -Skip:((-not $env:TEST_KITCHEN)) { 13 | $script:NuGetCleared | Should -BeTrue -Because 'NuGet configurations were not removed before running tests' 14 | $_ | Should -Not -Exist 15 | } 16 | 17 | It "Did not create <_>" -ForEach $ChocolateyNuGetPath { 18 | $_ | Should -Not -Exist 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /tests/packages/MvcMusicStore/v1.0.0/mvcmusicstore-db/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Host "Software has been installed" 2 | -------------------------------------------------------------------------------- /tests/packages/MvcMusicStore/v1.0.0/mvcmusicstore-web/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Host "Software has been installed" 2 | -------------------------------------------------------------------------------- /tests/packages/MvcMusicStore/v1.2.0/mvcmusicstore-db/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Host "Software has been installed" 2 | -------------------------------------------------------------------------------- /tests/packages/MvcMusicStore/v1.2.0/mvcmusicstore-web/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Host "Software has been installed" 2 | -------------------------------------------------------------------------------- /tests/packages/add-path/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | $params = Get-PackageParameters 2 | $path = $params["Path"] 3 | $scope = $params["Scope"] 4 | 5 | if (-not $path) { 6 | throw "You must specify the package parameter /Path" 7 | } 8 | 9 | if (-not $scope) { 10 | $scope = "User" 11 | } 12 | 13 | Write-Host "Adding '$path' to PATH at scope $scope" 14 | 15 | Install-ChocolateyPath -PathToInstall $path -PathType $scope 16 | 17 | Write-Host "$scope PATH after install: $env:PATH" -------------------------------------------------------------------------------- /tests/packages/add-path/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | $params = Get-PackageParameters 2 | $path = $params["Path"] 3 | $scope = $params["Scope"] 4 | 5 | if (-not $path) { 6 | throw "You must specify the package parameter /Path" 7 | } 8 | 9 | if (-not $scope) { 10 | $scope = "User" 11 | } 12 | 13 | Write-Host "Removing '$path' from PATH at scope $scope" 14 | 15 | Uninstall-ChocolateyPath -PathToUninstall $path -PathType $scope 16 | 17 | Write-Host "$scope PATH after removal: $env:PATH" -------------------------------------------------------------------------------- /tests/packages/business-only-license/icons/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/packages/business-only-license/icons/icon.ico -------------------------------------------------------------------------------- /tests/packages/business-only-license/tools/7z1900-x64.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/packages/business-only-license/tools/7z1900-x64.exe -------------------------------------------------------------------------------- /tests/packages/business-only-license/tools/7z1900-x64.exe.ignore: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /tests/packages/circulardependency1/README.md: -------------------------------------------------------------------------------- 1 | # circulardependency1 2 | 3 | ## Purpose 4 | 5 | The purpose of this package is for testing of circular dependencies. Currently Chocolatey prevents them on a `choco install`, but choco-licensed `convert` and `push` commands currently don't prevent it. 6 | 7 | Current (as of October 1 2021) behaviour: 8 | 9 | * `choco install circulardependency1` results in an error indicating that a circular dependency has been detected. 10 | * `choco convert circulardependency1.0.0.1.nupkg --to intune` results in `intunewin` files being created 11 | * `choco push circulardependency1.0.0.1.intunewin` results in a circular loop indicating `circulardepency[12] is not in Intune` until the Intune authentication token expires at which point you'll be told it's expired. 12 | -------------------------------------------------------------------------------- /tests/packages/circulardependency1/circulardependency1.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | circulardependency1 5 | 0.0.1 6 | circulardependency1 (Install) 7 | Chocolatey Software 8 | circulardependency1 SPACE_SEPARATED 9 | Test of circular dependencies 10 | Circular dependencies are not supported by Chocolatey. `choco install` should fail when it encounters them. 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/packages/circulardependency2/README.md: -------------------------------------------------------------------------------- 1 | # circulardependency1 2 | 3 | ## Purpose 4 | 5 | The purpose of this package is for testing of circular dependencies. Currently Chocolatey prevents them on a `choco install`, but choco-licensed `convert` and `push` commands currently don't prevent it. 6 | 7 | Current (as of October 1 2021) behaviour: 8 | 9 | * `choco install circulardependency1` results in an error indicating that a circular dependency has been detected. 10 | * `choco convert circulardependency1.0.0.1.nupkg --to intune` results in `intunewin` files being created 11 | * `choco push circulardependency1.0.0.1.intunewin` results in a circular loop indicating `circulardepency[12] is not in Intune` until the Intune authentication token expires at which point you'll be told it's expired. 12 | -------------------------------------------------------------------------------- /tests/packages/circulardependency2/circulardependency2.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | circulardependency2 5 | 0.0.1 6 | circulardependency2 (Install) 7 | Chocolatey Software 8 | circulardependency1 SPACE_SEPARATED 9 | Test of circular dependencies 10 | Circular dependencies are not supported by Chocolatey. `choco install` should fail when it encounters them. 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/packages/dependencyfailure/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Host "I'm successful!" -------------------------------------------------------------------------------- /tests/packages/failingdependency/failingdependency.nuspec: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | failingdependency 5 | 1.0.0 6 | dependencyfailure (Install) 7 | __REPLACE_AUTHORS_OF_SOFTWARE_COMMA_SEPARATED__ 8 | https://_Software_Location_REMOVE_OR_FILL_OUT_ 9 | dependencyfailure admin SPACE_SEPARATED 10 | Package that fails to install. Used as part of dependency tree. 11 | Package that fails to install. Used as part of dependency tree. 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/packages/failingdependency/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Error "This should fail!" 2 | $env:ChocolateyExitCode = '15608' 3 | -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-custom-paths/0.0.1/get-chocolateyunzip-test.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | get-chocolateyunzip-custom-paths 5 | 0.0.1 6 | get-chocolateyunzip-custom-paths (Install) 7 | Test 8 | Test 9 | false 10 | Package to test Get-ChocolateyUnzip. Specifically designed for testing custom paths like those identified in https://github.com/chocolatey/chocolatey-licensed-issues/issues/284 11 | Package to test Get-ChocolateyUnzip 12 | get-chocolateyunzip issue test 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-custom-paths/0.0.1/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" 2 | $zipFileLocation = Join-Path $toolsDir "test.zip" 3 | $pp = Get-PackageParameters 4 | if ($pp['Destination']) { 5 | $destinationPath = $pp['Destination'] 6 | } 7 | else { 8 | $destinationPath = $env:TEMP 9 | } 10 | 11 | Get-ChocolateyUnzip -fileFullPath $zipFileLocation -destination $destinationPath 12 | -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-custom-paths/0.0.1/tools/test.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/packages/get-chocolateyunzip-custom-paths/0.0.1/tools/test.zip -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-licensed/README.md: -------------------------------------------------------------------------------- 1 | This package contains a commercial edition of the cmdlet `Get-ChocolateyUnzip`, and can be used to verify that installation with that cmdlet works as intended. 2 | 3 | Additionally it can be tested that the package will fail if being installed on FOSS Edition of Chocolatey. 4 | 5 | The package defines the license types `business`, `Education` and `professional` as being valid licenses. -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-licensed/TODO.txt: -------------------------------------------------------------------------------- 1 | =================================== 2 | TODO for get-chocolateyunzip-licensed 3 | =================================== 4 | 5 | This TODO has been generated after running Package Builder against Programs and Features. 6 | There are some things that are required to finish out the creation of this package. 7 | This doesn't serve as a complete list. 8 | 9 | 10 | This package needs the following items to be complete: 11 | * tools\ChocolateyInstall.ps1 - Set silent arguments 12 | -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-licensed/tools/cmake-3.21.2-windows-i386.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/packages/get-chocolateyunzip-licensed/tools/cmake-3.21.2-windows-i386.zip -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-licensed/tools/cmake-3.21.2-windows-i386/noop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/packages/get-chocolateyunzip-licensed/tools/cmake-3.21.2-windows-i386/noop -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-licensed/tools/cmake-3.21.2-windows-x86_64.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/packages/get-chocolateyunzip-licensed/tools/cmake-3.21.2-windows-x86_64.zip -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-licensed/tools/cmake-3.21.2-windows-x86_64/noop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/packages/get-chocolateyunzip-licensed/tools/cmake-3.21.2-windows-x86_64/noop -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-test/0.0.1/get-chocolateyunzip-test.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | get-chocolateyunzip-test 5 | 0.0.1 6 | get-chocolateyunzip-test (Install) 7 | Test 8 | Test 9 | false 10 | Package to test Get-ChocolateyUnzip 11 | Package to test Get-ChocolateyUnzip 12 | get-chocolateyunzip issue test 13 | 14 | -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-test/0.0.1/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" 2 | $zipFileLocation = Join-Path $toolsDir "test.zip" 3 | 4 | if ((Get-Location) -eq $null) { 5 | Write-Warning "Working Directory not set. Setting to '$env:ChocolateyInstall'" 6 | Set-Location $env:ChocolateyInstall #See https://github.com/chocolatey/choco/issues/1781 7 | } 8 | if ([string]::IsNullOrEmpty((Get-Location))) { 9 | Write-Warning "Working Directory is an empty string. Setting to '$env:ChocolateyInstall'" 10 | Set-Location $env:ChocolateyInstall #See https://github.com/chocolatey/choco/issues/1781 11 | } 12 | 13 | Write-Debug "Working Directory is now '$(Get-Location)'" 14 | 15 | Get-ChocolateyUnzip -fileFullPath $zipFileLocation -destination $toolsDir 16 | -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-test/0.0.1/tools/test.zip: -------------------------------------------------------------------------------- 1 | PK -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-test/0.0.2/get-chocolateyunzip-test.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | get-chocolateyunzip-test 5 | 0.0.2 6 | get-chocolateyunzip-test (Install) 7 | Test 8 | Test 9 | false 10 | Package to test Get-ChocolateyUnzip 11 | Package to test Get-ChocolateyUnzip 12 | get-chocolateyunzip issue test 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-test/0.0.2/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" 2 | $zipFileLocation = Join-Path $toolsDir "test.zip" 3 | 4 | if ((Get-Location) -eq $null) { 5 | Write-Warning "Working Directory not set. Setting to '$env:ChocolateyInstall'" 6 | Set-Location $env:ChocolateyInstall #See https://github.com/chocolatey/choco/issues/1781 7 | } 8 | if ([string]::IsNullOrEmpty((Get-Location))) { 9 | Write-Warning "Working Directory is an empty string. Setting to '$env:ChocolateyInstall'" 10 | Set-Location $env:ChocolateyInstall #See https://github.com/chocolatey/choco/issues/1781 11 | } 12 | 13 | Write-Debug "Working Directory is now '$(Get-Location)'" 14 | 15 | Get-ChocolateyUnzip -fileFullPath $zipFileLocation -UnzipLocation $toolsDir 16 | -------------------------------------------------------------------------------- /tests/packages/get-chocolateyunzip-test/0.0.2/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | This package is intended to test whether enhancement request https://github.com/chocolatey/choco/issues/2203 is implemented. -------------------------------------------------------------------------------- /tests/packages/getconfig/getconfig.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | getconfig 6 | 1.0.0 7 | Chocolatey 8 | getconfig 9 | Chocolatey 10 | Chocolatey 11 | getconfig 12 | Test package for using Get-ChocolateyConfigValue. 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/packages/getconfig/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | $ErrorActionPreference = 'Stop' 2 | 3 | $ValuesToTest = @( 4 | 'addedTextValue' 5 | 'addedNumberValue' 6 | 'commandExecutionTimeoutSeconds' 7 | 'cacheLocation' 8 | 'nonExistentKey' 9 | ) 10 | 11 | foreach ($Value in $ValuesToTest) { 12 | $Result = Get-ChocolateyConfigValue -configKey $Value 13 | Write-Host "${Value}: $Result" 14 | } 15 | -------------------------------------------------------------------------------- /tests/packages/hasbeforeinstallblock/1.0.0/Readme.md: -------------------------------------------------------------------------------- 1 | This package can be used for testing both downloading remote MSI installers from a known location (GitHub), 2 | as well as testing whether the new functionality in 0.10.16 that adds the ability to run a before install block 3 | works as expected. 4 | 5 | Additionally, this package can be used to test against different type of checksums as well. 6 | The parameter '/Algorithm' can be used to test the actual algorithm, and the parameter '/Checksum' can be used 7 | to test with a different checksum value. -------------------------------------------------------------------------------- /tests/packages/hasfailingnesteddependency/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /tests/packages/hasfailingnesteddependency/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /tests/packages/hasnesteddependency/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /tests/packages/hasnesteddependency/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/1.0.0/tools/chocolateybeforemodify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Upgrading or Uninstalling $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.0/tools/chocolateybeforemodify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Upgrading or Uninstalling $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.1/tools/chocolateybeforemodify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Upgrading or Uninstalling $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.1/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.1/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.2/tools/chocolateybeforemodify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Upgrading or Uninstalling $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.2/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.2/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.3/tools/chocolateybeforemodify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Upgrading or Uninstalling $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.3/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/2.0.3/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /tests/packages/hasoutofrangedependency/Readme.md: -------------------------------------------------------------------------------- 1 | This package can be used to test the installation or upgrading of packages that have out-of-range dependencies. 2 | 3 | - Version 1.0.0 Contains a valid range that can be used in an upgrade scenario and has an exact version dependency on `hasdependency 1.0.0` 4 | - Version 2.0.0 Contains an invalid maximum dependency on `hasdependency` with a version lower than `1.0.0` 5 | - Version 2.0.1 Contains an invalid dependency on `hasdependency` with versions between `1.1.1` and `1.4.0` 6 | - Version 2.0.2 Contains an invalid dependency on `hasdependency` with an exact version of `1.3.0` 7 | - Version 2.0.3 Contains an invalid minimum dependency on `hasdependency` with a version higher than `2.2.0` 8 | -------------------------------------------------------------------------------- /tests/packages/msi.template/templates/tools/LICENSE.txt: -------------------------------------------------------------------------------- 1 |  2 | Note: Include this file if including binaries you have the right to distribute. 3 | Otherwise delete. this file. 4 | 5 | ===DELETE ABOVE THIS LINE AND THIS LINE=== 6 | 7 | From: 8 | 9 | LICENSE 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/packages/msi.template/templates/tools/VERIFICATION.txt: -------------------------------------------------------------------------------- 1 |  2 | Note: Include this file if including binaries you have the right to distribute. 3 | Otherwise delete. this file. 4 | 5 | ===DELETE ABOVE THIS LINE AND THIS LINE=== 6 | 7 | VERIFICATION 8 | Verification is intended to assist the Chocolatey moderators and community 9 | in verifying that this package's contents are trustworthy. 10 | 11 | -------------------------------------------------------------------------------- /tests/packages/msi.template/templates/tools/chocolateybeforemodify.ps1: -------------------------------------------------------------------------------- 1 | # This runs in 0.9.10+ before upgrade and uninstall. 2 | # Use this file to do things like stop services prior to upgrade or uninstall. 3 | # NOTE: It is an anti-pattern to call chocolateyUninstall.ps1 from here. If you 4 | # need to uninstall an MSI prior to upgrade, put the functionality in this 5 | # file without calling the uninstall script. Make it idempotent in the 6 | # uninstall script so that it doesn't fail when it is already uninstalled. 7 | # NOTE: For upgrades - like the uninstall script, this script always runs from 8 | # the currently installed version, not from the new upgraded package version. 9 | 10 | -------------------------------------------------------------------------------- /tests/packages/nonnormalizedversions/nonnormalizedversions.004.0.01.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/packages/nonnormalizedversions/nonnormalizedversions.004.0.01.0.nupkg -------------------------------------------------------------------------------- /tests/packages/nonnormalizedversions/nonnormalizedversions.01.0.0.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/packages/nonnormalizedversions/nonnormalizedversions.01.0.0.0.nupkg -------------------------------------------------------------------------------- /tests/packages/package.extension/extensions/Test-ExtensionAvailable.ps1: -------------------------------------------------------------------------------- 1 | function Test-ExtensionAvailable() { 2 | Write-Host "Extension is available. Success!!" 3 | } -------------------------------------------------------------------------------- /tests/packages/package.extension/extensions/package.psm1: -------------------------------------------------------------------------------- 1 | $scriptRoot = Split-Path $MyInvocation.MyCommand.Definition 2 | 3 | . "$scriptRoot\Test-ExtensionAvailable.ps1" 4 | Export-ModuleMember -Function "Test-ExtensionAvailable" -------------------------------------------------------------------------------- /tests/packages/package.extension/package.extension.nuspec: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | package.extension 6 | 1.0.0 7 | package.extension (Install) 8 | __REPLACE_AUTHORS_OF_SOFTWARE_COMMA_SEPARATED__ 9 | https://_Software_Location_REMOVE_OR_FILL_OUT_ 10 | package.extension SPACE_SEPARATED 11 | __REPLACE__ 12 | __REPLACE__MarkDown_Okay 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/packages/package.template/package.template.nuspec: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | package.template 6 | 1.0.0 7 | package.template (Install) 8 | __REPLACE_AUTHORS_OF_SOFTWARE_COMMA_SEPARATED__ 9 | https://_Software_Location_REMOVE_OR_FILL_OUT_ 10 | package.template SPACE_SEPARATED 11 | __REPLACE__ 12 | __REPLACE__MarkDown_Okay 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/packages/package.template/templates/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Host "Created by package template" -------------------------------------------------------------------------------- /tests/packages/package.template/templates/notice.txt: -------------------------------------------------------------------------------- 1 | This file was generated by a package template -------------------------------------------------------------------------------- /tests/packages/pureportable/1.0.0/pureportable.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | pureportable 5 | 1.0.0 6 | pureportable 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | This package is intentionally minimal. It is designed to test purely portable packages which do not contain any installation or uninstallation scripts. 11 | This package is intentionally minimal. It is designed to test purely portable packages which do not contain any installation or uninstallation scripts. 12 | pureportable admin 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/packages/pureportable/1.0.0/purpose.txt: -------------------------------------------------------------------------------- 1 | This is used to test that https://github.com/chocolatey/choco/issues/2241 is implemented 2 | -------------------------------------------------------------------------------- /tests/packages/pureportable/1.0.0/tools/console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/packages/pureportable/1.0.0/tools/console.exe -------------------------------------------------------------------------------- /tests/packages/pureportable/1.0.0/tools/graphical.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/packages/pureportable/1.0.0/tools/graphical.exe -------------------------------------------------------------------------------- /tests/packages/test-chocolateypath/tools/chocolateybeforemodify.ps1: -------------------------------------------------------------------------------- 1 | $ErrorActionPreference = 'Stop' 2 | 3 | $packagePath = Get-ChocolateyPath -pathType 'PackagePath' 4 | $installPath = Get-ChocolateyPath -pathType 'InstallPath' 5 | 6 | Write-Host "Package Path in Before Modify Script: $packagePath" 7 | Write-Host "Install Path in Before Modify Script: $installPath" -------------------------------------------------------------------------------- /tests/packages/test-chocolateypath/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | $ErrorActionPreference = 'Stop' 2 | 3 | $packagePath = Get-ChocolateyPath -pathType 'PackagePath' 4 | $installPath = Get-ChocolateyPath -pathType 'InstallPath' 5 | 6 | Write-Host "Package Path in Install Script: $packagePath" 7 | Write-Host "Install Path in Install Script: $installPath" -------------------------------------------------------------------------------- /tests/packages/test-chocolateypath/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | $ErrorActionPreference = 'Stop' 2 | 3 | $packagePath = Get-ChocolateyPath -pathType 'PackagePath' 4 | $installPath = Get-ChocolateyPath -pathType 'InstallPath' 5 | 6 | Write-Host "Package Path in Uninstall Script: $packagePath" 7 | Write-Host "Install Path in Uninstall Script: $installPath" -------------------------------------------------------------------------------- /tests/packages/upgradedowngradesdependency/1.0.0/tools/chocolateybeforemodify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Upgrading or Uninstalling $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /tests/packages/upgradedowngradesdependency/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /tests/packages/upgradedowngradesdependency/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /tests/packages/upgradedowngradesdependency/2.0.0/tools/chocolateybeforemodify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Upgrading or Uninstalling $env:PackageName $env:PackageVersion" -------------------------------------------------------------------------------- /tests/packages/upgradedowngradesdependency/2.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Installed" -------------------------------------------------------------------------------- /tests/packages/upgradedowngradesdependency/2.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /tests/packages/upgradedowngradesdependency/Readme.md: -------------------------------------------------------------------------------- 1 | These packages can be used to test the installation or upgrading of packages that require an existing package to downgrade. 2 | 3 | Each version is available as `upgradedowngradesdependency` and `downgradesdependency`. This is to allow testing of scenarios where `choco upgrade all` would process the dependency before and after the parent package. 4 | 5 | - Version 1.0.0 contains a range that can be used in an upgrade scenario and has a dependency on `isdependency 1.0.0 or greater` 6 | - Version 2.0.0 contains an exact dependency on `isdependency` with a version of `1.0.0` 7 | -------------------------------------------------------------------------------- /tests/packages/zip.template/templates/tools/LICENSE.txt: -------------------------------------------------------------------------------- 1 |  2 | Note: Include this file if including binaries you have the right to distribute. 3 | Otherwise delete. this file. 4 | 5 | ===DELETE ABOVE THIS LINE AND THIS LINE=== 6 | 7 | From: 8 | 9 | LICENSE 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/packages/zip.template/templates/tools/VERIFICATION.txt: -------------------------------------------------------------------------------- 1 |  2 | Note: Include this file if including binaries you have the right to distribute. 3 | Otherwise delete. this file. 4 | 5 | ===DELETE ABOVE THIS LINE AND THIS LINE=== 6 | 7 | VERIFICATION 8 | Verification is intended to assist the Chocolatey moderators and community 9 | in verifying that this package's contents are trustworthy. 10 | 11 | -------------------------------------------------------------------------------- /tests/packages/zip.template/templates/tools/chocolateybeforemodify.ps1: -------------------------------------------------------------------------------- 1 | # This runs in 0.9.10+ before upgrade and uninstall. 2 | # Use this file to do things like stop services prior to upgrade or uninstall. 3 | # NOTE: It is an anti-pattern to call chocolateyUninstall.ps1 from here. If you 4 | # need to uninstall an MSI prior to upgrade, put the functionality in this 5 | # file without calling the uninstall script. Make it idempotent in the 6 | # uninstall script so that it doesn't fail when it is already uninstalled. 7 | # NOTE: For upgrades - like the uninstall script, this script always runs from 8 | # the currently installed version, not from the new upgraded package version. 9 | 10 | -------------------------------------------------------------------------------- /tests/pester-tests/TestCertificate.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/pester-tests/TestCertificate.pfx -------------------------------------------------------------------------------- /tests/pester-tests/commands/demo-projects.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/pester-tests/commands/demo-projects.zip -------------------------------------------------------------------------------- /tests/pester-tests/commands/failingnested.packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/basic-dependencies/basic-dependencies.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | basic-dependencies 6 | 1.0.0 7 | Author 8 | Not empty 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/basic/basic.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | basic 6 | 1.0.0 7 | Author 8 | Not empty 9 | 10 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/basic/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | This package is used to verify a pack command can be used, with the minimum amount of information given. 2 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/cdata/cdata.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | cdata 6 | 1.0.0 7 | Author 8 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/empty-requireLicenseAcceptance.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | basic-dependencies 6 | 1.0.0 7 | Author 8 | 9 | Not empty 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/empty.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | empty 6 | 1.0.0 7 | Author 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Test Description 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/forward-slash/forward-slash.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | forward-slash 6 | 1.0.0 7 | Author 8 | Not empty 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/forward-slash/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | This package is for testing that nuspec files containing a file segment with a forward slash create a nupkg file with the correct file structure. 2 | 3 | Related to issue: https://github.com/chocolatey/choco/issues/2166 -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/full/tools/purpose.txt: -------------------------------------------------------------------------------- 1 | The purpose of this package is that when all of the valid nuspec elements are specified, the package can be created. 2 | The package metadata is based on a package already available on the Community Repository. 3 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-bugtrackerurl.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-bugtrackerurl 6 | 1.0.0 7 | Author 8 | invalid bug tracker url 9 | Test Description 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-character-and.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-characters-and 6 | 1.0.0 7 | Author 8 | This metadata file contains the invalid character &. 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-character-lesser.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-characters-lesser 6 | 1.0.0 7 | Author 8 | This metadata file contains the invalid character <. 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-docsurl.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-docsurl 6 | 1.0.0 7 | Author 8 | invalid docs url 9 | Test Description 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-iconurl.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-iconurl 6 | 1.0.0 7 | Author 8 | invalid icon url 9 | Test Description 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-id.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid id 6 | 1.0.0 7 | Author 8 | Not empty 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-licenseUrl.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-licenseurl 6 | 1.0.0 7 | Author 8 | invalid license url 9 | Test Description 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-mailinglisturl.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-mailinglisturl 6 | 1.0.0 7 | Author 8 | invalid mailing list url 9 | Test Description 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-no-content.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-no-content 6 | 1.0.0 7 | Author 8 | Not empty 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-projectsourceurl.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-projectsourceurl 6 | 1.0.0 7 | Author 8 | invalid project source url 9 | Test Description 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-projecturl.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-projecturl 6 | 1.0.0 7 | Author 8 | invalid project url 9 | Test Description 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-requireLicenseAcceptance.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-licenseurl 6 | 1.0.0 7 | Author 8 | true 9 | Test Description 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/invalid-version.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | invalid-version 6 | INVALID 7 | Author 8 | Not empty 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/missing.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testnuspecs/required.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/.gitignore: -------------------------------------------------------------------------------- 1 | *.nupkg -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/installpackage/1.0.0/installpackage.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | installpackage 5 | 1.0.0 6 | installpackage 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | installpackage admin 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/Casemismatch.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/Casemismatch.exe.ignore -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/casemismatch.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/casemismatch.exe -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" 2 | $PackageParameters = Get-PackageParameters 3 | "simple file" | Out-File "$toolsDir\simplefile.txt" -Force 4 | 5 | Write-Output "This is $packageName v$packageVersion being installed to `n $packageFolder" 6 | Write-Host "Ya!" 7 | Write-Debug "A debug message" 8 | Write-Verbose "Yo!" 9 | Write-Warning "A warning!" 10 | 11 | Write-Output "$packageName v$packageVersion has been installed to `n $packageFolder" 12 | 13 | Write-Host "Package Parameters:" 14 | foreach ($key in $PackageParameters.Keys) { 15 | Write-Host "$key - $($PackageParameters[$key])" 16 | } 17 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/console.exe -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/graphical.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/graphical.exe -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/graphical.exe.gui: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/graphical.exe.gui -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/not.installed.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/not.installed.exe -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/not.installed.exe.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/pester-tests/commands/testpackages/installpackage/1.0.0/tools/not.installed.exe.ignore -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/packagewithscript/1.0.0/packagewithscript.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | packagewithscript 5 | 1.0.0 6 | packagewithscript 7 | __REPLACE_AUTHORS_OF_SOFTWARE__ 8 | __REPLACE_YOUR_NAME__ 9 | false 10 | __REPLACE__ 11 | __REPLACE__ 12 | packagewithscript 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/packagewithscript/1.0.0/tools/chocolateyBeforeModify.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Before Modification" -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/packagewithscript/1.0.0/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "Installing $env:PackageName $env:PackageVersion" 2 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/packagewithscript/1.0.0/tools/chocolateyuninstall.ps1: -------------------------------------------------------------------------------- 1 | Write-Output "$env:PackageName $env:PackageVersion Uninstalled" -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/zip-log-disable-test/tools/chocolateyinstall.ps1: -------------------------------------------------------------------------------- 1 |  2 | $ErrorActionPreference = 'Stop'; 3 | $toolsDir = "$(Split-Path -Parent $MyInvocation.MyCommand.Definition)" 4 | 5 | $packageArgs = @{ 6 | packageName = $env:ChocolateyPackageName 7 | destination = "$toolsDir\extraction" 8 | file = "$toolsDir\zip-log-disable-test.zip" 9 | disableLogging = $true 10 | } 11 | 12 | Get-ChocolateyUnzip @packageArgs 13 | -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/zip-log-disable-test/tools/zip-log-disable-test.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chocolatey/choco/659f5d3c20c040591edf3248cba41db18d56fc17/tests/pester-tests/commands/testpackages/zip-log-disable-test/tools/zip-log-disable-test.zip -------------------------------------------------------------------------------- /tests/pester-tests/commands/testpackages/zip-log-disable-test/zip-log-disable-test.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | zip-log-disable-test 6 | 1.0.0 7 | zip-log-disable-test (Install) 8 | __REPLACE_AUTHORS_OF_SOFTWARE_COMMA_SEPARATED__ 9 | zip-log-disable-test SPACE_SEPARATED 10 | Package used to test disabling verbose file log for zip extraction 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/pester-tests/features/WindowsFeaturesSource.Tests.ps1: -------------------------------------------------------------------------------- 1 | Import-Module helpers/common-helpers 2 | 3 | Describe "Windows Features Source" -Tag Chocolatey, WindowsFeaturesSource { 4 | BeforeAll { 5 | Initialize-ChocolateyTestInstall 6 | New-ChocolateyInstallSnapshot 7 | } 8 | 9 | AfterAll { 10 | Remove-ChocolateyTestInstall 11 | } 12 | 13 | Context "install all" { 14 | BeforeAll { 15 | $Output = Invoke-Choco install all --source=windowsfeatures 16 | } 17 | 18 | It 'Exits with exit code (1)' { 19 | $Output.ExitCode | Should -Be 1 -Because $Output.String 20 | } 21 | 22 | It 'Outputs exception' { 23 | $Output.Lines | Should -Contain "Alternative sources do not allow the use of the 'all' package name/keyword." -Because $Output.String 24 | } 25 | } 26 | } -------------------------------------------------------------------------------- /tests/pester-tests/powershell-commands/Get-EnvironmentVariableNames.Tests.ps1: -------------------------------------------------------------------------------- 1 | Describe 'Get-EnvironmentVariable helper function tests' -Tags Cmdlets { 2 | BeforeAll { 3 | Initialize-ChocolateyTestInstall 4 | 5 | $testLocation = Get-ChocolateyTestLocation 6 | Import-Module "$testLocation\helpers\chocolateyInstaller.psm1" 7 | } 8 | 9 | Context 'Gets the named environment variable value at the target scope' -ForEach @( 10 | @{ Scope = 'Process' } 11 | @{ Scope = 'User' } 12 | @{ Scope = 'Machine' } 13 | ) { 14 | It 'Gets the complete list of environment variables in the scope"' -ForEach $variables { 15 | $expectedValue = [Environment]::GetEnvironmentVariables($Scope).Keys 16 | Get-EnvironmentVariableNames -Scope $Scope | Should -Be $expectedValue 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /tests/pester-tests/powershell-commands/Test-ProcessAdminRights.Tests.ps1: -------------------------------------------------------------------------------- 1 | Describe 'Test-ProcessAdminRights helper function tests' -Tags Cmdlets { 2 | BeforeAll { 3 | Initialize-ChocolateyTestInstall 4 | 5 | $testLocation = Get-ChocolateyTestLocation 6 | Import-Module "$testLocation\helpers\chocolateyInstaller.psm1" 7 | } 8 | 9 | It 'should report true in an admin context' { 10 | Test-ProcessAdminRights | Should -BeTrue -Because "We should run these tests exclusively as admin" 11 | } 12 | } -------------------------------------------------------------------------------- /tools/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | --------------------------------------------------------------------------------