Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
TheCakeIsNaOH
@TheCakeIsNaOH
There is. What is the output of choco sources?
That error message seems to suggest that the default source for the chocolatey.org community repository is either disabled or removed.
Burt Harris
@BurtHarris
Yes, choco sources just says Chocolatey v0.10.15.
I probably restricted sources earlier, how do I restore them?
TheCakeIsNaOH
@TheCakeIsNaOH
Yep, it seems like the default source was removed. Run choco source add -n chocolatey -s https://chocolatey.org/api/v2/ to add it back.
Burt Harris
@BurtHarris
Perfect, thank you.
Burt Harris
@BurtHarris

OK, so now I'm running choco install vlc. The package vlc v3.0.11 installs , but at the command line I get this message:

ERROR: The term 'Get-AppInstallLocation' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Is Get-AppInstallLocation supposed to be part of the choco install?
P.S. The install seems fine. VLC runs OK.
Burt Harris
@BurtHarris
I found chocolatey/choco#1312 and had to force install chocolatey-core.extension v1.3.3 (which was supposedly already installed.) With that done, the VLC install works without reporting an error.
Burt Harris
@BurtHarris

What does it mean that a package like 7zip has so many variants in the repository? That list seems to start with:

7zip 19.0 [Approved]
7zip-zstd 1.4.5.31 [Approved]
7zip.commandline 16.02.0.20170209 [Approved]
7zip.portable 19.0 [Approved]
7zip.install 19.0 [Approved]

Burt Harris
@BurtHarris
Thanks. The first of these is somewhat confusing by talking about "virtual packages (coming)", but I think I get the idea. I'll keep reading. Thank you.
So, to summarize, the fact that I've got both 7zip and 7zip.install installed doesn't imply any sort of duplication, right?
TheCakeIsNaOH
@TheCakeIsNaOH
Correct.
Burt Harris
@BurtHarris
Both links you provided talk about virtual packages as "coming..." That seems to have been true in 2012, and it's now 2021! (happy new year) Are virtual packages now here?
TheCakeIsNaOH
@TheCakeIsNaOH
Nope. Here is the issue for it: chocolatey/choco#858
Currently planned for choco version 1.x
Frank Kintrup
@kintrupf

[DESKTOP] Connecting to remote server DESKTOP failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x8009030e occurred while using Negotiate authentication: A specified logon session does not exist. It may already have been terminated. Possible causes are: -The user name or password specified are invalid. -Kerberos is used when no authentication method and no user name are specified. -Kerberos accepts domain user names, but not local user names. -The Service Principal Name (SPN) for the remote computer name and port does not exist. -The client and remote computers are in different domains and there is no trust between the two domains. After checking for the above issues, try the following: -Check the Event Viewer for events related to authentication. -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport. Note that computers in the TrustedHosts list might not be authenticated. -For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting

Can anyone help with this error message while upgrading or installing a package? It crept up some weeks ago but does not occur on every upgrade or install. Nor does it prevent the upgrade or install, it's just an extremely annoying red text output during the upgrade/install process. I tried to google the error number and such, but any solution found there did not help.

Tamar Christina
@Mistuke
Hi, Is there a way to check out why automated validation failed? All the things It said (urls etc) I have manually checked and they seem correct.. referring to https://chocolatey.org/packages/cabal/3.4.0.0-rc5
Kim J. Nordmo
@AdmiringWorm
@Mistuke it may be due to missing ciphers on the server that checks the urls. I know missing ciphers is something that @gep13 has on his TODO list to check.
Tamar Christina
@Mistuke
@AdmiringWorm ah ok, that explains why multiple of my packages are failing :) Cheers, I'll try again later in the week
Burt Harris
@BurtHarris
Cypress Semiconductor has an IDE for developing solutions with their PSOC system on a chip devices called PSocCretaor. Its available for free on the web, but they require you to register and sign-in to download the .exe based installer. For example: https://www.cypress.com/file/514131/download. Can I setup a chocolatey package that will send someone to that download sight so they can register or login to download?
Chris Hall
@situssoft
Hi, can anyone tell me if there us a choco command to pin an application to the start menu in W10?
TheCakeIsNaOH
@TheCakeIsNaOH
@BurtHarris I belive it would be techincally possible, however packages on the chocolatey.org repository should be able to install without human interaction, so I don't think it would be allowed. And if you are wanting to upload it to an internal private repository, you should be able to include the exe inside the package, so there is no need to download the exe during install.
TheCakeIsNaOH
@TheCakeIsNaOH
@situssoft Are you talking about actually pinning or just adding to the start menu in general? For adding to the start menu in general, use Install-ChocolateyShortcut. If you are talking about pinning specifically, then no there is not a chocolatey helper to do that. You would have to find/write the powershell to do that.
Burt Harris
@BurtHarris
@TheCakeIsNaOH Thanks, I understand.
Stu
@kewalaka
hey folks - as an experiment I've created a simple chocolatey server using docker. There was an existing version on Hub but it was not setting permissions for package uploads. Mine comes with Pester tests. More of a learning exercise, but posting in case it is useful - https://github.com/kewalaka/chocolatey-server.
It's Windows & .Net 4, so the container is umm, somewhat a 'heavyweight' :-D https://hub.docker.com/r/kewalaka/chocolatey-server
Gary Ewan Park
@gep13
@kewalaka thanks for sharing!
Kevin Weinrich
@kwein1

