Kommandon för att installera NetsCLI Desktop utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id fstubner.netscli.gui -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id fstubner.netscli.gui -e --silentwinget uninstall --id fstubner.netscli.gui -e --silentPer installationsfil
64-bitars · MSI · Alla användare · en-US
Tyst installation
msiexec /i netscli-gui-windows-x86_64.msi /qn /norestartSkriv en logg
msiexec /i netscli-gui-windows-x86_64.msi /qn /norestart /l*v "%TEMP%\netscli-desktop-install.log"Avinstallation
msiexec /x {A9322A75-0DEA-4860-86AB-53AF64C1DE46} /qn /norestart- MSI-produktkod
- {A9322A75-0DEA-4860-86AB-53AF64C1DE46}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A9322A75-0DEA-4860-86AB-53AF64C1DE46}
- UpgradeCode
- {BFDB2119-9252-5E55-92CC-74A449F2582E}
- Installationsmapp
- %ProgramFiles%\NetsCLI
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-netscli-desktop.ps1
$url = 'https://github.com/fstubner/netscli/releases/download/v0.3.4/netscli-gui-windows-x86_64.msi'
$sha256 = '18170D3554AB25BB7A65A6BC49B1D00C00181E33F8F458FBE69C8FA64505BF99'
$file = Join-Path $env:TEMP 'netscli-gui-windows-x86_64.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