Commit cc53353e authored by Reimar Stier's avatar Reimar Stier

Add chocolatey example

parent c3b227b3
# Sophisticated example of using Chocolatey # Examples
* Sophisticated example of using Chocolatey
https://weblog.west-wind.com/posts/2017/Jan/29/Creating-a-portable-and-embedded-Chocolatey-Package https://weblog.west-wind.com/posts/2017/Jan/29/Creating-a-portable-and-embedded-Chocolatey-Package
git clone https://github.com/rickstrahl/MarkdownMonster git clone https://github.com/rickstrahl/MarkdownMonster
ls MarkdownMonster/Install/Chocolatey/{markdownmonster.nuspec,tools/chocolateyInstall.ps1} ls MarkdownMonster/Install/Chocolatey/{markdownmonster.nuspec,tools/chocolateyInstall.ps1}
* Install windirstat from url example
see windirstat/windirstat.nuspec
choco.exe install -fdv .\windirstat.nuspec
# Chocolatey documentation # Chocolatey documentation
https://www.chocolatey.org/docs/how-to-setup-offline-installation https://www.chocolatey.org/docs/how-to-setup-offline-installation
https://github.com/chocolatey/choco/wiki/CommandsInstall https://github.com/chocolatey/choco/wiki/CommandsInstall
https://chocolatey.org/docs/create-packages https://chocolatey.org/docs/create-packages
https://chocolatey.org/blog/create-chocolatey-packages
https://github.com/chocolatey/choco/wiki/HelpersInstallChocolateyPackage
https://github.com/chocolatey/choco/wiki/HelpersInstallChocolateyInstallPackage
# tldr - install/test it
choco.exe install -fdv .\windirstat.nuspec
# Sources
https://github.com/ferventcoder/chocolatey-packages/tree/master/manual/windirstat
https://github.com/chocolatey/choco/wiki/CreatePackages
https://chocolatey.org/blog/create-chocolatey-packages
https://github.com/chocolatey/choco/wiki/HelpersInstallChocolateyInstallPackage
https://github.com/chocolatey/choco/wiki/HelpersInstallChocolateyPackage
$packageName = 'windirstat'
$fileType = 'exe'
$url = 'http://prdownloads.sourceforge.net/windirstat/windirstat1_1_2_setup.exe'
$silentArgs = '/S'
Install-ChocolateyPackage $packageName $fileType $silentArgs $url
<?xml version="1.0" encoding="utf-8"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>windirstat</id>
<version>1.1.2.20161210</version>
<owners>WDS Team, Rob Reynolds</owners>
<title>WinDirStat (Install)</title>
<authors>Bernhard Seifert, Oliver Schneider, WDS Team</authors>
<copyright>© 2003-2007 WDS Team</copyright>
<projectUrl>https://windirstat.net/</projectUrl>
<licenseUrl>http://www.gnu.org/licenses/gpl-2.0.html</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<projectSourceUrl>https://bitbucket.org/windirstat/windirstat</projectSourceUrl>
<docsUrl>https://windirstat.net/index.html</docsUrl>
<bugTrackerUrl>https://bitbucket.org/windirstat/windirstat/issues?status=new&amp;status=open</bugTrackerUrl>
<tags>windirstat disk usage admin</tags>
<summary>WinDirStat - Windows Directory Statistics</summary>
<description>WinDirStat is a disk usage statistics viewer and cleanup tool for Microsoft Windows.</description>
<!-- =============================== -->
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment