Polecenia do instalacji programu TypeCode bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez 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 --silentWedług instalatora
64-bit · MSI
Cicha instalacja
msiexec /i TypeCode.Wpf.Setup.msi /qn /norestartZapis dziennika
msiexec /i TypeCode.Wpf.Setup.msi /qn /norestart /l*v "%TEMP%\typecode-install.log"Odinstalowanie
msiexec /x {C7465337-21EF-45C1-A6CC-2101884FF304} /qn /norestart- Kod produktu MSI
- {C7465337-21EF-45C1-A6CC-2101884FF304}
- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C7465337-21EF-45C1-A6CC-2101884FF304}
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
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