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]
# 1

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

AndrejTozon at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 2
Andrej Tozon wrote:

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].

Andrej

Thanks, so the higher version is the publish version right, the assembly and file versions don't count?

gudel at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 3

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

AndrejTozon at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 4
Thanks Andrej. I'm going to assume it is safe to delete the old version and publish (don't want the old ones taking up space and create confusion) and autoupdate will still work.
gudel at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...
# 5

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

AndrejTozon at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic IDE...