Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I need to download Software using the command prompt. The software cannot be downloaded via the command prompt, but the downloaded files can be installed.


What I have tried:

I need to download Software using the command prompt. The software cannot be downloaded via the command prompt, but the downloaded files can be installed.
Posted
Updated 4-Oct-21 1:24am
Comments
Richard MacCutchan 4-Oct-21 7:12am    
There is no download command, you will need to use a web browser.
You learn something new every day.

1 solution

If the application is available as a winget or choclatey package, then you can use those command-line tools to install it:

Use the winget tool to install and manage applications | Microsoft Docs[^]
Chocolatey Software | Chocolatey - The package manager for Windows[^]

If the installer is available directly as a web link, you can make a web request to download it before executing it using Powershell:
PowerShell
Invoke-WebRequest -Uri "https://test.local/path/to/the/installer.exe" -OutFile "installer.exe"

However, many sites seem to prevent direct links to the installer, and instead require you to fill out a form to give them your personal information before giving you the link to download. In that case, there's nothing you can do; you will have to download the installer manually.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900