Changes

Jump to: navigation, search

Chocolatey

849 bytes added, 18:21, 9 October 2017
no edit summary
Once this is installed, you can use commands like "choco install 7zip -y" to install software automatically. This can be useful to save having to update WPKG packages for common tools, as chocolatey has a central repository.
 
An example of how VLC might be installed using WPKG to trigger chocolatey is given below.
<source lang="xml">
<install cmd='powershell "%SOFTWARE%\%installerPath%"' />
<!--
<install cmd='choco install 7zip -y' />
<install cmd='choco install 7zip -y - -forceX86 - -force' architecture="x64" />
-->
<upgrade include="install" />
 
<remove cmd='cmd /c rmdir /s /q "%programdata%\chocolatey\"' />
</package>
<package
id="vlc"
name="VideoLAN Client (using Chocolatey)"
revision="1.%version%"
reboot="false"
priority="1">
 
<depends package-id="chocolatey" />
<variable name="version" value="2.2.6" />
<variable name="PKGNAME" value="vlc" />
<check type='uninstall' condition='versiongreaterorequal' path='VLC media player' value='%version%' />
<install cmd='%COMSPEC% /c choco install %PKGNAME% -y' />
<upgrade cmd='%COMSPEC% /c choco upgrade %PKGNAME% -y' />
<remove cmd='%COMSPEC% /c choco uninstall %PKGNAME% -y'/>
<!--
<install cmd='%COMSPEC% /c %programdata%\chocolatey\bin\chocolatey.exe install %PKGNAME% -y - -forceX86 - -force' architecture="x64" />
-->
<!--
Can be useful to pipe chocolatey output to log file: e.g. &gt;c:\temp\choc.log
or see C:\ProgramData\chocolatey\logs\chocolatey.log
-->
 
</package>
 
</packages:packages>
</source>
[[Category:Silent Installers]]
23
edits

Navigation menu