| Aspect | Details | |--------|---------| | Package name | whatsapp | | Source | Official WhatsApp CDN | | Silent switch | /S | | Install type | NSIS / Squirrel | | Auto-updates | Built‑in (can conflict with Chocolatey) | | Package versioning | Manual or automated with CI (e.g., GitHub Actions) | | Best for | System provisioning, repeatable Windows setups |
Install-ChocolateyPackage @packageArgs $softwareName = 'WhatsApp*' $installerType = 'exe' $silentArgs = '/S' $uninstallKey = Get-UninstallRegistryKey -SoftwareName $softwareName if ($uninstallKey.UninstallString) Select-Object -Skip 1) -join ' ' Start-Process -FilePath $file -ArgumentList "$args $silentArgs" -Wait -NoNewWindow
Would you like a working example of a chocolateyinstall.ps1 that also handles per‑user vs system detection?
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $url = 'https://web.whatsapp.com/desktop/windows/release/x64/WhatsAppSetup.exe'
| Aspect | Details | |--------|---------| | Package name | whatsapp | | Source | Official WhatsApp CDN | | Silent switch | /S | | Install type | NSIS / Squirrel | | Auto-updates | Built‑in (can conflict with Chocolatey) | | Package versioning | Manual or automated with CI (e.g., GitHub Actions) | | Best for | System provisioning, repeatable Windows setups |
Install-ChocolateyPackage @packageArgs $softwareName = 'WhatsApp*' $installerType = 'exe' $silentArgs = '/S' $uninstallKey = Get-UninstallRegistryKey -SoftwareName $softwareName if ($uninstallKey.UninstallString) Select-Object -Skip 1) -join ' ' Start-Process -FilePath $file -ArgumentList "$args $silentArgs" -Wait -NoNewWindow chocolatey whatsapp package
Would you like a working example of a chocolateyinstall.ps1 that also handles per‑user vs system detection? | Aspect | Details | |--------|---------| | Package
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" $url = 'https://web.whatsapp.com/desktop/windows/release/x64/WhatsAppSetup.exe' chocolatey whatsapp package
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.