Stinker ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id PatentLobster.stinker -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PatentLobster.stinker -e --silentwinget uninstall --id PatentLobster.stinker -e --silentInstaller အလိုက်
64-bit · EXE (NSIS) · လက်ရှိအသုံးပြုသူ · en-US
အသံတိတ်ထည့်သွင်းခြင်း
Stinker-Setup-0.2.3.exe /Sစိတ်ကြိုက် ဖိုင်တွဲ
Stinker-Setup-0.2.3.exe /S /D=C:\Apps\stinker- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\4c83f851-020c-53e7-a05d-fbcacdcdf3ce
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-stinker.ps1
$url = 'https://github.com/PatentLobster/stinker/releases/download/v0.2.3/Stinker-Setup-0.2.3.exe'
$sha256 = '933EEA31EAFEB89E9A8D4692449297646ED919241E2F2280BFDA985734FF0A0A'
$file = Join-Path $env:TEMP 'Stinker-Setup-0.2.3.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