Commit 79ccc768 authored by Reimar Stier's avatar Reimar Stier

Add choco example to install exe from network share

parent cc53353e
......@@ -18,3 +18,5 @@ https://chocolatey.org/blog/create-chocolatey-packages
https://github.com/chocolatey/choco/wiki/HelpersInstallChocolateyPackage
https://github.com/chocolatey/choco/wiki/HelpersInstallChocolateyInstallPackage
# Using local repository
choco.exe install jdk6 -dv -s /c/projects/devbox/windows/examples/lib
<?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>jdk6</id>
<version>1.6.0_45</version>
<title>JDK 6 (Install)</title>
<authors>Oracle</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>jdk6 java6</tags>
<summary>Java JDK 6</summary>
<description>Java dev kit</description>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
$packageArgs = @{
packageName = 'jdk6'
fileType = 'exe'
file = '\\s415001f.detss.corpintra.net\E415_Projekte\Robotics\java\jdk-6u45-windows-i586.exe'
silentArgs = "/quiet"
validExitCodes= @(0)
softwareName = 'Java*'
}
Install-ChocolateyInstallPackage @packageArgs
\ No newline at end of file
<?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>jdk8</id>
<version>1.8.0_121</version>
<title>JDK 8 (Install)</title>
<authors>Oracle</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<tags>jdk8 java8</tags>
<summary>Java JDK 8</summary>
<description>Java dev kit</description>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
$packageArgs = @{
packageName = 'jdk8'
fileType = 'exe'
file = '\\s415001f.detss.corpintra.net\E415_Projekte\Robotics\java\jdk-8u112-windows-x64.exe'
silentArgs = "/quiet"
validExitCodes= @(0)
softwareName = 'Java*'
}
Install-ChocolateyInstallPackage @packageArgs
\ No newline at end of file
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