Closed pulporange closed 7 years ago
@pulporange, the Chocolatey provider under OneGet project is only a prototype as a proof of concept and Microsoft internal team does not maintain it. In this case, Rob Reynolds is developing the chocolatey provider: https://github.com/chocolatey/chocolatey-oneget. Issue is tracked https://github.com/chocolatey/chocolatey-oneget/issues/5
Hi @jianyunt i've build the c# project with VStudio => it creates a bunch of dll, future chocolatey provider for PackageManagement, correct me if i'm wrong i've installed them using the p$ script provided on the github repo install-provider.ps1
Here is a result
PS C:\> Get-PackageProvider -ListAvailable
Choco 1.0.0.0
chocolatey 1.0.0.0
msi 3.0.0.0 AdditionalArguments
msu 3.0.0.0
NuGet 2.8.5.206 Destination, ExcludeVersion, Scope, Headers, FilterOnTag, Contains, AllowP...
PowerShellGet 1.0.0.1 PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, ...
Programs 3.0.0.0 IncludeWindowsInstaller, IncludeSystemComponent
Maybe i'm missing something but the the Register-PackageSource is not ok
PS C:\> Register-PackageSource -Name "chocolatey" -Location "http://chocolatey.org/api/v2/" -ProviderName "Choco" -Verbose
VERBOSE: Performing the operation "Register Package Source." on target "Package Source 'chocolatey'
(http://chocolatey.org/api/v2/) in provider 'Choco'.".
PS C:\> Get-PackageSource
nuget.org NuGet False https://api.nuget.org/v3/index.json
PSGallery PowerShellGet True https://www.powershellgallery.com/api/v2/
It looks like Choco has not implemented OneGet/AddPackageSource() which supports Register-PackageSource cmdlet. @ferventcoder, any plan to support it?
The source at that location is still behind and with where Garrett had left it at that point. We should support whatever is needed to make it work correctly.
@pulporange, can you try the ChocolateyGet provider instead to see if it satisfies your scenario.
Hi @jianyunt Sorry for the late response, i'll give it a try this week-end Thanks for the update on this
I've tested it from provider install to app uninstall, it works like a charm
Hi there i've tried to install ie. vlc and keepass package through Install-Package Multiple times [chocolatey provider]
other packages ie: git, 7zip, notepad++,ccleaner where installed flawlessly with Install-Package
`PS C:\WINDOWS\system32> Find-package vlc -ProviderName chocolatey | Install-Package -Verbose VERBOSE: Performing the operation "Install Package" on target "Package 'vlc' version '2.2.4' from 'chocolatey'.". VERBOSE: NuGet: Installing 'vlc 2.2.4'. VERBOSE: NuGet: Successfully installed 'vlc 2.2.4'. VERBOSE: CreateFolder Success C:\Users\Ben-Probook\AppData\Local\Temp\chocolatey\vlc VERBOSE: GetChocolateyWebFile vlc => https://get.videolan.org/vlc/2.2.4/win64/vlc-2.2.4-win64.exe VERBOSE: Launching Process-EXE :'C:\Users\Ben-Probook\AppData\Local\Temp\chocolatey\vlc\vlcinstall.exe' VERBOSE: Exception : DefaultDomain//Win32Exception/The file or directory is corrupted and unreadable at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at Microsoft.PackageManagement.ChocolateyPrototype.Common.AsyncProcess.Start(ProcessStartInfo startInfo, IDictionary environment) at Microsoft.PackageManagement.ChocolateyPrototype.ChocolateyRequest.StartChocolateyProcessAsAdmin(String statements, String exeToRun, Boolean minimized, Boolean noSleep, Int32[] validExitCodes, String workingDirectory) Install-Package : The file or directory is corrupted and unreadable At line:1 char:45
PS C:\WINDOWS\system32>`