majkinetor / au

Chocolatey Automatic Package Updater Module
GNU General Public License v2.0
227 stars 71 forks source link

What are difference between using `Get-RemoteChecksum` in `au_BeforeUpdate` and `au_GetLatest`? #145

Closed galeksandrp closed 6 years ago

galeksandrp commented 6 years ago

What are more advised in case of undefault checksum retrieving?

majkinetor commented 6 years ago

au_GetLatest should be fast and shouldn't download large amounts of data generally. au_BeforeUpdate will download stuff only when needed (update actually happened). If you used it exclusivelly in au_GetLatest your updateall procedure would be several times longer.

So the second one is used only if you need exe locally to get the version from its metadata (checksum could be version on some tools too), otherwise, you shouldn't use it.