AutoUpdater.NET icon indicating copy to clipboard operation
AutoUpdater.NET copied to clipboard

Multiple urls

Open vitalerter opened this issue 2 years ago • 5 comments

Is it possible to application select from where to download the update.

For example i need to store same application on two servers(China and Eu). Then after first download to keep updated from the server from where it was download.

vitalerter avatar Sep 08 '22 10:09 vitalerter

You have to handle this in your code. You can switch the XML file URL according to where it downloaded from.

ravibpatel avatar Sep 08 '22 10:09 ravibpatel

But then in the code i need to build for multiple configurations of the url. Maybe there is a cache or cookies

vitalerter avatar Sep 08 '22 11:09 vitalerter

You still have to implement a way to know from where the app was downloaded. You can create a registry entry on installation or if it is a portable app you can include a json file indicating where it was downloaded. Then in the app, you can just read that file or registry entry to determine which update XML file you want to use.

ravibpatel avatar Sep 08 '22 12:09 ravibpatel

Maybe select the server during update? Show a prompt with all available servers for update

vitalerter avatar Sep 08 '22 13:09 vitalerter

That is possible. You can present a dialog to the user and according to the server they select you can change the XML file you feed to the AutoUpdater.

ravibpatel avatar Sep 08 '22 16:09 ravibpatel