Commando’s om TypeCode zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met winget
PowerShell
winget install --id byCrookie.TypeCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id byCrookie.TypeCode -e --silentwinget uninstall --id byCrookie.TypeCode -e --silentPer installer
64-bits · MSI
Stille installatie
msiexec /i TypeCode.Wpf.Setup.msi /qn /norestartLogbestand schrijven
msiexec /i TypeCode.Wpf.Setup.msi /qn /norestart /l*v "%TEMP%\typecode-install.log"Verwijderen
msiexec /x {C7465337-21EF-45C1-A6CC-2101884FF304} /qn /norestart- MSI-productcode
- {C7465337-21EF-45C1-A6CC-2101884FF304}
- Registersleutel voor verwijderen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C7465337-21EF-45C1-A6CC-2101884FF304}
PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-typecode.ps1
$url = 'https://github.com/byCrookie/TypeCode/releases/download/v1.1.11/TypeCode.Wpf.Setup.msi'
$sha256 = 'B413E5F0F4460A406225F1EE07D43AA71AC6148AA79F559F134960436C88F12F'
$file = Join-Path $env:TEMP 'TypeCode.Wpf.Setup.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