Ordres per instal·lar dnGREP 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 dnGrep.dnGrep -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id dnGrep.dnGrep -e --silentwinget uninstall --id dnGrep.dnGrep -e --silentPer instal·lador
64 bits · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i dnGREP.5.0.65.x64.msi /qn /norestart /quietDesar un registre
msiexec /i dnGREP.5.0.65.x64.msi /qn /norestart /quiet /l*v "%TEMP%\dngrep-install.log"Desinstal·lar
msiexec /x {C6962139-E95D-4FBC-B631-11EAD564A419} /qn /norestart- Codi de producte MSI
- {C6962139-E95D-4FBC-B631-11EAD564A419}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C6962139-E95D-4FBC-B631-11EAD564A419}
- UpgradeCode
- {4CF55558-B642-482E-9FBF-06EA5AEC8276}
- Carpeta d’instal·lació
- %ProgramFiles%/./dnGrep
ARM64 · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i dnGREP.5.0.65.ARM64.msi /qn /norestart /quietDesar un registre
msiexec /i dnGREP.5.0.65.ARM64.msi /qn /norestart /quiet /l*v "%TEMP%\dngrep-install.log"Desinstal·lar
msiexec /x {40623AA8-BFB1-4171-8377-9DA74747AE1D} /qn /norestart- Codi de producte MSI
- {40623AA8-BFB1-4171-8377-9DA74747AE1D}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{40623AA8-BFB1-4171-8377-9DA74747AE1D}
- UpgradeCode
- {4CF55558-B642-482E-9FBF-06EA5AEC8276}
- Carpeta d’instal·lació
- %ProgramFiles%/./dnGrep
32 bits · MSI · Tots els usuaris · en-US
Instal·lació silenciosa
msiexec /i dnGREP.5.0.65.x86.msi /qn /norestart /quietDesar un registre
msiexec /i dnGREP.5.0.65.x86.msi /qn /norestart /quiet /l*v "%TEMP%\dngrep-install.log"Desinstal·lar
msiexec /x {42A587F6-00E4-4638-841A-C11C89E1E21C} /qn /norestart- Codi de producte MSI
- {42A587F6-00E4-4638-841A-C11C89E1E21C}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{42A587F6-00E4-4638-841A-C11C89E1E21C}
- UpgradeCode
- {4CF55558-B642-482E-9FBF-06EA5AEC8276}
- Carpeta d’instal·lació
- %ProgramFiles(x86)%/./dnGrep
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-dngrep.ps1
$url = 'https://github.com/dnGrep/dnGrep/releases/download/v5.0.65.0/dnGREP.5.0.65.x64.msi'
$sha256 = '200A100F499ABC89A2A332DBB14D65728C7B851A80ABFD8B13DA67E6C68F836F'
$file = Join-Path $env:TEMP 'dnGREP.5.0.65.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', '/quiet' -Wait install-dngrep.ps1
$url = 'https://github.com/dnGrep/dnGrep/releases/download/v5.0.65.0/dnGREP.5.0.65.ARM64.msi'
$sha256 = '4E763865725AB727B9AD01D077F252400A271A061AC28A259A019BA9A2318FB0'
$file = Join-Path $env:TEMP 'dnGREP.5.0.65.ARM64.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', '/quiet' -Wait install-dngrep.ps1
$url = 'https://github.com/dnGrep/dnGrep/releases/download/v5.0.65.0/dnGREP.5.0.65.x86.msi'
$sha256 = 'B832B549F4461CE3263550540070C72827F76124BB06D5AA899EE906F8F95F52'
$file = Join-Path $env:TEMP 'dnGREP.5.0.65.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', '/quiet' -Wait