Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Rich Siegel
@rismoney
Good day - had a question about Start-ChocolateyProcessAsAdmin
The chocolatiest bot this side of the Mississippi
@choco-bot
Good day, Rich Siegel (rismoney)
Rich Siegel
@rismoney
$ExitCode=(Start-Process -FilePath ('.\foo.exe') -ArgumentList ('/myargs') -PassThru -WindowStyle Minimized -Wait).ExitCode ; If ($ExitCode -eq 9) {} is what i am currently doing. Will $exitcode=StartChocoProcessAsAdmin @mystuff return the exit code? I guess i'll try.
Konstantin
@paradonym
Would shimming work with network share paths? Like shimming \live.sysinternals.com\tools* to a local machine without actually downloading the executables and saving them on the machine?
smseidl
@smseidl
@gep13 - we do, but with trying to learn I was thinking the community would be more help. I don't think anything isn't working, it learning how to use it.
wonkyungup
@wonkyungup
I sent an e-mail to withdraw from the account, but there was no answer even after a day. Can you give me a rough idea of how long it will take?
Ника
@niks:im.ownserver.duckdns.org
[m]
How do I check whether or not shim exists from package install script?
Javier Neira
@jneira
hi there!
i am trying to upload a package and the last check ended with Scan Testing Resulted in ScannerExempted
I am not sure what have to do to fix it (or even if i have to do something!)
haskell-language-server has passed automated virus scanning, however requires human verification.
human verification from chocolatey admins?
2 replies
Gabriel Ribeiro (K0media)
@K0media

Hey there. Any regards/updates on this?
chocolatey/choco#4

Is it already possible or no way yet?

Gabriel Ribeiro (K0media)
@K0media

Well... Can someone explain me how to use the "autocomplete" feature on Terminal?

There is this GIF showing an example, but even pressing tab I can't seem to find this feature.

Example link:
https://docs.chocolatey.org/assets/images/gifs/choco_install.gif

Like, I typed cinst prot, then pressed Tab or something and it completed into cinst protonvpn. Is that possible?

2 replies
Gabriel Ribeiro (K0media)
@K0media

Hey there. Any regards/updates on this?
chocolatey/choco#4

Is it already possible or no way yet?

But what about this, @thecakeisnaoh:naoh.host ? (I'll try to avoid pinging you next time, sorry.)

2 replies
mcrwvr
@mcrwvr
Stupid question. But how can I make a package 'decide' what architecture to use for an install ?
5 replies
Ника
@niks:im.ownserver.duckdns.org
[m]
But the package seems to have only one for some reason
Mahmoud Shiri Varamini
@mshiriv
I wanna install chocolatey on Windows 10 Enterprise and Windows 10 Professional and follow steps according official installation document, but get the following error, on both way with CMD and PowerShell:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Exception calling "DownloadString" with "1" argument(s): "The remote server returned an error: (406) Not Acceptable."
At line:1 char:166
+ ...  -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('ht ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException
13 replies
smseidl
@smseidl
I am able to build a working package for installation, but the un-install isn't working. I'm trying to create the uninstall PS1 file, but I'm having a problem. The uninstall has to be run from the original installer and I can't get the uninstall ps1 script to find that. When I look at my initial package it has the installer in the tools dir, but in the 'lib' folder after installation, they aren't there... anyone have any guidance for a newbie? (btw - even windows add/remove programs doesn't work for uninstall, option is greyed out)
6 replies
TheCakeIsNaOH
@thecakeisnaoh:naoh.host
[m]
Hmm, yup. The official answer is almost always to use support, so there is not a lot of public info on issues and solutions for C4B.
Its kind of dead, but there is a specific gitter channel for that: https://gitter.im/chocolatey/puppet-chocolatey
matt wilkie
@maphew
Is https://chocolatey.org/ "Error 503 Service Unavailable" for anyone else right now?
Kim J. Nordmo
@AdmiringWorm
@maphew please see https://status.chocolatey.org/
matt wilkie
@maphew
thanks Kim
richarddziennmi
@richarddziennmi
Does anyone know if you can specify not to install a dependencies dependency in the .nuspec file? maybe something like <dependency id="foo" ignoredependencies="False" />
Kim J. Nordmo
@AdmiringWorm
@richarddziennmi no, you can not specify an optional dependency in the nuspec file.
The only way is for the the installing the package to use the argument --ignore-dependencies.
ie: choco install 7zip.install --ignore-dependencies
richarddziennmi
@richarddziennmi
@AdmiringWorm Thanks! I can use that as a workaround! :)
Sam
@wamra

Hi,
Accessing Chocolaty links have been unreliable lately.

PS C:\> Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient)
.DownloadString('https://chocolatey.org/install.ps1'))
Exception calling "DownloadString" with "1" argument(s): "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."
At line:1 char:166
+ ...  -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('ht ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

It randomly works sometimes. Note I am running this from inside of a docker container.

Joel Sallow (/u/ta11ow)
@vexx32
Check $error.Exception.GetBaseException() | fl * -f
also, there have been general internet issues the last handful of days. Dunno if you might still be hitting some parts of that
Sam
@wamra
It seems certificate related.
Message        : The remote certificate is invalid according to the validation procedure.
Data           : {}
InnerException :
TargetSite     : Void StartSendAuthResetSignal(System.Net.Security.ProtocolToken, System.Net.AsyncProtocolRequest, System.Exception)
StackTrace     :    at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)

HelpLink       :
Source         : System
HResult        : -2146233087
PS C:\> cmd /c ver
Microsoft Windows [Version 10.0.18363.1556]
yes, I see green though in https://status.chocolatey.org/
Joel Sallow (/u/ta11ow)
@vexx32
yeah. Cert seems fine from my end. Do you see any issues accessing the script from a browser?
Sam
@wamra
no issues from the browser, just inside of the docker container, and it's inconsistent.
Joel Sallow (/u/ta11ow)
@vexx32
that's a weird one for sure. Might be something with the container I suppose? My experience with Docker and any possible networking issues that might crop up with it are kinda limited. :/
Sam
@wamra
The image is from microsoft FROM mcr.microsoft.com/windows/servercore:1909 the confusing part is nothing changes on my end, this is the first line executed in the installation, the rest are choco install *
If you have docker on your machine, give it a try. If you have an alternate url that I can try, please let me know, thanks for responding quickly btw
Joel Sallow (/u/ta11ow)
@vexx32
mm. Technically chocolatey.org/install.ps1 is a redirect of sorts, so maybe try directly targeting https://community.chocolatey.org/install.ps1 ?
robincsmith
@robincsmith

Has anyone here used the Visual Studio Build Tools package? https://community.chocolatey.org/packages/visualstudio2019buildtools

I'm trying to create a 'hands off' VM image creation process using Packer + Chocolatey, but the VS Build Tools installer is failing silently when I try to install the Windows 10 SDK component....

I've opened an issue on the package maintainer's GitHub repo with some more information, just thought I'd post here to see if anyone has run into the same problem
Michael Fyffe
@TraGicCode
image.png
I'm trying to install chocolatey inside a docker container with the base image of jetbrains/teamcity-agent and i'm getting the following error. I tried googling this but cannot find anyone else having the same issue
It looks to me like [Environment]::GetFolderPath(CommonApplicationData) is returning nothing
Michael Fyffe
@TraGicCode
Hmm, i this the latest tag points to a nano container which might be the issue...testing now..
Ника
@niks:im.ownserver.duckdns.org
[m]
If a program only supports 64-bit version of Windows, should I define only url64 in my install script?
1 reply
Michael Fyffe
@TraGicCode
Looks like it was using nano server has the base image! problem solved
thesilas
@thesilas
How can I overwrite the installation directory for a package containing only a portable executable to be installed on a USB stick instead of the default location in C:\ProgramData\Chocolatey\Bin?
4 replies
spoopydango
@spoopydango:matrix.org
[m]
so i have a very old ver of choco i think (0.9.9.9), and choco upgrade choco (or well, anything) just says there's no packages, i tried adding the TLSv2 per teh https://blog.chocolatey.org/2020/01/remove-support-for-old-tls-versions/ snippet, but that doesn't seem to help. am I boned?
trying to run the installer scripts tells me to run choco upgrade, choco upgrade says the package chocolatey doesn't exist :D
spoopydango
@spoopydango:matrix.org
[m]
-dv --noop shows "could not creaet SSL/TLS secure channel", but [System.Net.ServicePointManager]::SecurityProtocol.HasFlag([Net.SecurityProtocolType]::Tls12) returns True, is there some other way to coerce chocolatey to use tls1.2?