4 ms·
You could do that almost 10 years ago with chocolatey the exactly same way, here is one liner iwr https://chocolatey.org/install.ps1 | iex; cinst googlechr
by majkinetor 5y ago
You could do that almost 10 years ago with chocolatey the exactly same way, here is one liner
iwr https://chocolatey.org/install.ps1 | iex; cinst googlechrome
- dotancohen 5y agoAnd how did you get chocolatey on that new install? I'm guessing that the vast majority of users opened IE and downloaded it through that browser.
- vadfa 5y ago"iwr https://chocolatey.org/install.ps1 https://chocolatey.org/install.ps1 | iex" installs chocolatey without having to open IE
- dotancohen 5y agoI see. That's why my comment was worded so carefully: though I'm sure one _could_ install chocolatey from the Windows CLI, a tiny minority ever would do so. But that's for introducing me to the iwr command. I don't use Windows often, but it's good to know what tools are available in the rare instances that I need to. Now I need a mnemonic to remember it... "I Want Real (curl)"
- easton 5y agoC:\Windows\System32\curl.exe exists if you want real curl. (or just run curl from a command prompt. curl in powershell is an alias for iwr.
- majkinetor 5y agoIts 5 years outdated tho, better use this, always up to date: https://community.chocolatey.org/packages/curl https://community.chocolatey.org/packages/curl
- alexchro93 5y agoInvoke Web Request is another good one, considering iwr is just an alias for the PowerShell cmdlet Invoke-WebRequest.