All Questions
Tagged with chocolatey powershell
28
questions
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 ...
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
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 ...
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
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 '...
17
votes
2
answers
44k
views
Chocolatey as non-admin user
I´m starting to use Chocolatey in the network of my hotel for software installs. I have a domain set on Win 2008 and all my users are not admins.
So, lets say I have a user JOE that is not an admin ...
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
134
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
928
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 ...
1
vote
1
answer
634
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
673
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 ...
5
votes
2
answers
3k
views
Understand difference between Package Management (formerly OneGet) and Chocolatey, and Get Started using OneGet in Win10 RTM?
I am confused about Chocolatey, and OneGet (renamed later Package Management).
Does one currently just install chocolatey, and use it, if one is on Windows 10 Pro RTM, which supposedly shipped with ...