Chocolatey Whatsapp Package Upd -

| 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

您需要登录后才可以回帖 login | 立即注册

本版积分规则

Archiver|手机版|小黑屋|狮城家长论坛

GMT+8, 2026-3-9 09:19 , Processed in 0.012764 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表