Chocolatey Package Manager Tools

Product Name: Chocolatey Package Manager Tools
Description : Agent procedures to deploy the Chocolatey package manager to endpoints, install programs using Chocolatey, and maintain and update those installed packages. Utilizes the open source edition of Chocolatey, though all of this functionality would work correctly with the paid tiers as well.
Instructions :
Download the ZIP file and extract. Import the XML file into your agent procedures list. You may also opt to create a custom field called ChocoInstalled (string type) that holds a Y for machines you have deployed the package manager on.
Comments
-
I believe the command executeShellCommandToVariable and writeProcedureLogEntry(#global:cmdresult#) don't work properly: two log files are created into c:\kworking and immediately removed (commandresult-123.txt and commandresult-123-new.txt)
0 -
Can it be fixed please?
0 -
Hey, I just got done doing some testing on this. Chocolatey seems to have changed their verbage for the log results.
It no longer says “The installation of #packagename# was”
Now it says “The install of #packagename# was”
At least in terms of successful installations. I haven't been able to test a failed installation
Also recommending adding a line for already installed packages.
<If description="">
<Condition name="CheckVariable">
<Parameter xsi:type="StringParameter" name="VariableName" value="#global:cmdresults#" />
<Parameter xsi:type="EnumParameter" name="Condition" value="Contains" />
<Parameter xsi:type="StringParameter" name="Value" value="already installed" />
</Condition>
<Then>
<Statement name="WriteScriptLogEntry" continueOnFail="false">
<Parameter xsi:type="StringParameter" name="Comment" value="#packagename# is already installed!Try reinstall, Specify version to install, or Try upgrade." />
</Statement>
</Then>0