Ordres per instal·lar NoteGen 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 codexu.NoteGen -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id codexu.NoteGen -e --silentwinget uninstall --id codexu.NoteGen -e --silentPer instal·lador
64 bits · EXE (NSIS) · Usuari actual
Instal·lació silenciosa
NoteGen_0.38.2_x64-setup.exe /SUna altra carpeta
NoteGen_0.38.2_x64-setup.exe /S /D=C:\Apps\notegen- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NoteGen
64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i NoteGen_0.38.2_x64_en-US.msi /qn /norestartDesar un registre
msiexec /i NoteGen_0.38.2_x64_en-US.msi /qn /norestart /l*v "%TEMP%\notegen-install.log"Desinstal·lar
msiexec /x {7D41FBC5-68EE-4819-9A3F-EA628C3BD81D} /qn /norestart- Codi de producte MSI
- {7D41FBC5-68EE-4819-9A3F-EA628C3BD81D}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7D41FBC5-68EE-4819-9A3F-EA628C3BD81D}
- UpgradeCode
- {E353DB5D-25D7-5FA9-B7DC-C4BC524A075E}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-notegen.ps1
$url = 'https://github.com/codexu/note-gen/releases/download/note-gen-v0.38.2/NoteGen_0.38.2_x64-setup.exe'
$sha256 = '885428EC15657A1A17D6F16203D543401A949DEDFE5181E4866E7C81EA98AF9C'
$file = Join-Path $env:TEMP 'NoteGen_0.38.2_x64-setup.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-notegen.ps1
$url = 'https://github.com/codexu/note-gen/releases/download/note-gen-v0.38.2/NoteGen_0.38.2_x64_en-US.msi'
$sha256 = '116B7FFE379BCCC7FE5E0B3DC22ED7FC0D1A06578BD8BE177A91577EDDFBB1BD'
$file = Join-Path $env:TEMP 'NoteGen_0.38.2_x64_en-US.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