Reputation: 1381
I have a clickonce installer that updates itself from my website. For the initial installation, I zip the install files for download and my clients download it.
Recently I have noticed that the installer will re-download all the install files, even though the most recent is available locally from the zip. Even stranger, if the update has an older version than that in the downloaded installer, it will revert to the version available on the web site - even though it is a downgrade.
Is this the expected behaviour? If not, how can I make it work properly.
Visual Studio 2017
Upvotes: 0
Views: 390
Reputation: 732
As i understood, you're zip copy of web hosted application, and clients just unzip and launch setup.exe or app.application files. In this way it works correct, because deployment application root is located on web server and zip copy doing nothing, you just launch click-once entry point file. Application deployment location is app.application file in codebase tag.
Also your launched application remember location for future updates checks, therefor if you'll try to change from mage.exe ProviderUrl (for example) to C:\YourApplication\app.application (before zipping) and you will be sure that clients will unzip in C:\YourApplication folder for update it will break your web site update check point for deployed before application.
So, no way...
Upvotes: 1