أوامر لتثبيت برنامج LightCraft دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
winget install --id ArtCraft.LightCraft -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ArtCraft.LightCraft -e --silentwinget uninstall --id ArtCraft.LightCraft -e --silentحسب المثبّت
64 بت · MSI · جميع المستخدمين
التثبيت الصامت
msiexec /i lightcraft-0.21.1-windows-x64.msi /qn /norestartكتابة ملف سجل
msiexec /i lightcraft-0.21.1-windows-x64.msi /qn /norestart /l*v "%TEMP%\lightcraft-install.log"إلغاء التثبيت
msiexec /x {C9504483-D622-4974-9895-C685BA97ECBF} /qn /norestart- رمز منتج MSI
- {C9504483-D622-4974-9895-C685BA97ECBF}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C9504483-D622-4974-9895-C685BA97ECBF}
- UpgradeCode
- {229BB552-5EFD-479A-BA86-8CB6D926390C}
ARM64 · MSI · جميع المستخدمين
التثبيت الصامت
msiexec /i lightcraft-0.21.1-windows-arm64.msi /qn /norestartكتابة ملف سجل
msiexec /i lightcraft-0.21.1-windows-arm64.msi /qn /norestart /l*v "%TEMP%\lightcraft-install.log"إلغاء التثبيت
msiexec /x {327037C5-1799-4EC7-9F9B-4C9193A702CE} /qn /norestart- رمز منتج MSI
- {327037C5-1799-4EC7-9F9B-4C9193A702CE}
- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{327037C5-1799-4EC7-9F9B-4C9193A702CE}
- UpgradeCode
- {229BB552-5EFD-479A-BA86-8CB6D926390C}
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-lightcraft.ps1
$url = 'https://github.com/storytold/lightcraft/releases/download/v0.21.1/lightcraft-0.21.1-windows-x64.msi'
$sha256 = '16B8F4E12C93120B2DB5A5F567798D1D1F33E2F55DDEE901F1C8C0F072558A25'
$file = Join-Path $env:TEMP 'lightcraft-0.21.1-windows-x64.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 install-lightcraft.ps1
$url = 'https://github.com/storytold/lightcraft/releases/download/v0.21.1/lightcraft-0.21.1-windows-arm64.msi'
$sha256 = '0B5FFA35171B8433AF7D9112B2E1BE7E87996B8E4222EB10859541F336061459'
$file = Join-Path $env:TEMP 'lightcraft-0.21.1-windows-arm64.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