mikecole / chocolatey-packages

A template to use when setting up to create packages both manual and automatic
Apache License 2.0
7 stars 20 forks source link

zoom: check for existing install #168

Closed mwtrigg closed 5 months ago

mwtrigg commented 5 months ago

-- Check to see if there is an existing version of zoom installed in the default installation path and grab its version information. Only attempt to run the installer If the version already installed is out of date, or if the end-user passes the --force parameter.

If the package is run against a machine that already has this or a later version of the software installed, the package install will needlessly fail. Instead of allowing the package to fail, check to see if the software is already present an up-to-date (updated outside of chocolatey, updated via third-party patch, built-in autoupdater).

This will allow new or existing chocolatey users to transition to this package without causing errors, and will also prevent errors if the browser was already updated. Also would be beneficial to C4B users who have static, internalized versions of the installer.

mikecole commented 5 months ago

Merged. Thank you!