stgit को बिना किसी प्रॉम्प्ट के इंस्टॉल करने, फिर से हटाने और डिप्लॉयमेंट टूल से पहचानने के कमांड। कोई कमांड तभी दिखाया जाता है जब वह पक्का हो: मैनिफ़ेस्ट से, या इंस्टॉलर टेक्नोलॉजी के डॉक्यूमेंटेड डिफ़ॉल्ट से।
संबंधित गाइड: साइलेंट इंस्टॉल स्विच: MSI, NSIS, Inno Setup · रजिस्ट्री या PowerShell से प्रोग्राम अनइंस्टॉल करें
इंस्टॉलर के हिसाब से
64-बिट · MSI
साइलेंट इंस्टॉल
msiexec /i stgit-2.7.0.msi /qn /norestartलॉग फ़ाइल लिखें
msiexec /i stgit-2.7.0.msi /qn /norestart /l*v "%TEMP%\stgit-install.log"PowerShell: डाउनलोड, जाँच, इंस्टॉल
आधिकारिक फ़ाइल डाउनलोड करता है, उसका SHA256 जाँचता है और उसे साइलेंट मोड में इंस्टॉल करता है।
install-stgit.ps1
$url = 'https://github.com/stacked-git/stgit/releases/download/v2.7.0/stgit-2.7.0.msi'
$sha256 = 'DEEBF4DB69C6C135BABD8E692577B962DE3C52EBAA93D3B9BE4178FECD0E1BAE'
$file = Join-Path $env:TEMP 'stgit-2.7.0.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