Created
June 9, 2015 18:35
-
-
Save dgrstl/ad7a1449cd33cc932033 to your computer and use it in GitHub Desktop.
Choco installdir problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2. When I install notepadplusplus and If I force it to get installed on e:\notepadplusplus. Chocolatey logs shows its installed and it gets installed in c:\program files\notepad++. I don’t see any errors in the chocolatey logs. | |
Puppet code: | |
class learn03{ | |
if $::kernel == windows{ | |
Package { provider =>chocolatey} | |
} | |
package { 'notepadplusplus.install': | |
ensure => installed, | |
provider => 'chocolatey', | |
#source => 'E:\Binaries\npp.6.1.2.Installer.exe' | |
install_options => ['--force', '-ia', '"INSTALLDIR=""E:\notepadplusplus"""'], | |
} | |
} | |
Log Snippet: | |
2015-06-08 21:50:03,846 [INFO ] - ============================================================ | |
2015-06-08 21:50:04,021 [INFO ] - Chocolatey v0.9.9.6 | |
2015-06-08 21:50:04,036 [DEBUG] - Chocolatey is running on Windows v 6.1.7601.65536 | |
2015-06-08 21:50:04,036 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old". | |
2015-06-08 21:50:04,036 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old". | |
2015-06-08 21:50:04,052 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install notepadplusplus.install -dvy --force -ia "INSTALLDIR=""E:\notepadplusplus""" | |
2015-06-08 21:50:04,052 [DEBUG] - Received arguments: install notepadplusplus.install -dvy --force -ia INSTALLDIR="E:\notepadplusplus" | |
2015-06-08 21:50:04,114 [DEBUG] - | |
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. | |
2015-06-08 21:50:04,130 [DEBUG] - Configuration: CommandName='install'| | |
CacheLocation='C:\Users\kxr2233\AppData\Local\Temp\9'| | |
ContainsLegacyPackageInstalls='True'| | |
CommandExecutionTimeoutSeconds='2700'| | |
Sources='https://chocolatey.org/api/v2/'|Debug='True'|Verbose='True'| | |
Force='True'|Noop='False'|HelpRequested='False'|RegularOutput='True'| | |
PromptForConfirmation='False'|AcceptLicense='True'| | |
AllowUnofficialBuild='False'|Input='notepadplusplus.install'| | |
AllVersions='False'|SkipPackageInstallProvider='False'| | |
PackageNames='notepadplusplus.install'|Prerelease='False'| | |
ForceX86='False'|InstallArguments='INSTALLDIR="E:\notepadplusplus"'| | |
OverrideArguments='False'|NotSilent='False'|IgnoreDependencies='False'| | |
AllowMultipleVersions='False'|ForceDependencies='False'| | |
Information.PlatformType='Windows'| | |
Information.PlatformVersion='6.1.7601.65536'| | |
Information.PlatformName='Windows Server 2008 R2'| | |
Information.ChocolateyVersion='0.9.9.6'| | |
Information.ChocolateyProductVersion='0.9.9.6'| | |
Information.FullName='choco, Version=0.9.9.6, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'| | |
Information.Is64Bit='True'|Information.IsInteractive='True'| | |
Information.IsUserAdministrator='True'| | |
Information.IsProcessElevated='True'|Features.AutoUninstaller='True'| | |
Features.CheckSumFiles='True'|ListCommand.LocalOnly='False'| | |
ListCommand.IncludeRegistryPrograms='False'| | |
UpgradeCommand.FailOnUnfound='False'| | |
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'| | |
NewCommand.AutomaticPackage='False'|SourceCommand.Command='unknown'| | |
FeatureCommand.Command='unknown'|PushCommand.TimeoutInSeconds='0'| | |
PinCommand.Command='unknown'| | |
2015-06-08 21:50:04,146 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _ | |
2015-06-08 21:50:04,146 [INFO ] - Installing the following packages: | |
2015-06-08 21:50:04,146 [INFO ] - notepadplusplus.install | |
2015-06-08 21:50:04,161 [INFO ] - By installing you accept licenses for the packages. | |
2015-06-08 21:50:05,659 [INFO ] - [NuGet] Installing 'notepadplusplus.install 6.7.7'. | |
2015-06-08 21:50:05,674 [DEBUG] - [NuGet] Added file 'chocolateyInstall.ps1' to folder 'notepadplusplus.install\tools'. | |
2015-06-08 21:50:05,674 [DEBUG] - [NuGet] Added file 'notepadplusplus.install.nupkg' to folder 'notepadplusplus.install'. | |
2015-06-08 21:50:05,674 [INFO ] - [NuGet] Successfully installed 'notepadplusplus.install 6.7.7'. | |
2015-06-08 21:50:05,690 [INFO ] - | |
notepadplusplus.install v6.7.7 (forced) | |
2015-06-08 21:50:05,737 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\notepadplusplus.install\tools\chocolateyInstall.ps1': | |
2015-06-08 21:50:05,752 [DEBUG] - Install-ChocolateyPackage 'notepadplusplus' 'exe' '/S' 'http://notepad-plus-plus.org/repository/6.x/6.7.7/npp.6.7.7.Installer.exe'; | |
2015-06-08 21:50:05,752 [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\notepadplusplus.install\tools\chocolateyInstall.ps1' -installArguments 'INSTALLDIR="E:\notepadplusplus"' -packageParameters ''"'] | |
2015-06-08 21:50:06,111 [DEBUG] - DEBUG: Posh version is 2.0 | |
2015-06-08 21:50:06,205 [DEBUG] - DEBUG: Loading community extensions | |
2015-06-08 21:50:06,220 [INFO ] - VERBOSE: Exporting function 'Get-BinRoot'. | |
2015-06-08 21:50:06,220 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'. | |
2015-06-08 21:50:06,220 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'. | |
2015-06-08 21:50:06,220 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'. | |
2015-06-08 21:50:06,220 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'. | |
2015-06-08 21:50:06,220 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'. | |
2015-06-08 21:50:06,220 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'. | |
2015-06-08 21:50:06,220 [INFO ] - VERBOSE: Exporting function 'Get-ProcessorBits'. | |
2015-06-08 21:50:06,220 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'. | |
2015-06-08 21:50:06,220 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'. | |
2015-06-08 21:50:06,220 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyDesktopLink'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'UnInstall-ChocolateyZipPackage'. | |
2015-06-08 21:50:06,236 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'. | |
2015-06-08 21:50:06,252 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateyFailure'. | |
2015-06-08 21:50:06,252 [INFO ] - VERBOSE: Exporting function 'Write-ChocolateySuccess'. | |
2015-06-08 21:50:06,252 [INFO ] - VERBOSE: Exporting function 'Write-FileUpdateLog'. | |
2015-06-08 21:50:06,252 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'. | |
2015-06-08 21:50:06,252 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'. | |
2015-06-08 21:50:06,252 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'. | |
2015-06-08 21:50:06,267 [DEBUG] - DEBUG: Running 'Install-ChocolateyPackage' for notepadplusplus with | |
2015-06-08 21:50:06,267 [INFO ] - url:'http://notepad-plus-plus.org/repository/6.x/6.7.7/npp.6.7.7.Installer.exe'; | |
2015-06-08 21:50:06,267 [INFO ] - , args: '/S', fileType: 'exe', url64bit: '', checksum: '', checksumType: '', | |
2015-06-08 21:50:06,267 [INFO ] - checksum64: '', checksumType64: '', validExitCodes: '0' | |
2015-06-08 21:50:06,267 [DEBUG] - DEBUG: Running 'Get-ChocolateyWebFile' for notepadplusplus with | |
2015-06-08 21:50:06,267 [INFO ] - url:'http://notepad-plus-plus.org/repository/6.x/6.7.7/npp.6.7.7.Installer.exe'; | |
2015-06-08 21:50:06,267 [INFO ] - , | |
2015-06-08 21:50:06,283 [INFO ] - fileFullPath:'C:\Users\kxr2233\AppData\Local\Temp\9\chocolatey\notepadplusplus\ | |
2015-06-08 21:50:06,283 [INFO ] - notepadplusplusInstall.exe', url64bit:'', checksum: '', checksumType: '', | |
2015-06-08 21:50:06,283 [INFO ] - checksum64: '', checksumType64: '' | |
2015-06-08 21:50:06,283 [DEBUG] - DEBUG: Running 'Get-ProcessorBits' | |
2015-06-08 21:50:06,283 [DEBUG] - DEBUG: CPU is 64 bit | |
2015-06-08 21:50:06,283 [DEBUG] - DEBUG: Running 'Get-WebHeaders' with | |
2015-06-08 21:50:06,283 [INFO ] - url:'http://notepad-plus-plus.org/repository/6.x/6.7.7/npp.6.7.7.Installer.exe'; | |
2015-06-08 21:50:06,283 [INFO ] - , userAgent: 'chocolatey command line' | |
2015-06-08 21:50:06,330 [INFO ] - Using this proxyserver: vss-proxy.sfg.corp.local:8080 | |
2015-06-08 21:50:06,345 [DEBUG] - DEBUG: Setting the UserAgent to 'chocolatey command line' | |
2015-06-08 21:50:06,345 [DEBUG] - DEBUG: Request Headers: | |
2015-06-08 21:50:06,345 [DEBUG] - DEBUG: 'Accept':'*/*' | |
2015-06-08 21:50:06,345 [DEBUG] - DEBUG: 'User-Agent':'chocolatey command line' | |
2015-06-08 21:50:07,281 [DEBUG] - DEBUG: Response Headers: | |
2015-06-08 21:50:07,297 [DEBUG] - DEBUG: 'Connection':'keep-alive' | |
2015-06-08 21:50:07,297 [DEBUG] - DEBUG: 'Notepad++':'Thanks for flying Notepad++' | |
2015-06-08 21:50:07,297 [DEBUG] - DEBUG: 'CDN':'IWI.ME' | |
2015-06-08 21:50:07,297 [DEBUG] - DEBUG: 'CDN-ID':'piko' | |
2015-06-08 21:50:07,297 [DEBUG] - DEBUG: 'Strict-Transport-Security':'max-age=63072000' | |
2015-06-08 21:50:07,297 [DEBUG] - DEBUG: 'X-Frame-Options':'DENY' | |
2015-06-08 21:50:07,297 [DEBUG] - DEBUG: 'X-Content-Type-Options':'nosniff' | |
2015-06-08 21:50:07,297 [DEBUG] - DEBUG: 'Accept-Ranges':'bytes' | |
2015-06-08 21:50:07,297 [DEBUG] - DEBUG: 'Content-Length':'8254766' | |
2015-06-08 21:50:07,297 [DEBUG] - DEBUG: 'Content-Type':'application/x-msdos-program' | |
2015-06-08 21:50:07,312 [DEBUG] - DEBUG: 'Date':'Tue, 09 Jun 2015 02:50:06 GMT' | |
2015-06-08 21:50:07,312 [DEBUG] - DEBUG: 'Last-Modified':'Wed, 15 Apr 2015 23:44:38 GMT' | |
2015-06-08 21:50:07,312 [DEBUG] - DEBUG: 'Server':'nginx/1.6.2' | |
2015-06-08 21:50:07,312 [DEBUG] - DEBUG: notepadplusplus's requested file has already been downloaded. Using | |
2015-06-08 21:50:07,312 [INFO ] - cached copy at | |
2015-06-08 21:50:07,312 [INFO ] - 'C:\Users\kxr2233\AppData\Local\Temp\9\chocolatey\notepadplusplus\notepadpluspl | |
2015-06-08 21:50:07,312 [INFO ] - usInstall.exe'. | |
2015-06-08 21:50:09,303 [DEBUG] - DEBUG: Checking that | |
2015-06-08 21:50:09,303 [INFO ] - 'C:\Users\kxr2233\AppData\Local\Temp\9\chocolatey\notepadplusplus\notepadpluspl | |
2015-06-08 21:50:09,303 [INFO ] - usInstall.exe' is the size we expect it to be. | |
2015-06-08 21:50:09,303 [DEBUG] - DEBUG: Verifying package provided checksum of '' for | |
2015-06-08 21:50:09,303 [INFO ] - 'C:\Users\kxr2233\AppData\Local\Temp\9\chocolatey\notepadplusplus\notepadpluspl | |
2015-06-08 21:50:09,303 [INFO ] - usInstall.exe'. | |
2015-06-08 21:50:09,303 [DEBUG] - DEBUG: Running 'Get-ChecksumValid' with | |
2015-06-08 21:50:09,303 [INFO ] - file:'C:\Users\kxr2233\AppData\Local\Temp\9\chocolatey\notepadplusplus\notepadp | |
2015-06-08 21:50:09,303 [INFO ] - lusplusInstall.exe', checksum: '', checksumType: '' | |
2015-06-08 21:50:09,303 [DEBUG] - DEBUG: Running 'Install-ChocolateyInstallPackage' for notepadplusplus with | |
2015-06-08 21:50:09,303 [INFO ] - file:'C:\Users\kxr2233\AppData\Local\Temp\9\chocolatey\notepadplusplus\notepadp | |
2015-06-08 21:50:09,303 [INFO ] - lusplusInstall.exe', args: '/S', fileType: 'exe', validExitCodes: '0' | |
2015-06-08 21:50:09,303 [INFO ] - Installing notepadplusplus... | |
2015-06-08 21:50:09,321 [DEBUG] - DEBUG: Running 'Start-ChocolateyProcessAsAdmin' with | |
2015-06-08 21:50:09,321 [INFO ] - exeToRun:'C:\Users\kxr2233\AppData\Local\Temp\9\chocolatey\notepadplusplus\note | |
2015-06-08 21:50:09,321 [INFO ] - padplusplusInstall.exe', statements: '/S INSTALLDIR="E:\notepadplusplus"' | |
2015-06-08 21:50:09,321 [DEBUG] - DEBUG: Elevating Permissions and running | |
2015-06-08 21:50:09,353 [INFO ] - C:\Users\kxr2233\AppData\Local\Temp\9\chocolatey\notepadplusplus\notepadplusplu | |
2015-06-08 21:50:09,353 [INFO ] - sInstall.exe /S INSTALLDIR="E:\notepadplusplus". This may take a while, | |
2015-06-08 21:50:09,353 [INFO ] - depending on the statements. | |
2015-06-08 21:50:13,625 [DEBUG] - DEBUG: Finishing 'Start-ChocolateyProcessAsAdmin' | |
2015-06-08 21:50:13,656 [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\notepadplusplus.install\tools\chocolateyInstall.ps1' -installArguments 'INSTALLDIR="E:\notepadplusplus"' -packageParameters ''"'] exited with '0' | |
2015-06-08 21:50:13,828 [INFO ] - notepadplusplus has been installed. | |
2015-06-08 21:50:13,874 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\notepadplusplus.install' | |
2015-06-08 21:50:13,874 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\notepadplusplus.install\notepadplusplus.install.nupkg' | |
with checksum 'F7B3C014D92A9F9BAADB9B4A9576D315' | |
2015-06-08 21:50:13,874 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\notepadplusplus.install\tools\chocolateyInstall.ps1' | |
with checksum 'F73FB259389BDAA54E5AB06F23AB33E7' | |
2015-06-08 21:50:13,890 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\notepadplusplus.install.6.7.7". | |
2015-06-08 21:50:14,140 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\notepadplusplus.install.6.7.7\.sxs". | |
2015-06-08 21:50:14,140 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\notepadplusplus.install.6.7.7\.pin". | |
2015-06-08 21:50:14,140 [INFO ] - The install of notepadplusplus.install was successful. | |
2015-06-08 21:50:14,155 [WARN ] - | |
Chocolatey installed 1/1 package(s). 0 package(s) failed. | |
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). | |
2015-06-08 21:50:14,155 [DEBUG] - Exiting with 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment