Phoenix
Разработчик
- Сообщения
- 2,068
- Реакции
- 1,602
А как вам возможности PowerShell ? (Но пока видимо не доделано).
Как я перестал бояться и полюбил Windows 10
http://www.oneget.info/
get-command -Module OneGetКак этим пользоваться. Собственно надо установить источник.
Ошибка показала что надо делать.
Проверить права (убедиться что они есть.. или нет)
Устанавливаем права на исполнение скриптов PS для текущего пользователя
Проверить права (убедиться что они есть.. или нет)
Я установил notepad++ и java из Chocolatey Gallery | Packages с помощью https://chocolatey.org/install.ps1
PS C:\Users\Lazarev> choco install notepadplusplus.install
PS C:\Users\Lazarev> choco install javaruntime
Unix курит в сторонке
(На линуксе это так - apt-get install имя_пакета)
Как я перестал бояться и полюбил Windows 10
http://www.oneget.info/
get-command -Module OneGetКак этим пользоваться. Собственно надо установить источник.
PowerShell:
THIS IS DEPRECATED. Please use the install from https://chocolatey.org/install.ps1
Проверить права (убедиться что они есть.. или нет)
Устанавливаем права на исполнение скриптов PS для текущего пользователя
PowerShell:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
PowerShell:
Get-ExecutionPolicy -List
PowerShell:
PS C:\WINDOWS\system32> Get-ExecutionPolicy -List
Scope ExecutionPolicy
----- ---------------
MachinePolicy Undefined
UserPolicy Undefined
Process Undefined
CurrentUser RemoteSigned
LocalMachine Undefined
PowerShell:
PS C:\Users\Lazarev> F:\Tools\install.ps1
Downloading http://chocolatey.org/api/v2/package/chocolatey/ to C:\Users\Lazarev\AppData\Local\Temp\chocolatey\chocIns
ll\chocolatey.zip
Download 7Zip commandline tool
Downloading http://chocolatey.org/7za.exe to C:\Users\Lazarev\AppData\Local\Temp\chocolatey\chocInstall\7za.exe
Extracting C:\Users\Lazarev\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip to C:\Users\Lazarev\AppData\Local
emp\chocolatey\chocInstall...
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Processing archive: C:\Users\Lazarev\AppData\Local\Temp\chocolatey\chocInstall\chocolatey.zip
Extracting _rels\.rels
..
Extracting [Content_Types].xml
Everything is Ok
Files: 119
Size: 2655955
Compressed: 984910
Installing chocolatey on this machine
Creating ChocolateyInstall as an Environment variable (targeting 'User') and setting it to 'C:\ProgramData\chocolatey'
We are setting up the Chocolatey repository for NuGet packages that should be at the machine level. Think executables/
plication packages, not library packages.
That is what Chocolatey NuGet goodness is for. The repository is set up at 'C:\ProgramData\chocolatey'.
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:\ProgramDat
chocolatey\lib\yourPackageName'.
Creating Chocolatey NuGet folders if they do not already exist.
Copying the contents of 'C:\Users\Lazarev\AppData\Local\Temp\chocolatey\chocInstall\tools\chocolateyInstall' to 'C:\Pr
ramData\chocolatey'.
PATH environment variable does not have C:\ProgramData\chocolatey\bin in it. Adding...
Chocolatey is now ready.
You can call chocolatey 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 chocolatey.
Ensuring chocolatey commands are on the path
PS C:\Users\Lazarev> choco install notepadplusplus.install
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell). You may experience errors - many functions/packages
require admin rights. Only advanced users should run choco w/out an
elevated shell (and very advanced users as non-admin). When you open
the command shell, you should ensure "Run as Administrator".
Chocolatey (v0.9.8.27) is installing 'notepadplusplus.install' and dependencies. By installing you accept the license
r 'notepadplusplus.install' and each dependency you are installing.
notepadplusplus.install v6.6.9
Downloading notepadplusplus 32 bit
from 'http://download.tuxfamily.org/notepadplus/6.6.9/npp.6.6.9.Installer.exe'
Installing notepadplusplus...
notepadplusplus has been installed.
notepadplusplus has finished successfully! The chocolatey gods have answered your request!
Finished installing 'notepadplusplus.install' and dependencies - if errors not shown in console, none detected. Check
g for errors if unsure.
PS C:\Users\Lazarev> choco install javaruntime
Chocolatey detected you are not running from an elevated command shell
(cmd/powershell). You may experience errors - many functions/packages
require admin rights. Only advanced users should run choco w/out an
elevated shell (and very advanced users as non-admin). When you open
the command shell, you should ensure "Run as Administrator".
Chocolatey (v0.9.8.27) is installing 'javaruntime' and dependencies. By installing you accept the license for 'javarun
me' and each dependency you are installing.
javaruntime v7.0.67.20140930
Downloading javaruntime 32 bit
from 'http://javadl.sun.com/webapps/download/AutoDL?BundleId=95123'
Installing javaruntime...
javaruntime has been installed.
javaruntime has finished successfully! The chocolatey gods have answered your request!
Downloading javaruntime 64 bit
from 'http://javadl.sun.com/webapps/download/AutoDL?BundleId=95125'
Installing javaruntime...
javaruntime has been installed.
javaruntime has finished successfully! The chocolatey gods have answered your request!
PATH environment variable does not have C:\Program Files\Java\jre7\bin in it. Adding...
Finished installing 'javaruntime' and dependencies - if errors not shown in console, none detected. Check log for erro
if unsure.
PS C:\Users\Lazarev>
PS C:\Users\Lazarev> choco install notepadplusplus.install
PS C:\Users\Lazarev> choco install javaruntime
Unix курит в сторонке