Skip to content

Instantly share code, notes, and snippets.

@docwhat
Created Dec 7, 2015
Embed
What would you like to do?
choco install dotnet3.5 fails (but succeeds?)
PS C:\Users\Administrator> choco install dotnet3.5 -debug -yes
Chocolatey is running on Windows v 6.3.9600.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install dotnet3.5 -debug -yes
Received arguments: install dotnet3.5 -debug -yes
NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
Configuration: CommandName='install'|
CacheLocation='C:\Users\ADMINI~1\AppData\Local\Temp\2'|
ContainsLegacyPackageInstalls='True'|
CommandExecutionTimeoutSeconds='2700'|
Sources='https://chocolatey.org/api/v2/'|Debug='True'|Verbose='False'|
Force='False'|Noop='False'|HelpRequested='False'|RegularOutput='True'|
QuietOutput='False'|PromptForConfirmation='False'|AcceptLicense='True'|
AllowUnofficialBuild='False'|Input='dotnet3.5'|AllVersions='False'|
SkipPackageInstallProvider='False'|PackageNames='dotnet3.5'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|IgnoreDependencies='False'|
AllowMultipleVersions='False'|AllowDowngrade='False'|
ForceDependencies='False'|Information.PlatformType='Windows'|
Information.PlatformVersion='6.3.9600.0'|
Information.PlatformName='Windows Server 2012 R2'|
Information.ChocolateyVersion='0.9.9.11'|
Information.ChocolateyProductVersion='0.9.9.11'|
Information.FullName='choco, Version=0.9.9.11, Culture=neutral, PublicKeyToken=xxxxxxxxxx'|
Information.Is64Bit='True'|Information.IsInteractive='True'|
Information.IsUserAdministrator='True'|
Information.IsProcessElevated='True'|Features.AutoUninstaller='False'|
Features.CheckSumFiles='True'|Features.FailOnAutoUninstaller='False'|
ListCommand.LocalOnly='False'|
ListCommand.IncludeRegistryPrograms='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
NewCommand.AutomaticPackage='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|FeatureCommand.Command='unknown'|
ConfigCommand.Command='unknown'|PushCommand.TimeoutInSeconds='0'|
PinCommand.Command='unknown'|
_ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
Installing the following packages:
dotnet3.5
By installing you accept licenses for the packages.
[NuGet] Installing 'DotNet3.5 3.5.20140403'.
[NuGet] Added file 'dotnet.png' to folder 'DotNet3.5'.
[NuGet] Added file 'ChocolateyInstall.ps1' to folder 'DotNet3.5\Tools'.
[NuGet] Added file 'DotNet3.5.nupkg' to folder 'DotNet3.5'.
[NuGet] Successfully installed 'DotNet3.5 3.5.20140403'.
DotNet3.5 v3.5.20140403
Contents of 'C:\ProgramData\chocolatey\lib\DotNet3.5\Tools\ChocolateyInstall.ps1':
if(-not (test-path "hklm:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5")) {
cinst NetFx3 -source windowsfeatures
}
else {
Write-Host "Microsoft .Net 3.5 Framework is already installed on your machine."
}
Calling command ['"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NoLogo -ExecutionPolicy Bypass
-Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.Current
UICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\ch
ocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\DotNet3.5\Tools\ChocolateyIns
tall.ps1' -installArguments '' -packageParameters ''"']
DEBUG: Posh version is 4.0
DEBUG: Loading community extensions
Installing the following packages:
NetFx3
By installing you accept licenses for the packages.
NetFx3 not installed. The package was not found with the source(s) listed.
If you specified a particular version and are receiving this message, it is possible that the package name exists but
the version does not.
Version: ""
Source(s): "windowsfeatures"
Chocolatey installed 0/1 package(s). 1 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
- NetFx3
Command ['"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -NoLogo -ExecutionPolicy Bypass -Comman
d "[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICultur
e = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey
\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\DotNet3.5\Tools\ChocolateyInstall.ps1
' -installArguments '' -packageParameters ''"'] exited with '0'
Calling command ['"shutdown" /a']
Command ['"shutdown" /a'] exited with '1116'
Capturing package files in 'C:\ProgramData\chocolatey\lib\DotNet3.5'
Found 'C:\ProgramData\chocolatey\lib\DotNet3.5\dotnet.png'
with checksum '0D5A15B93F47DF7F91B24A14C7CE91FE'
Found 'C:\ProgramData\chocolatey\lib\DotNet3.5\DotNet3.5.nupkg'
with checksum '939FC834478CAA7DB9D9177ADFD9F2E4'
Found 'C:\ProgramData\chocolatey\lib\DotNet3.5\Tools\ChocolateyInstall.ps1'
with checksum '3EC80584E56BDCF3C15AFE450C107065'
Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\DotNet3.5.3.5.20140403".
Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\DotNet3.5.3.5.20140403\.files.update"
to "C:\ProgramData\chocolatey\.chocolatey\DotNet3.5.3.5.20140403\.files".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\DotNet3.5.3.5.20140403\.files.update".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\DotNet3.5.3.5.20140403\.sxs".
Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\DotNet3.5.3.5.20140403\.pin".
The install of dotnet3.5 was successful.
Chocolatey installed 1/1 package(s). 0 package(s) failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Exiting with 0
@tntclaus
Copy link

tntclaus commented May 1, 2020

NetFx3 is optional windows feature which is needed by dotnet3.5. It can be enabled through GUI at Software management section of Control Panel or via ansible task:

    - name: Install .Net 3.5
      win_optional_feature:
        name: NetFx3
        state: present
      register: netfx3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment