ClickOnce autoupdate question
I have an application that I published to a local network folder with ClickOnce. I set the autoupdate option to check once every 7 days.
If I publish an update of the same apps and same network folder , do I need to keep the old version in that same path, or do I have to remove it first then publish, so that it will automatically pick up the new version?
[369 byte] By [
gudel] at [2007-12-24]
Hi,
you don't have to do anything, just publish your application to the publish location. Just make sure the new version is higher than the previous one [Visual Studio will by default increment this version with each successfull publishing].
All version are kept in the same published location, safely stored in their folders (marked by their version number). All manifest files are also preserved, all that gets overwritten is the current deployment manifest, pointing to the last published application version [makes it possible for the application, running on the client, detect if any new version is available].
Andrej
Yes, the publish version and assembly versions are two different things and are not(!) in sync with each other. You'll find the publish version under Project properties, on the Publish tab [see Publish version section]. If the checkbox under it is checked, Visual Studio will increment this version after each successful publishing.
Andrej
Yes. I'd publish first to see everything goes well, and then delete the folder(s), containing the old(er) version(s), and related deployment manifest files. Also, you can republish the same version any time you want (in case you delete one or more of the deployment files).
Andrej