You have informations on documentation with some ways to install : GPO, Packager, .exe plus script ...
You have indication about Packager which is NOT designed for upgrade ...
The .exe (and script) had a switch '/upgrade' well designed for this usage ...
(A VERY BAD way is to remove and install new agent due the risk of change deviceid !!)