Opdragte om DoScript sonder vrae te installeer, weer te verwyder en vanuit ontplooiingsgereedskap op te spoor. ’n Opdrag word net gewys as dit seker is: uit die manifes of die gedokumenteerde verstek van die installeertegnologie.
Verwante gids: Skakelaars vir stil installasie: MSI, NSIS, Inno Setup · Deïnstalleer ’n program via die register of PowerShell
Met winget
PowerShell
winget install --id TheServer-lab.DoScript -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TheServer-lab.DoScript -e --silentwinget uninstall --id TheServer-lab.DoScript -e --silentVolgens installeerder
32-bis · EXE (NSIS)
Stil installasie
DoScriptSetup.exe /SEie lêergids
DoScriptSetup.exe /S /D=C:\Apps\doscriptPowerShell: aflaai, nagaan, installeer
Laai die amptelike lêer af, gaan die SHA256 na en installeer dit stil.
install-doscript.ps1
$url = 'https://github.com/TheServer-lab/DoScript/releases/download/latest-release/DoScriptSetup.exe'
$sha256 = '7D5CDDA755857FCFC7CD07B210A82BF0183C8AC3E8149632AA2E8E45CD7A7DD3'
$file = Join-Path $env:TEMP 'DoScriptSetup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait