Ordres per instal·lar MShell 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 inspoaibox.Mshell -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id inspoaibox.Mshell -e --silentwinget uninstall --id inspoaibox.Mshell -e --silentPer instal·lador
64 bits · EXE (NSIS) · Usuari actual
Instal·lació silenciosa
MShell-Setup-0.2.21.exe /SUna altra carpeta
MShell-Setup-0.2.21.exe /S /D=C:\Apps\mshell- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cc256850-b136-5fb2-bce5-718f0e7ee6cb
64 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
MShell-Setup-0.2.21.exe /SUna altra carpeta
MShell-Setup-0.2.21.exe /S /D=C:\Apps\mshell- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\cc256850-b136-5fb2-bce5-718f0e7ee6cb
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-mshell.ps1
$url = 'https://github.com/inspoaibox/Mshell/releases/download/V0.2.21/MShell-Setup-0.2.21.exe'
$sha256 = '3D068F4D8317C543B0EE6B3F51EAA9AB7A3E9CF5F8898907BE501D7CEA5B8C47'
$file = Join-Path $env:TEMP 'MShell-Setup-0.2.21.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 '/S' -Wait install-mshell.ps1
$url = 'https://github.com/inspoaibox/Mshell/releases/download/V0.2.21/MShell-Setup-0.2.21.exe'
$sha256 = '3D068F4D8317C543B0EE6B3F51EAA9AB7A3E9CF5F8898907BE501D7CEA5B8C47'
$file = Join-Path $env:TEMP 'MShell-Setup-0.2.21.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 '/S' -Wait