OpenWorker ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
PowerShell
winget install --id AndrewNg.OpenWorker -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AndrewNg.OpenWorker -e --silentwinget uninstall --id AndrewNg.OpenWorker -e --silentInstaller အလိုက်
64-bit · EXE (NSIS) · လက်ရှိအသုံးပြုသူ
အသံတိတ်ထည့်သွင်းခြင်း
OpenWorker-windows-setup.exe /Sစိတ်ကြိုက် ဖိုင်တွဲ
OpenWorker-windows-setup.exe /S /D=C:\Apps\openworker- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenWorker
- ထည့်သွင်းမည့် ဖိုင်တွဲ
- %LocalAppData%\OpenWorker
64-bit · MSI · အသုံးပြုသူအားလုံး
အသံတိတ်ထည့်သွင်းခြင်း
msiexec /i OpenWorker-windows.msi /qn /norestartLog ဖိုင် ရေးရန်
msiexec /i OpenWorker-windows.msi /qn /norestart /l*v "%TEMP%\openworker-install.log"ဖယ်ရှားခြင်း (Uninstall)
msiexec /x {A328C6D3-6FF9-42BF-9732-7B19872F9464} /qn /norestart- MSI product code
- {A328C6D3-6FF9-42BF-9732-7B19872F9464}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A328C6D3-6FF9-42BF-9732-7B19872F9464}
- UpgradeCode
- {EE9E0539-FB13-5B97-9B6E-0C18C65E04BC}
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
install-openworker.ps1
$url = 'https://github.com/andrewyng/openworker/releases/download/v0.3.1/OpenWorker-windows-setup.exe'
$sha256 = 'FAB613ED5565708140FF93514A85A49077F46B9D067BBCDDEC484F32FC9F896B'
$file = Join-Path $env:TEMP 'OpenWorker-windows-setup.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 install-openworker.ps1
$url = 'https://github.com/andrewyng/openworker/releases/download/v0.3.1/OpenWorker-windows.msi'
$sha256 = 'F5D787DB754F6A13D3A07ED12A1D04A050005659DB9426D147C149710A33E1C2'
$file = Join-Path $env:TEMP 'OpenWorker-windows.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait