![]() $env:ChocolateyInstall = ' C:\ProgramData\chocoportable ' Start-Process -FilePath powershell -ArgumentList "-noprofile -noExit -ExecutionPolicy Bypass -File ""$outPath""" -Wait # clean up Write-Warning "Installation Script Damaged/Malware?" exit 1 $result = Get-AuthenticodeSignature -FilePath $outPath if ( $result. ![]() $url = ' ' $outPath = " $env:temp\installChocolatey.ps1 " Invoke-WebRequest -UseBasicParsing -Uri $url -OutFile $outPath # test signature It downloads the installation script, checks its digital signature to ensure the file is legit, then runs it: # download and save installation script, then check signature If you don’t have administrator privileges, use the script below. Chocolatey is a free package manager for Windows that can be used to download and install software.īefore you can use Chocolatey from PowerShell, you need to download and install it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |