{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/52","labels_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/52/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/52/events","html_url":"https://github.com/chocolatey/chocolatey-cookbook/issues/52","id":107981248,"number":52,"title":"Installing VisualStudio appears to work, but actually doesn't","user":{"login":"TemporarilyOffline","id":6640956,"avatar_url":"https://avatars.githubusercontent.com/u/6640956?v=3","gravatar_id":"","url":"https://api.github.com/users/TemporarilyOffline","html_url":"https://github.com/TemporarilyOffline","followers_url":"https://api.github.com/users/TemporarilyOffline/followers","following_url":"https://api.github.com/users/TemporarilyOffline/following{/other_user}","gists_url":"https://api.github.com/users/TemporarilyOffline/gists{/gist_id}","starred_url":"https://api.github.com/users/TemporarilyOffline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TemporarilyOffline/subscriptions","organizations_url":"https://api.github.com/users/TemporarilyOffline/orgs","repos_url":"https://api.github.com/users/TemporarilyOffline/repos","events_url":"https://api.github.com/users/TemporarilyOffline/events{/privacy}","received_events_url":"https://api.github.com/users/TemporarilyOffline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-23T18:41:25Z","updated_at":"2015-12-24T05:28:58Z","closed_at":null,"body":"Not sure if this is the right place to put this...\r\n\r\nI have a chef recipe that runs the following code block:\r\n\r\n```ruby\r\ninclude_recipe 'chocolatey'\r\n\r\nchocolatey 'visualstudio2013ultimate' \r\n\r\nchocolatey 'visualstudio2013ultimate' do\r\n  args '--force'\r\nend\r\n```\r\nOn the first run I get the output:\r\n\r\n```\r\n       Recipe: windows-build-agent::chocostudio\r\n       \r\n           * execute[install package visualstudio2013ultimate] action run\r\n             - execute \"C:\\ProgramData\\chocolatey/bin/choco\" install -y  visualstudio2013ultimate\r\n         \r\n        (up to date)\r\n```\r\n\r\nOn the second run I get the output:\r\n\r\n```\r\n       Recipe: windows-build-agent::chocostudio\r\n        (up to date)\r\n        (up to date)\r\n```\r\nneither of them actually install VS.  If I log into the instance and run choco install, I get this:\r\n\r\n```\r\nPS C:\\programdata\\chocolatey> .\\choco.exe install visualstudio2013ultimate\r\nChocolatey v0.9.9.8\r\nInstalling the following packages:\r\nvisualstudio2013ultimate\r\nBy installing you accept licenses for the packages.\r\nVisualStudio2013Ultimate v12.0.21005.20141031 already installed.\r\n Use --force to reinstall, specify a version to install, or try upgrade.\r\n\r\nChocolatey installed 0/1 package(s). 0 package(s) failed.\r\n 1 package(s) had warnings.\r\n See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).\r\nWarnings:\r\n - visualstudio2013ultimate\r\n```\r\nThe programs do not show up on disk, nor start menu.  The log file is as follows:\r\n\r\n```\r\n2015-09-23 18:22:13,475 [DEBUG] - Command line: \"C:\\ProgramData\\chocolatey\\choco.exe\" install -y visualstudio2013ultimate\r\n2015-09-23 18:22:13,475 [DEBUG] - Received arguments: install -y visualstudio2013ultimate\r\n2015-09-23 18:22:13,553 [DEBUG] - \r\nNOTE: Hiding sensitive configuration data! Please double and triple \r\n check to be sure no sensitive data is shown, especially if copying \r\n output to a gist for review.\r\n2015-09-23 18:22:13,569 [DEBUG] - Configuration: CommandName='install'|\r\nCacheLocation='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp'|\r\nContainsLegacyPackageInstalls='True'|\r\nCommandExecutionTimeoutSeconds='2700'|\r\nSources='https://chocolatey.org/api/v2/'|Debug='False'|Verbose='False'|\r\nForce='False'|Noop='False'|HelpRequested='False'|RegularOutput='True'|\r\nPromptForConfirmation='False'|AcceptLicense='True'|\r\nAllowUnofficialBuild='False'|Input='visualstudio2013ultimate'|\r\nAllVersions='False'|SkipPackageInstallProvider='False'|\r\nPackageNames='visualstudio2013ultimate'|Prerelease='False'|\r\nForceX86='False'|OverrideArguments='False'|NotSilent='False'|\r\nIgnoreDependencies='False'|AllowMultipleVersions='False'|\r\nForceDependencies='False'|Information.PlatformType='Windows'|\r\nInformation.PlatformVersion='6.3.9600.0'|\r\nInformation.PlatformName='Windows Server 2012 R2'|\r\nInformation.ChocolateyVersion='0.9.9.8'|\r\nInformation.ChocolateyProductVersion='0.9.9.8'|\r\nInformation.FullName='choco, Version=0.9.9.8, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|\r\n\r\nInformation.Is64Bit='True'|Information.IsInteractive='False'|\r\nInformation.IsUserAdministrator='True'|\r\nInformation.IsProcessElevated='True'|Features.AutoUninstaller='False'|\r\nFeatures.CheckSumFiles='True'|Features.FailOnAutoUninstaller='False'|\r\nListCommand.LocalOnly='False'|\r\nListCommand.IncludeRegistryPrograms='False'|\r\nUpgradeCommand.FailOnUnfound='False'|\r\nUpgradeCommand.FailOnNotInstalled='False'|\r\nUpgradeCommand.NotifyOnlyAvailableUpgrades='False'|\r\nNewCommand.AutomaticPackage='False'|SourceCommand.Command='unknown'|\r\nFeatureCommand.Command='unknown'|PushCommand.TimeoutInSeconds='0'|\r\nPinCommand.Command='unknown'|\r\n2015-09-23 18:22:13,585 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _\r\n2015-09-23 18:22:13,585 [INFO ] - Installing the following packages:\r\n2015-09-23 18:22:13,585 [INFO ] - visualstudio2013ultimate\r\n2015-09-23 18:22:13,585 [INFO ] - By installing you accept licenses for the packages.\r\n2015-09-23 18:22:17,538 [INFO ] - \r\nDotNet4.5.1 v4.5.1.20140606\r\n2015-09-23 18:22:17,585 [DEBUG] - Contents of 'C:\\ProgramData\\chocolatey\\lib\\DotNet4.5.1\\Tools\\ChocolateyInstall.ps1':\r\n2015-09-23 18:22:17,600 [DEBUG] - if(-not (test-path \"hklm:\\SOFTWARE\\Microsoft\\.NETFramework\\v4.0.30319\\SKUs\\.NETFramework,Version=v4.5.1\")) {\r\nInstall-ChocolateyPackage 'dotnet451' 'exe' \"/Passive /NoRestart /Log $env:temp\\net451.log\" 'http://download.microsoft.com/download/7/4/0/74078A56-A3A1-492D-BBA9-865684B83C1B/NDP451-KB2859818-Web.exe' -validExitCodes @(0,3010)\r\n}\r\nelse {\r\n     Write-Host \"Microsoft .Net 4.5.1 Framework is already installed on your machine.\"\r\n } \r\n\r\n2015-09-23 18:22:17,616 [DEBUG] - Calling 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\\DotNet4.5.1\\Tools\\ChocolateyInstall.ps1' -installArguments '' -packageParameters ''\"']\r\n2015-09-23 18:22:18,491 [INFO ] -  Microsoft .Net 4.5.1 Framework is already installed on your machine.\r\n2015-09-23 18:22:18,522 [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\\DotNet4.5.1\\Tools\\ChocolateyInstall.ps1' -installArguments '' -packageParameters ''\"'] exited with '0'\r\n2015-09-23 18:22:18,522 [DEBUG] - Calling command ['\"shutdown\" /a']\r\n2015-09-23 18:22:18,569 [DEBUG] - Command ['\"shutdown\" /a'] exited with '1116'\r\n2015-09-23 18:22:18,585 [DEBUG] - Capturing package files in 'C:\\ProgramData\\chocolatey\\lib\\DotNet4.5.1'\r\n2015-09-23 18:22:18,585 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\DotNet4.5.1\\dotnet.png'\r\n  with checksum '0D5A15B93F47DF7F91B24A14C7CE91FE'\r\n2015-09-23 18:22:18,585 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\DotNet4.5.1\\DotNet4.5.1.nupkg'\r\n  with checksum '644E236231ADA16E07DA6C9B9612F508'\r\n2015-09-23 18:22:18,585 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\DotNet4.5.1\\Tools\\ChocolateyInstall.ps1'\r\n  with checksum '805DDE099F331DF8A4F0D47BE8D47E7C'\r\n2015-09-23 18:22:18,600 [DEBUG] - Attempting to create directory \"C:\\ProgramData\\chocolatey\\extensions\".\r\n2015-09-23 18:22:18,600 [DEBUG] - Attempting to create directory \"C:\\ProgramData\\chocolatey\\.chocolatey\".\r\n2015-09-23 18:22:18,616 [DEBUG] - Attempting to create directory \"C:\\ProgramData\\chocolatey\\.chocolatey\\DotNet4.5.1.4.5.1.20140606\".\r\n2015-09-23 18:22:18,631 [DEBUG] - Attempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\DotNet4.5.1.4.5.1.20140606\\.sxs\".\r\n2015-09-23 18:22:18,631 [DEBUG] - Attempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\DotNet4.5.1.4.5.1.20140606\\.pin\".\r\n2015-09-23 18:22:18,631 [INFO ] -  The install of dotnet4.5.1 was successful.\r\n2015-09-23 18:22:18,631 [INFO ] - \r\nVisualStudio2013Ultimate v12.0.21005.20141031\r\n2015-09-23 18:22:18,631 [DEBUG] - Contents of 'C:\\ProgramData\\chocolatey\\lib\\VisualStudio2013Ultimate\\Tools\\ChocolateyInstall.ps1':\r\n2015-09-23 18:22:18,631 [DEBUG] - . (Join-Path $(Split-Path -parent $MyInvocation.MyCommand.Definition) 'common.ps1')\r\n\r\n$adminFile = (Join-Path $(Split-Path -parent $MyInvocation.MyCommand.Definition) 'AdminDeployment.xml')\r\n$customArgs = $env:chocolateyInstallArguments\r\n$env:chocolateyInstallArguments=\"\"\r\n\r\n$settings = Initialize-VS-Settings $customArgs $adminFile\r\n$installerArgs = Get-VS-Installer-Args $settings.ProductKey\r\n\r\nInstall-ChocolateyPackage 'VisualStudio2013Ultimate' 'exe' $installerArgs 'http://download.microsoft.com/download/C/F/B/CFBB5FF1-0B27-42E0-8141-E4D6DA0B8B13/vs_ultimate_download.exe'\r\n\r\n2015-09-23 18:22:18,631 [DEBUG] - Calling 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\\VisualStudio2013Ultimate\\Tools\\ChocolateyInstall.ps1' -installArguments '' -packageParameters ''\"']\r\n2015-09-23 18:22:19,928 [INFO ] -  Downloading VisualStudio2013Ultimate 32 bit\r\n2015-09-23 18:22:19,944 [INFO ] -    from 'http://download.microsoft.com/download/C/F/B/CFBB5FF1-0B27-42E0-8141-E4D6DA0B8B13/vs_ultimate_download.exe'\r\n2015-09-23 18:22:22,428 [INFO ] -  Installing VisualStudio2013Ultimate...\r\n2015-09-23 18:22:29,038 [INFO ] -  VisualStudio2013Ultimate has been installed.\r\n2015-09-23 18:22:29,053 [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\\VisualStudio2013Ultimate\\Tools\\ChocolateyInstall.ps1' -installArguments '' -packageParameters ''\"'] exited with '0'\r\n2015-09-23 18:22:29,053 [DEBUG] - Calling command ['\"shutdown\" /a']\r\n2015-09-23 18:22:29,085 [DEBUG] - Command ['\"shutdown\" /a'] exited with '1116'\r\n2015-09-23 18:22:29,100 [DEBUG] - Capturing package files in 'C:\\ProgramData\\chocolatey\\lib\\VisualStudio2013Ultimate'\r\n2015-09-23 18:22:29,100 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\VisualStudio2013Ultimate\\VisualStudio2013Ultimate.nupkg'\r\n  with checksum '307AA81594B864085363287C08054360'\r\n2015-09-23 18:22:29,100 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\VisualStudio2013Ultimate\\Tools\\AdminDeployment.xml'\r\n  with checksum '01F61D4825533688114F2225072F92E4'\r\n2015-09-23 18:22:29,100 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\VisualStudio2013Ultimate\\Tools\\ChocolateyInstall.ps1'\r\n  with checksum '557ED94554A30A376F8C4580ADA76041'\r\n2015-09-23 18:22:29,100 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\VisualStudio2013Ultimate\\Tools\\ChocolateyUninstall.ps1'\r\n  with checksum 'F1A1396EC8B29639871B06C1360ACC3D'\r\n2015-09-23 18:22:29,100 [DEBUG] -  Found 'C:\\ProgramData\\chocolatey\\lib\\VisualStudio2013Ultimate\\Tools\\common.ps1'\r\n  with checksum 'CAD2FE3515E9D169FA58CD3ECC49A900'\r\n2015-09-23 18:22:29,100 [DEBUG] - Attempting to create directory \"C:\\ProgramData\\chocolatey\\.chocolatey\\VisualStudio2013Ultimate.12.0.21005.20141031\".\r\n2015-09-23 18:22:29,100 [DEBUG] - Attempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\VisualStudio2013Ultimate.12.0.21005.20141031\\.sxs\".\r\n2015-09-23 18:22:29,100 [DEBUG] - Attempting to delete file \"C:\\ProgramData\\chocolatey\\.chocolatey\\VisualStudio2013Ultimate.12.0.21005.20141031\\.pin\".\r\n2015-09-23 18:22:29,100 [INFO ] -  The install of visualstudio2013ultimate was successful.\r\n```\r\nIf I manually run `choco install --force visualstudio2013ultimate` after all of this, it will install just fine.\r\n\r\nAny suggestions?\r\n\r\nWindows server 2012R2 with .NET 4.5.2 installed (manually) build from an AWS AMI\r\n"},"comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/comments/167044629","html_url":"https://github.com/chocolatey/chocolatey-cookbook/issues/52#issuecomment-167044629","issue_url":"https://api.github.com/repos/chocolatey/chocolatey-cookbook/issues/52","id":167044629,"user":{"login":"mwrock","id":655165,"avatar_url":"https://avatars.githubusercontent.com/u/655165?v=3","gravatar_id":"","url":"https://api.github.com/users/mwrock","html_url":"https://github.com/mwrock","followers_url":"https://api.github.com/users/mwrock/followers","following_url":"https://api.github.com/users/mwrock/following{/other_user}","gists_url":"https://api.github.com/users/mwrock/gists{/gist_id}","starred_url":"https://api.github.com/users/mwrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwrock/subscriptions","organizations_url":"https://api.github.com/users/mwrock/orgs","repos_url":"https://api.github.com/users/mwrock/repos","events_url":"https://api.github.com/users/mwrock/events{/privacy}","received_events_url":"https://api.github.com/users/mwrock/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T05:28:58Z","updated_at":"2015-12-24T05:28:58Z","body":"Are you running the chef client remotely via winrm? The issue with dotnet and visual studio is that they pull down some bits via windows update server which will fail via winrm. Using a scheduled task will allow it to run in a local context. It's not that it needs an interactive user so much as a local one."}}