Browse Source

Chocolatey package support

Unresolved: 1603 fatal msi error if already installed
pull/42/head
Christoph Wille 12 years ago
parent
commit
4040521a33
  1. 11
      src/Setup/Chocolatey/Tools/chocolateyInstall.ps1
  2. 2
      src/Setup/Chocolatey/buildChocolatey.bat
  3. 29
      src/Setup/Chocolatey/sharpdevelop.nuspec
  4. 2
      src/Setup/Chocolatey/testPackage.bat

11
src/Setup/Chocolatey/Tools/chocolateyInstall.ps1

@ -0,0 +1,11 @@
# https://github.com/chocolatey/chocolatey/wiki/CreatePackagesQuickStart
# https://github.com/chocolatey/chocolatey/wiki/HelpersInstallChocolateyPackage
$packageName = 'sharpdevelop'
$installerType = 'msi'
$url = 'http://downloads.sourceforge.net/sharpdevelop/SharpDevelop_4.3.1.9430_Setup.msi?download'
$silentArgs = '/q'
$validExitCodes = @(0)
Install-ChocolateyPackage "$packageName" "$installerType" "$silentArgs" "$url" -validExitCodes $validExitCodes

2
src/Setup/Chocolatey/buildChocolatey.bat

@ -0,0 +1,2 @@
REM You must have Chocolatey installed to be able to run the command
cpack

29
src/Setup/Chocolatey/sharpdevelop.nuspec

@ -0,0 +1,29 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<!-- https://github.com/chocolatey/chocolateytemplates/blob/master/_templates/chocolatey/__NAME__.nuspec -->
<metadata>
<id>sharpdevelop</id>
<title>SharpDevelop</title>
<version>4.3.1</version>
<authors>IC#Code Team</authors>
<owners>SharpDevelop Team</owners>
<summary>sharpdevelop</summary>
<description>#develop (short for SharpDevelop) is a free IDE for C#, VB.NET, F#, IronPython and IronRuby projects on Microsoft's .NET platform. It has designers for WPF, Windows Forms and Entity Framework, and also supports ASP.NET MVC.</description>
<projectUrl>http://www.icsharpcode.net/opensource/sd/</projectUrl>
<tags>sharpdevelop ide .net developer web windows debugging editor tool productivity</tags>
<copyright>Copyright ©2001-2012 IC#Code.</copyright>
<licenseUrl>http://www.icsharpcode.net/OpenSource/SD/</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<!--<iconUrl>https://github.com/Your Repository/raw/master/sharpdevelop/sharpdevelop.gif</iconUrl>-->
<!--<dependencies>
<dependency id="" version="" />
</dependencies>-->
<releaseNotes>
.NET 4.0 Full runtime and .NET 3.5 SP1 runtime must be installed on your machine, the required operating system is XP SP2 or higher.
</releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
<!--<file src="content\**" target="content" />-->
</files>
</package>

2
src/Setup/Chocolatey/testPackage.bat

@ -0,0 +1,2 @@
REM https://github.com/chocolatey/chocolatey/wiki/CreatePackages
cinst sharpdevelop -source %cd% -force
Loading…
Cancel
Save