From 4040521a33a5ebb439fb7b359285f6bf224328c9 Mon Sep 17 00:00:00 2001 From: Christoph Wille Date: Fri, 21 Jun 2013 10:30:31 +0200 Subject: [PATCH] Chocolatey package support Unresolved: 1603 fatal msi error if already installed --- .../Chocolatey/Tools/chocolateyInstall.ps1 | 11 +++++++ src/Setup/Chocolatey/buildChocolatey.bat | 2 ++ src/Setup/Chocolatey/sharpdevelop.nuspec | 29 +++++++++++++++++++ src/Setup/Chocolatey/testPackage.bat | 2 ++ 4 files changed, 44 insertions(+) create mode 100644 src/Setup/Chocolatey/Tools/chocolateyInstall.ps1 create mode 100644 src/Setup/Chocolatey/buildChocolatey.bat create mode 100644 src/Setup/Chocolatey/sharpdevelop.nuspec create mode 100644 src/Setup/Chocolatey/testPackage.bat diff --git a/src/Setup/Chocolatey/Tools/chocolateyInstall.ps1 b/src/Setup/Chocolatey/Tools/chocolateyInstall.ps1 new file mode 100644 index 0000000000..46b8b3c933 --- /dev/null +++ b/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 + diff --git a/src/Setup/Chocolatey/buildChocolatey.bat b/src/Setup/Chocolatey/buildChocolatey.bat new file mode 100644 index 0000000000..223e480a97 --- /dev/null +++ b/src/Setup/Chocolatey/buildChocolatey.bat @@ -0,0 +1,2 @@ +REM You must have Chocolatey installed to be able to run the command +cpack \ No newline at end of file diff --git a/src/Setup/Chocolatey/sharpdevelop.nuspec b/src/Setup/Chocolatey/sharpdevelop.nuspec new file mode 100644 index 0000000000..950b5ffb7b --- /dev/null +++ b/src/Setup/Chocolatey/sharpdevelop.nuspec @@ -0,0 +1,29 @@ + + + + + sharpdevelop + SharpDevelop + 4.3.1 + IC#Code Team + SharpDevelop Team + sharpdevelop + #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. + http://www.icsharpcode.net/opensource/sd/ + sharpdevelop ide .net developer web windows debugging editor tool productivity + Copyright ©2001-2012 IC#Code. + http://www.icsharpcode.net/OpenSource/SD/ + false + + + + .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. + + + + + + + \ No newline at end of file diff --git a/src/Setup/Chocolatey/testPackage.bat b/src/Setup/Chocolatey/testPackage.bat new file mode 100644 index 0000000000..d16af2b63a --- /dev/null +++ b/src/Setup/Chocolatey/testPackage.bat @@ -0,0 +1,2 @@ +REM https://github.com/chocolatey/chocolatey/wiki/CreatePackages +cinst sharpdevelop -source %cd% -force \ No newline at end of file