Download and unzip file Batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
switchy
Posts: 17
Joined: 09 Feb 2019 05:55

Re: Download and unzip file Batch

#31 Post by switchy » 12 Feb 2019 02:02

ShadowThief wrote:
11 Feb 2019 18:47
It's a program you install that lets you download software from various repositories, like how apt-get does. It's the closest thing you're gonna get.
Actually it worked in install guide i have read how to install it from command promt :

Code: Select all

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
here is output:

Code: Select all

Unable to apply redirection fix.
Unable to set PowerShell to use TLS 1.2 and TLS 1.1 due to old .NET Framework installed. If you see underlying connection closed 
or trust errors, you may need to do one or more of the following: (1) upgrade to .NET Framework 4.5+ and PowerShell v3, (2) speci
fy internal Chocolatey package location (set $env:chocolateyDownloadUrl prior to install or host the package internally), (3) use
 the Download + PowerShell method of install. See https://chocolatey.org/install for all install options.
Getting latest version of the Chocolatey package for download.
Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.11.
Downloading 7-Zip commandline tool prior to extraction.
Extracting C:\Users\Karen\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\Karen\AppData\Local\Temp\chocolate
y\chocInstall...
Installing chocolatey on this machine
Creating ChocolateyInstall as an environment variable (targeting 'Machine') 
  Setting ChocolateyInstall to 'C:\ProgramData\chocolatey'
WARNING: It's very likely you will need to close and reopen your shell 
  before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocolatey\lib'
  (i.e. C:\ProgramData\chocolatey\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin'
  and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'.

Creating Chocolatey folders if they do not already exist.

WARNING: You can safely ignore errors related to missing log files when 
  upgrading from a version of Chocolatey less than 0.9.9. 
  'Batch file could not be found' is also safe to ignore. 
  'The system cannot find the file specified' - also safe.
WARNING: Not setting tab completion: Profile file does not exist at 'C:\Users\Karen\Documents\WindowsPowerShell\Microsoft.PowerShe
llISE_profile.ps1'.
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
 first prior to using choco.
Ensuring chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder
so I guess errors that i had before was because i had old version of .NET framework yes?

ShadowThief
Expert
Posts: 881
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Download and unzip file Batch

#32 Post by ShadowThief » 12 Feb 2019 17:11

The errors while installing Chocolatey are from having outdated versions of the .NET framework and powershell, the other errors are apparently from internet connectivity problems that wouldn't be affected by the version of the .NET framework.

switchy
Posts: 17
Joined: 09 Feb 2019 05:55

Re: Download and unzip file Batch

#33 Post by switchy » 12 Feb 2019 22:02

ShadowThief wrote:
12 Feb 2019 17:11
The errors while installing Chocolatey are from having outdated versions of the .NET framework and powershell, the other errors are apparently from internet connectivity problems that wouldn't be affected by the version of the .NET framework.
it installed perfectly... and actually i havre installed php too but now i dont know how to use it in docs there is nothing told how to run php from choco, can you please tell me how to do it?

ShadowThief
Expert
Posts: 881
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Download and unzip file Batch

#34 Post by ShadowThief » 13 Feb 2019 18:41

Chocolatey is only for installing software. Now you just run PHP like you would if you downloaded and installed it manually.

Squashman
Expert
Posts: 4074
Joined: 23 Dec 2011 13:59

Re: Download and unzip file Batch

#35 Post by Squashman » 13 Feb 2019 22:50

You asked for a program that was similar to apt-get and are now confused on how it works?

Post Reply