-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloaded file is at old $env:TEMP\chocolatey\chocolatey
location, but install calls with just $env:TEMP\chocolatey\
location
#969
Comments
We typically want the full output log please including configuration values. It's possible the fix we implemented for #908 was only a partial fix and caused this issue. |
$env:TEMP\chocolatey\chocolatey
location, but install calls with just $env:TEMP\chocolatey\
location
When seen in other methods, ensure that it replaces the value appropriately.
Only remove the file path from the double chocolatey folder in the temp directory when a file exists at that location.
Generate the ignore after the file location has been determined.
* stable: (GH-969) Generate ignore after $file location (GH-969) Remove double choco folder if file exists (GH-969) Ensure replacement of double chocolatey (doc) update CHANGELOG_LICENSED (GH-971) Expand Env Variables for Config Settings (GH-971) IEnvironment.ExpandEnvironmentVariables (GH-972) Fix - UseOriginalLocation fails w/no 64bit file
The workaround for this is to explicitly set the cacheLocation - |
hmm...I'm still getting this even on v0.10.5. I've run
and I've verified its set correctly with
|
@togakangaroo you see this because you specifically set the cacheLocation that way. Don't. ;) |
Wait I'm confused. I was having the issue already and thought that's what I
was supposed to do. So how do I understand it now?
…On May 15, 2017 5:50 PM, "Rob Reynolds" ***@***.***> wrote:
@togakangaroo <https://github.com/togakangaroo> you see this because you
specifically set the cacheLocation that way. Don't. ;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#969 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAECZqJ2W8zpen3iwD_hYX6q2TANOGxWks5r6Na7gaJpZM4KB0Ra>
.
|
|
If you have the full log file, I think we will see your issue is specifically with setting |
Actually, please file another issue about normalizing the paths of settings. Thanks! |
Ok, Will do, but the above fix didn't work
|
@togakangaroo please provide a full gist of debug / verbose output. The log file actually captured this for your already, so we'll just need to see all the detailed output as it will be more helpful than the default informational output. |
Original title: ERROR: Exception calling "Start" with "0" argument(s): "The directory name is invalid"
What You Are Seeing?
The directory name is invalid error when i install my chocolatey package with Chocolatey v.0.10.1
It seem that chocolatey v.0.10.1 download my package here:
C:\Users\xxxmyusernamexxx\AppData\Local\Temp\chocolatey\chocolatey
But use this path to install it:
C:\Users\xxxmyusernamexxx\AppData\Local\Temp\chocolatey\
What is Expected?
Package installation to complete.
The same package install successfully with Chocolatey v.0.10.0
How Did You Get This To Happen? (Steps to Reproduce)
Install started with:
choco install DSAP.RMQ.VS2012 --allow-empty-checksums --execution-timeout=27000
Here is my chocolate package "DSAP.RMQ.VS2012" content:
$packageName = 'DSAP.RMQ.VS2012'
$url = 'xxxmyurlxxx/en_visual_studio_premium_2012_x86_web_installer_2599080.exe'
$silentArgs = "/S /Passive /NoRestart /ProductKey xxxmyproductkeyxxx"
$fileType = 'EXE'
try {
Install-ChocolateyPackage $packageName $fileType $silentArgs $url
} catch {
throw $_.Exception
}
Output Log
2016-09-20 09:31:59,441 [INFO ] - Download of en_visual_studio_premium_2012_x86_web_installer_2599080.exe (955.23 KB) completed.
2016-09-20 09:31:59,441 [INFO ] -
2016-09-20 09:32:02,457 [DEBUG] - No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare
2016-09-20 09:32:02,457 [DEBUG] - Checking that 'C:\Users\xxxmyusernamexxx\AppData\Local\Temp\chocolatey\chocolatey\DSAP.RMQ.VS2012\1.0.0.1\en_visual_studio_premium_2012_x86_web_installer_2599080.exe' is the size we expect it to be.
2016-09-20 09:32:02,457 [DEBUG] - Verifying package provided checksum of '' for 'C:\Users\xxxmyusernamexxx\AppData\Local\Temp\chocolatey\chocolatey\DSAP.RMQ.VS2012\1.0.0.1\en_visual_studio_premium_2012_x86_web_installer_2599080.exe'.
2016-09-20 09:32:02,472 [DEBUG] - Running 'Get-ChecksumValid' with file:'C:\Users\xxxmyusernamexxx\AppData\Local\Temp\chocolatey\chocolatey\DSAP.RMQ.VS2012\1.0.0.1\en_visual_studio_premium_2012_x86_web_installer_2599080.exe', checksum: '', checksumType: '', originalUrl: 'xxxmyurlxxx/en_visual_studio_premium_2012_x86_web_installer_2599080.exe'
2016-09-20 09:32:02,472 [DEBUG] - Empty checksums are allowed due to allowEmptyChecksums feature or option.
2016-09-20 09:32:02,488 [DEBUG] - Running 'Install-ChocolateyInstallPackage' for DSAP.RMQ.VS2012 with file:'C:\Users\xxxmyusernamexxx\AppData\Local\Temp\chocolatey\chocolatey\DSAP.RMQ.VS2012\1.0.0.1\en_visual_studio_premium_2012_x86_web_installer_2599080.exe', args: '/S /Passive /NoRestart /ProductKey xxxmyproductkeyxxx', fileType: 'EXE', validExitCodes: '0', useOnlyPackageSilentArguments: 'False'
2016-09-20 09:32:02,488 [INFO ] - Installing DSAP.RMQ.VS2012...
2016-09-20 09:32:02,488 [INFO ] -
2016-09-20 09:32:02,488 [INFO ] - Installing DSAP.RMQ.VS2012...
2016-09-20 09:32:02,535 [DEBUG] - Running 'Start-ChocolateyProcessAsAdmin' with exeToRun:'C:\Users\xxxmyusernamexxx\AppData\Local\Temp\chocolatey\DSAP.RMQ.VS2012\1.0.0.1\en_visual_studio_premium_2012_x86_web_installer_2599080.exe', statements: '/S /Passive /NoRestart /ProductKey xxxmyproductkeyxxx ', workingDirectory: 'C:\Users\xxxmyusernamexxx\AppData\Local\Temp\chocolatey\DSAP.RMQ.VS2012\1.0.0.1'
2016-09-20 09:32:02,535 [DEBUG] - Elevating Permissions and running ["C:\Users\xxxmyusernamexxx\AppData\Local\Temp\chocolatey\DSAP.RMQ.VS2012\1.0.0.1\en_visual_studio_premium_2012_x86_web_installer_2599080.exe" /S /Passive /NoRestart /ProductKey xxxmyproductkeyxxx ]. This may take a while, depending on the statements.
2016-09-20 09:32:02,535 [WARN ] - WARNING: May not be able to find 'C:\Users\xxxmyusernamexxx\AppData\Local\Temp\chocolatey\DSAP.RMQ.VS2012\1.0.0.1\en_visual_studio_premium_2012_x86_web_installer_2599080.exe'. Please use full path for executables.
2016-09-20 09:32:02,535 [INFO ] - WARNING: May not be able to find 'C:\Users\xxxmyusernamexxx\AppData\Local\Temp\chocolatey\DSAP.RMQ.VS2012\1.0.0.1\en_visual_studio_premium_2012_x86_web_installer_2599080.exe'. Please use full path for executables.
2016-09-20 09:32:02,660 [DEBUG] - Setting RunAs for elevation
2016-09-20 09:32:02,691 [ERROR] - ERROR: Exception calling "Start" with "0" argument(s): "The directory name is invalid"
2016-09-20 09:32:02,691 [INFO ] - ERROR: Exception calling "Start" with "0" argument(s): "The directory name is invalid"
2016-09-20 09:32:02,707 [DEBUG] - Built-in PowerShell host called with ['[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\DSAP.RMQ.VS2012\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
The text was updated successfully, but these errors were encountered: