All Questions
Tagged with chocolatey powershell
28
questions
1
vote
2
answers
2k
views
Windows 11 GNU make - 'cat' not recognized
I made the foolish decision to move my work environment to Windows 11.
I have downloaded GNU Make version 4.3 using chocolatey. Make replies when I prompt it for its version, but returns the error '...
1
vote
1
answer
1k
views
PowerShell / Chocolatey, how to do an offline install of Chocolatey itself
I would like to get chocolatey onto multiple systems. The normal way I do this is:
if (!(Test-Path "C:\ProgramData\chocolatey\bin")) {
Set-ExecutionPolicy Bypass -Scope Process -Force; [...
3
votes
1
answer
1k
views
How to migrate from Chocolatey to Scoop?
I'm finding that Scoop's repos are more often updated than Chocolatey's (am I wrong?).
Scoop doesn't immediately recognise apps already installed, so I wanted a way to let Scoop know the apps I had ...
0
votes
0
answers
69
views
Opening powershell terminal from the script for the execution purpose
# Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass (Before running the script execute the command in terminal for admin rights)
# Step 1) install Chocolatey when needed
if (-not (Test-Path ...
0
votes
0
answers
133
views
How to install outdated packages using chocolatey
#step 1) Installing Chocolatey when needed
if (-not (Test-Path -Path "$env:ProgramData\Chocolatey\choco.exe" -PathType Leaf))
{
# from https://chocolatey.org/install
Set-...
0
votes
1
answer
552
views
Powershell script for software automation using chocolatey
Code for my chocolatey script:
$apps=@('googlechrome','firefox','codeblocks','windbg','nasm','explorersuite','pestudio','vscode','sysinternals','python','Google Earth')
function Show-Menu
{
...
4
votes
1
answer
3k
views
How to resolve tilde-completed paths in windows Cmd/Powershell
I'm trying to automate uninstallation of some applications, one of which is XtremeTuner. XtremeTuner saves a command used to uninstall it in the registry under HKLM\SOFTWARE\WOW6432Node\Microsoft\...
0
votes
1
answer
921
views
Set unzip location in Chocolatey Package Install Arguments
I'm trying to install a Chocolatey package which is essentially a zip archive from Github repository releases. Is it possible to set a custom unzip path in a manner similar to choco install ...
2
votes
1
answer
1k
views
how do you open applications after installing with chocolatey?
I have checked through similar questions concerning chocolately/choco on windows powershell but I still can't find the answer to this simple one:
How do you open a package after it's been installed ...
1
vote
1
answer
631
views
Chocolatey throwing errors when installing openvpn
As the title describes, choco install openvpn returns the below error;
ERROR: Unable to import PGP key
C:\ProgramData\chocolatey\lib\openvpn\tools\openvpn_public_key.asc' in the
temporary keyring ...
1
vote
1
answer
666
views
How to upgrade a Chocolatey package ONLY if it's installed (never install)?
I want to upgrade a specific package but only if its not installed. I run an update script that keeps all my pc's up2date. cup all and choco upgrade all work well for exactly this purpose, but does ...
3
votes
1
answer
2k
views
Chocolaty install of Google Chrome fails HASH check
I am getting an error when installing Google Chrome Browser in powershell using chocolatey. It works when I by-parse the hash check, but how do I make sure this is fixed in nuget?
I can install other ...
5
votes
4
answers
9k
views
How to resolve "ERROR: Specified cast is not valid." error during installation?
I'm currently receiving this error when installing Java SE Runtime Environment (jre8), updating used to work fine:
Searching if new version exists...
ERROR: Specified cast is not valid.
The install of ...
7
votes
1
answer
4k
views
How can I upgrade a Chocolatey package if it's already installed, and install it if it isn't?
I'm writing a set of PS scripts to help set up and maintain a Windows dev environment. Right now, I am maintaining two script files, one for installing Chocolatey packages, and another for upgrading ...
0
votes
1
answer
838
views
cpp-ethereum not installed. The package was not found with the source(s) listed. (Chocolatey)
I would like to install cpp-ethereum following the documentation
Powershell is running in admin mode, but if I try to run the install command (choco install cpp-ethereum), I get this error:
PS C:\...