Newbie to Chocolatey here. Trying to learn how to use it with DSC.
I'm trying to create a custom package that involves a setup.exe and either a PowerShell script or an import of a registry key to customize the installed software for our site. I have a setup.cmd file that does all that.

I see how to create a package for a .EXE or a .MSI. How do I create a single package for a .CMD file, or how do I combine the setup.exe and regkey/.PS1 invocation into a single Chocolatey package?

TheCakeIsNaOH
@TheCakeIsNaOH
You could run the .cmd from the chocolateyInstall.ps1 script. Alternatively, you could use the Install-ChocolateyInstallPackage helper, then after that call the regkey and .ps1 files.
The chocolateyInstall.ps1 script is Powershell, so anything you can do in PowerShell or can call from PowerShell you can do in a Chocolatey package.
Kevin Weinrich
@kwein1
Hmmm, that sounds doable. I should be able to handle the PowerShell, let me see if I can convince Chocolatey to create the package and refer to all the pieces properly (my very first C. package).
TheCakeIsNaOH
@TheCakeIsNaOH
Not exactly the same thing you want to do, but for example, I have a package where in the chocolateyInstall.ps1 script I extract a zip file, then get the certificate from a driver, check if it is installed, install the certificate if needed, install the correct driver, then remove the extra files.
Kevin Weinrich
@kwein1
Cool. The concept is similar. I'll check out your github. Thanks!
TheCakeIsNaOH
@TheCakeIsNaOH
Also, one small thing on the examples, there are two helpers that are similar: Install-ChocolateyPackage used for download and install of an exe/msi, and Install-ChocolateyInstallPackage which is used for install of an exe/msi that is already downloaded (either included inside the package, or downloaded previously in the script, or available on a network drive).
Kevin Weinrich
@kwein1
I thought my eyes were playing tricks on me the first time I saw "Install-ChocolateyInstallPackage" ;-)
And that's the one I want to use, so good to know.
Paul Broadwith
@pauby
@TheCakeIsNaOH++
The chocolatiest bot this side of the Mississippi
@choco-bot
thecakeisnaoh is on the rise! (Karma: 3)
RocketMan
@RocketM96875137_twitter
Are you supposed to include "choco install" with every program when installing multiple programs? Thanks
TheCakeIsNaOH
@TheCakeIsNaOH
Not required, you can specify multiple in one command: choco install packageA packageB packageC etc
RocketMan
@RocketM96875137_twitter
Thanks
Kevin Weinrich
@kwein1

I now have a custom choco package, 'sccm' that appears to work (I need to test it on the remote server to ensure it works). I have added it to a local, Windows file share choco repository/source named 'ORDChoco'. I think I have those two steps right. This is all on server "A", the local server:
```choco list sccm -verbose -source ORDChoco
Chocolatey v0.10.15
sccm 0.1.0.20210106
Title: | Published: 1/8/2021
Number of Downloads: n/a | Downloads for this version: n/a
Package url
Chocolatey Package Source: n/a
Tags:
Software Site: n/a
Software License: n/a
Description: SCCM client install.

1 packages found.```

For my next two tricks, I need to get DSC to send the package to the remote server, "B". When I specify ChocolateyOptions, Source: ORDChoco, it appears to understand my DSC code, because my DSC push says
sccm not installed. The package was not found with the source(s) listed. Source(s): 'ORDChoco'

But then it fails to find the package (and maybe the Source?). I'm guessing that failure is because the Source is on server A. If that's the case, how do I use DSC to tell server B "Use the \A\store share that server A calls ORDChoco to pull the sccm package from A to B, then install it on B"?

(Sorry for the crappy formatting. I need to figure out the markup rules for Gitter)
rohitrg
@rohitrg
Hi,
I need help in creating packages to install on computers with no internet connectivity. This needs to be an offline installation package.
Paul Broadwith
@pauby

@kwein1 Use the cChocoSource resource of cChoco:

configuration ChocoSource {
    Import-DscResource -ModuleName cChoco

    Node 'localhost' {
        cChocoSource ORDChoco {
            Source = "\\serverA\fileshare"
            Ensure = 'Present'
        }
    }
}

You may need credentials and if that is the case then pass them in under the Ensure option after creating the object.