Ordres per instal·lar Hatch sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id PyPA.Hatch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PyPA.Hatch -e --silentwinget uninstall --id PyPA.Hatch -e --silentPer instal·lador
64 bits · EXE (WiX Burn) · Tots els usuaris
Instal·lació silenciosa
hatch-universal.exe /quiet /norestartDesinstal·lar
msiexec /x {502D5045-6D40-43D7-BD16-802BF5AE5125} /qn /norestart- Codi de producte MSI
- {502d5045-6d40-43d7-bd16-802bf5ae5125}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{502d5045-6d40-43d7-bd16-802bf5ae5125}
- UpgradeCode
- {B37530C5-BA4B-5B74-8FD2-11B3C6FEC322}
64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i hatch-x64.msi /qn /norestartDesar un registre
msiexec /i hatch-x64.msi /qn /norestart /l*v "%TEMP%\hatch-install.log"Desinstal·lar
msiexec /x {5E6EBEE6-403B-4F0E-AB0C-8012767DF2DB} /qn /norestart- Codi de producte MSI
- {5E6EBEE6-403B-4F0E-AB0C-8012767DF2DB}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5E6EBEE6-403B-4F0E-AB0C-8012767DF2DB}
- UpgradeCode
- {FD7A2091-85DB-5381-9D0B-A70CCB1780AB}
32 bits · EXE (WiX Burn) · Tots els usuaris
Instal·lació silenciosa
hatch-universal.exe /quiet /norestartDesinstal·lar
msiexec /x {502D5045-6D40-43D7-BD16-802BF5AE5125} /qn /norestart- Codi de producte MSI
- {502d5045-6d40-43d7-bd16-802bf5ae5125}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{502d5045-6d40-43d7-bd16-802bf5ae5125}
- UpgradeCode
- {B37530C5-BA4B-5B74-8FD2-11B3C6FEC322}
32 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i hatch-x86.msi /qn /norestartDesar un registre
msiexec /i hatch-x86.msi /qn /norestart /l*v "%TEMP%\hatch-install.log"Desinstal·lar
msiexec /x {618BD727-0E10-4F39-87D5-9F3E377752F6} /qn /norestart- Codi de producte MSI
- {618BD727-0E10-4F39-87D5-9F3E377752F6}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{618BD727-0E10-4F39-87D5-9F3E377752F6}
- UpgradeCode
- {FD7A2091-85DB-5381-9D0B-A70CCB1780AB}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-hatch.ps1
$url = 'https://github.com/pypa/hatch/releases/download/hatch-v1.18.1/hatch-universal.exe'
$sha256 = '04C5D9D466CECA1566A7E3E9F61919BB83B79D6A66D0D80256FF18871D8B5980'
$file = Join-Path $env:TEMP 'hatch-universal.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait install-hatch.ps1
$url = 'https://github.com/pypa/hatch/releases/download/hatch-v1.18.1/hatch-x64.msi'
$sha256 = 'D366A806E47E486EB7D7D5CE737946CFE753D22DE4F7D4955CEB4172EB2C2405'
$file = Join-Path $env:TEMP 'hatch-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-hatch.ps1
$url = 'https://github.com/pypa/hatch/releases/download/hatch-v1.18.1/hatch-universal.exe'
$sha256 = '04C5D9D466CECA1566A7E3E9F61919BB83B79D6A66D0D80256FF18871D8B5980'
$file = Join-Path $env:TEMP 'hatch-universal.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait install-hatch.ps1
$url = 'https://github.com/pypa/hatch/releases/download/hatch-v1.18.1/hatch-x86.msi'
$sha256 = '8C430FDF0052450DA7DB18D181AF1BDB15AD83F226665287C5F9BF540E270DF5'
$file = Join-Path $env:TEMP 'hatch-x86.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