mwrock / chocolatey-packages Goto Github PK
View Code? Open in Web Editor NEWSome packages that can be installed via chocolatey.org
Some packages that can be installed via chocolatey.org
Attempting to choco install -y dotnet3.5
when connected to either Windows Server 2012 or 2016 via a remote WinRM session fails with error output similar to the following:
ERROR: Running ["C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass -InputFormat Text -OutputFormat Text -EncodedCommand IAAgACAAIAAgACAAJABuAG8AUwBsAGUAZQBwACAAPQAgACQAVABy AHUAZQANAAoAIAAgACAAIAAgACAAIwAkAGUAbgB2ADoAQwBoAG8AYwBvAGwAYQB0AGUAeQBFAG4AdgBpAHIAbwBuAG0A ZQBuAHQARABlAGIAdQBnAD0AJwBmAGEAbABzAGUAJwANAAoAIAAgACAAIAAgACAAIwAkAGUAbgB2ADoAQwBoAG8AYwBv AGwAYQB0AGUAeQBFAG4AdgBpAHIAbwBuAG0AZQBuAHQAVgBlAHIAYgBvAHMAZQA9ACcAZgBhAGwAcwBlACcADQAKACAA IAAgACAAIAAgACYAIABpAG0AcABvAHIAdAAtAG0AbwBkAHUAbABlACAALQBuAGEAbQBlACAAJwBDADoAXABQAHIAbwBnAHIA YQBtAEQAYQB0AGEAXABjAGgAbwBjAG8AbABhAHQAZQB5AFwAaABlAGwAcABlAHIAcwBcAGMAaABvAGMAbwBsAGEAdABlAH kASQBuAHMAdABhAGwAbABlAHIALgBwAHMAbQAxACcAIAAtAFYAZQByAGIAbwBzAGUAOgAkAGYAYQBsAHMAZQAgAHwAIAB PAHUAdAAtAE4AdQBsAGwAOwANAAoAIAAgACAAIAAgACAAdAByAHkAewANAAoAIAAgACAAIAAgACAAIAAgACQAcAByAG8AZw ByAGUAcwBzAFAAcgBlAGYAZQByAGUAbgBjAGUAPQAiAFMAaQBsAGUAbgB0AGwAeQBDAG8AbgB0AGkAbgB1AGUAIgANAAoA IAAgACAAIAAgACAAIAAgAGMAbQBkAC4AZQB4AGUAIAAvAGMAIABEAEkAUwBNACAALwBPAG4AbABpAG4AZQAgAC8ATgBvAF IAZQBzAHQAYQByAHQAIAAvAEUAbgBhAGIAbABlAC0ARgBlAGEAdAB1AHIAZQAgAC8ARgBlAGEAdAB1AHIAZQBOAGEAbQBlAD oATgBlAHQARgB4ADMADQAKACAAIAAgACAAIAAgACAAIABpAGYAKAAhACQAbgBvAFMAbABlAGUAcAApAHsAcwB0AGEAcgB0 AC0AcwBsAGUAZQBwACAANgB9AA0ACgAgACAAIAAgACAAIAB9AA0ACgAgACAAIAAgACAAIABjAGEAdABjAGgAewANAAoAIAA gACAAIAAgACAAIAAgAGkAZgAoACEAJABuAG8AUwBsAGUAZQBwACkAewBzAHQAYQByAHQALQBzAGwAZQBlAHAAIAA4AH0A DQAKACAAIAAgACAAIAAgACAAIAB0AGgAcgBvAHcADQAKACAAIAAgACAAIAAgAH0A] was not successful. Exit code was '1'. See log for possible error messages.
The installation succeeds if logged in locally (via Remote Desktop) and run from a shell prompt.
There's a new version of WinDbg out now for Windows 10.x
Would it be possible to include the latest update in the chocolatey package for VS 2012 ?
The directlink is this:
http://download.microsoft.com/download/D/4/8/D48D1AC2-A297-4C9E-A9D0-A218E6609F06/VSU4/VS2012.4.exe
Or would it be better to create a separate package?
Hi.
Thank you for Chocolatey and VisualStudio2013Premium.
Windows Server 2012 R2 Standard
Chocolatey 0.9.9.11
When installing Visual Studio 2013 Premium, vs_premium_download.exe may return an exit code of -2147185721
indicating that a Restart is required before installation can continue.
See https://msdn.microsoft.com/en-us/library/ee225238(v=vs.120).aspx.
For example:
cinst VisualStudio2013Premium -InstallArguments "/Features:'WindowsPhone80'" -y
chocolatey.log (snippet):
2015-12-15 11:58:20,560 [INFO ] - Installing VisualStudio2013Premium...
2015-12-15 12:27:55,625 [ERROR] - [ERROR] Running C:\Users\ADMINI~1\AppData\Local\Temp\chocolatey\VisualStudio201
2015-12-15 12:27:55,749 [ERROR] - 3Premium\12.0.40629.20150920\VisualStudio2013PremiumInstall.exe with /Passive
2015-12-15 12:27:55,749 [ERROR] - /NoRestart /AdminFile C:\ProgramData\chocolatey\lib\VisualStudio2013Premium\Too
2015-12-15 12:27:55,749 [ERROR] - ls\AdminDeployment.xml /Log C:\Users\ADMINI~1\AppData\Local\Temp\vs.log was
2015-12-15 12:27:55,749 [ERROR] - not successful. Exit code was '-2147185721' Error Message:
2015-12-15 12:27:55,749 [ERROR] - .
2015-12-15 12:27:55,749 [ERROR] - At C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.p
2015-12-15 12:27:55,749 [ERROR] - s1:92 char:5
2015-12-15 12:27:55,749 [ERROR] - + throw $errorMessage
2015-12-15 12:27:55,749 [ERROR] - + ~~~~~~~~~~~~~~~~~~~
2015-12-15 12:27:55,749 [ERROR] - + CategoryInfo : OperationStopped: ([ERROR] Running...or Message:
2015-12-15 12:27:55,749 [ERROR] - .:String) [], RuntimeException
2015-12-15 12:27:55,749 [ERROR] - + FullyQualifiedErrorId : [ERROR] Running C:\Users\ADMINI~1\AppData\Local\
2015-12-15 12:27:55,749 [ERROR] - Temp\chocolatey\VisualStudio2013Premium\12.0.40629.20150920\VisualStudio20
2015-12-15 12:27:55,749 [ERROR] - 13PremiumInstall.exe with /Passive /NoRestart /AdminFile C:\ProgramData\ch
2015-12-15 12:27:55,749 [ERROR] - ocolatey\lib\VisualStudio2013Premium\Tools\AdminDeployment.xml /Log C:\Use
2015-12-15 12:27:55,749 [ERROR] - rs\ADMINI~1\AppData\Local\Temp\vs.log was not successful. Exit code was '
2015-12-15 12:27:55,749 [ERROR] - -2147185721' Error Message:
2015-12-15 12:27:55,749 [ERROR] - .
2015-12-15 12:27:55,937 [DEBUG] - Command ['"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NoLogo -ExecutionPolicy Bypass -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\VisualStudio2013Premium\Tools\ChocolateyInstall.ps1' -installArguments '/Features:'WindowsPhone80'' -packageParameters ''"'] exited with '1'
2015-12-15 12:27:55,953 [DEBUG] - Calling command ['"shutdown" /a']
2015-12-15 12:27:56,000 [DEBUG] - Command ['"shutdown" /a'] exited with '1116'
2015-12-15 12:27:56,046 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\VisualStudio2013Premium'
2015-12-15 12:27:56,046 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\VisualStudio2013Premium\VisualStudio2013Premium.nupkg'
with checksum '9E64A94A5425B2A39197648692E78AF2'
2015-12-15 12:27:56,046 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\VisualStudio2013Premium\vs.png'
with checksum 'F437DC89537F91BF3E1363CECE11514E'
2015-12-15 12:27:56,046 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\VisualStudio2013Premium\Tools\AdminDeployment.xml'
with checksum '1B952ABDDDDFD2281B46A4B381CF6D75'
2015-12-15 12:27:56,046 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\VisualStudio2013Premium\Tools\ChocolateyInstall.ps1'
with checksum 'EB801D2B83DDBFCD8081163036AA04F6'
2015-12-15 12:27:56,046 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\VisualStudio2013Premium\Tools\ChocolateyUninstall.ps1'
with checksum '7D78BD987B13788045D68CFC6100F8E2'
2015-12-15 12:27:56,046 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\VisualStudio2013Premium\Tools\common.ps1'
with checksum 'CAD2FE3515E9D169FA58CD3ECC49A900'
2015-12-15 12:27:56,046 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\VisualStudio2013Premium.12.0.40629.20150920".
2015-12-15 12:27:56,249 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\VisualStudio2013Premium.12.0.40629.20150920\.registry.update"
to "C:\ProgramData\chocolatey\.chocolatey\VisualStudio2013Premium.12.0.40629.20150920\.registry".
2015-12-15 12:27:56,249 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\VisualStudio2013Premium.12.0.40629.20150920\.registry.update".
2015-12-15 12:27:56,249 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\VisualStudio2013Premium.12.0.40629.20150920\.files.update"
to "C:\ProgramData\chocolatey\.chocolatey\VisualStudio2013Premium.12.0.40629.20150920\.files".
2015-12-15 12:27:56,281 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\VisualStudio2013Premium.12.0.40629.20150920\.files.update".
2015-12-15 12:27:56,281 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\VisualStudio2013Premium.12.0.40629.20150920\.sxs".
2015-12-15 12:27:56,281 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\VisualStudio2013Premium.12.0.40629.20150920\.pin".
2015-12-15 12:27:56,281 [ERROR] - The install of visualstudio2013premium was NOT successful.
2015-12-15 12:27:56,281 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\VisualStudio2013Premium\Tools\ChocolateyInstall.ps1'.
See log for details.
2015-12-15 12:27:56,281 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad".
2015-12-15 12:27:56,281 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\VisualStudio2013Premium'
to 'C:\ProgramData\chocolatey\lib-bad\VisualStudio2013Premium'
2015-12-15 12:27:58,312 [WARN ] -
Chocolatey installed 1/2 package(s). 1 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2015-12-15 12:27:58,312 [ERROR] - Failures:
2015-12-15 12:27:58,343 [ERROR] - - visualstudio2013premium
2015-12-15 12:27:58,343 [DEBUG] - Exiting with 1
vs.log (snippet):
[04A8:0754][2015-12-15T12:27:53]i000: MUX: Exit with 0x80048BC7 (Incomplete and reboot required)
[04A8:0260][2015-12-15T12:27:54]i500: Shutting down, exit code: 0x80048bc7
...
[04A8:0260][2015-12-15T12:27:54]i007: Exit code: 0x80048bc7, restarting: No
I didn't expect cinst
to exit with code 1.
Thank you.
My theory as to what's going on is that the same policy that blocks IE on Windows Server from making requests to non-whitelisted URLs is blocking Chocolatey from downloading the package. This was in my log:
[0A8C:032C][2014-10-01T09:48:04]: Error 0x80070002: Failed to send request to URL: http://download.microsoft.com/download/B/0/C/B0C80BA3-8AD6-4958-810B-6882485230B5/standalonesdk/allers/SDK Debuggers-x86_en-us.msi
I went to that URL directly in IE and saw that it was, indeed, being blocked, even though I can go to http://download.microsoft.com. In IE, the error was:
Your current security settings do not allow this file to be downloaded.
Tested w/Chocolatey v0.9.8.27.
.. but no on see it, because on choclatey webseite you see VC MFC Libraries (without the withspaces of MFC).
Issue with the following package: https://github.com/mwrock/Chocolatey-Packages/blob/master/VisualStudio2013Ultimate/Tools/ChocolateyInstall.ps1
Here you are grabbing the install arguments for chocolatey, and using them to look through the AdminDeployment.xml to turn features on.
Afterwards you call the exe with the following args: /Passive /NoRestart /AdminFile $adminFile /Log $env:temp\vs.log
However, because of this, I am unable to pass extra args to the installer.
Would it be possible for you to change this, so you keep any unrecognized feature in the install arguments, and pass them on to the installer?
Then we can do the following: cinst VisualStudio2013Ultimate -InstallArguments "WebTools /ProductKey xxxxxxx"
We are using this to setup new dev machines, and now have to manually enter keys afterwards.
The package installation exits as a failure when the VS installer exits with 3010
, which is the restart required code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.