Ordres per instal·lar nu 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 Nushell.Nushell -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Nushell.Nushell -e --silentwinget uninstall --id Nushell.Nushell -e --silentPer instal·lador
64 bits · MSI · Usuari actual · en-US
Instal·lació silenciosa
msiexec /i nu-0.116.1-x86_64-pc-windows-msvc.msi /qn /norestartDesar un registre
msiexec /i nu-0.116.1-x86_64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\nu-install.log"Desinstal·lar
msiexec /x {F40786E3-5677-4FA2-95B4-0F9A25A4354E} /qn /norestart- Codi de producte MSI
- {F40786E3-5677-4FA2-95B4-0F9A25A4354E}
- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F40786E3-5677-4FA2-95B4-0F9A25A4354E}
- UpgradeCode
- {82D756D2-19FA-4F09-B10F-64942E89F364}
- Carpeta d’instal·lació
- nu
64 bits · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i nu-0.116.1-x86_64-pc-windows-msvc.msi /qn /norestartDesar un registre
msiexec /i nu-0.116.1-x86_64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\nu-install.log"Desinstal·lar
msiexec /x {F40786E3-5677-4FA2-95B4-0F9A25A4354E} /qn /norestart- Codi de producte MSI
- {F40786E3-5677-4FA2-95B4-0F9A25A4354E}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F40786E3-5677-4FA2-95B4-0F9A25A4354E}
- UpgradeCode
- {82D756D2-19FA-4F09-B10F-64942E89F364}
- Carpeta d’instal·lació
- nu
ARM64 · MSI · Usuari actual · en-US
Instal·lació silenciosa
msiexec /i nu-0.116.1-aarch64-pc-windows-msvc.msi /qn /norestartDesar un registre
msiexec /i nu-0.116.1-aarch64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\nu-install.log"Desinstal·lar
msiexec /x {18853D0E-4A0A-45E4-A18B-489E6E2D799D} /qn /norestart- Codi de producte MSI
- {18853D0E-4A0A-45E4-A18B-489E6E2D799D}
- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{18853D0E-4A0A-45E4-A18B-489E6E2D799D}
- UpgradeCode
- {82D756D2-19FA-4F09-B10F-64942E89F364}
- Carpeta d’instal·lació
- nu
ARM64 · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i nu-0.116.1-aarch64-pc-windows-msvc.msi /qn /norestartDesar un registre
msiexec /i nu-0.116.1-aarch64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\nu-install.log"Desinstal·lar
msiexec /x {18853D0E-4A0A-45E4-A18B-489E6E2D799D} /qn /norestart- Codi de producte MSI
- {18853D0E-4A0A-45E4-A18B-489E6E2D799D}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{18853D0E-4A0A-45E4-A18B-489E6E2D799D}
- UpgradeCode
- {82D756D2-19FA-4F09-B10F-64942E89F364}
- Carpeta d’instal·lació
- nu
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-nu.ps1
$url = 'https://github.com/nushell/nushell/releases/download/0.116.1/nu-0.116.1-x86_64-pc-windows-msvc.msi'
$sha256 = '7DA310B0C49F6CA635C32F9B3A4B48B7C6D31FC8B92DDCB7B8428F5D5FC4EF30'
$file = Join-Path $env:TEMP 'nu-0.116.1-x86_64-pc-windows-msvc.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-nu.ps1
$url = 'https://github.com/nushell/nushell/releases/download/0.116.1/nu-0.116.1-x86_64-pc-windows-msvc.msi'
$sha256 = '7DA310B0C49F6CA635C32F9B3A4B48B7C6D31FC8B92DDCB7B8428F5D5FC4EF30'
$file = Join-Path $env:TEMP 'nu-0.116.1-x86_64-pc-windows-msvc.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-nu.ps1
$url = 'https://github.com/nushell/nushell/releases/download/0.116.1/nu-0.116.1-aarch64-pc-windows-msvc.msi'
$sha256 = '7A3D688A0C4574E3BA0CB70EF0AAFD9A014A386BB8268595655A52F0D525A2F4'
$file = Join-Path $env:TEMP 'nu-0.116.1-aarch64-pc-windows-msvc.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-nu.ps1
$url = 'https://github.com/nushell/nushell/releases/download/0.116.1/nu-0.116.1-aarch64-pc-windows-msvc.msi'
$sha256 = '7A3D688A0C4574E3BA0CB70EF0AAFD9A014A386BB8268595655A52F0D525A2F4'
$file = Join-Path $env:TEMP 'nu-0.116.1-aarch64-pc-windows-msvc.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