Changes

Chocolatey

980 bytes added, 15:26, 10 October 2017
no edit summary
<package
id="chocolatey" name="Chocolatey" revision="1.%version%" reboot="false" priority="1">
<variable name="version" value="0.10.5.0" />
<package
id="vlcchocobasic" name="VideoLAN Client Basic packages (using Chocolatey)" revision="1.%version%" reboot="false" priority="1">
<depends package-id="chocolatey" /> <!-- See https://chocolatey.org/packages . Can use more than one: <variable name="PKGNAMES" value="vlc firefox nssm notepadplusplus git 7zip" /> --> <variable name="PKGNAMES" value="classic-shell googlechrome notepadplusplus" />
<variable name="!-- check for a version" of each package --> <check path='Classic Shell' value="2'4.23.6" 0' type='uninstall' condition='versiongreaterorequal' /> <variable namecheck path='Google Chrome' value='61.0.3163.100' type='uninstall' condition='versiongreaterorequal' /> <check path='Notepad\+\+.*' value='7.5.1' type='uninstall' condition='versiongreaterorequal' /> <!-- Or could possibly use choco list in a .cmd file like this, though harder to catch versiongreaterorequal: choco list - -localonly | findstr /ib /c:%1 exit %ERRORLEVEL% <check type="PKGNAMEexecute" path='chocotest.cmd "7zip "' condition="exitcodeequalto" value="vlc0" /> -->
<check type='uninstall' condition='versiongreaterorequal' path='VLC media player' value='%version%' /!-- "choco upgrade" command installs or upgrades as appropriate. --> <install cmd='%COMSPEC% /v /c set ChocolateyInstall=%programdata%\chocolatey&amp;&amp; %programdata%\chocolatey\choco install upgrade %PKGNAMEPKGNAMES% -y&gt;"%programdata%\chocolatey\logs\wpkgchocoinstall.log"' /> <upgrade cmdinclude='%COMSPEC% /c choco upgrade %PKGNAME% -y' "install" /> <remove cmd='%COMSPEC% /v /c set ChocolateyInstall=%programdata%\chocolatey&amp;&amp; %programdata%\chocolatey\choco uninstall %PKGNAMEPKGNAMES% -y&gt;"%programdata%\chocolatey\logs\wpkgchocoinstall.log"'/>
<!--
<install cmd='%COMSPEC% /c %programdata%\chocolatey\bin\chocolatey.exe install %PKGNAME% -y - -forceX86 - -force' architecture="x64" />
-->
<!--
Can be useful Useful to pipe chocolatey output to log file: e.g. &gt;c:"%programdata%\chocolatey\templogs\chocwpkgchocoinstall.log " or see See also C:\ProgramData\chocolatey\logs\chocolatey.log
-->
 
</package>
23
edits