Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce: two instances of application
 

ClickOnce: two instances of application

Let’s consider the situation when MyApplication version 1 is installed on the computer and has been run. After that, user is going to the application site and downloading new version (2) of the MyApplication. At this point system has 2 started applications: version 1 and version 2. I don’t like this situation and would like version 2 to correctly shutdown version 1. Is there any functionality in ClickOnce which can help in this situation?

Sergey Pikhulya  Sunday, July 02, 2006 9:44 PM

You need both Assembly Versions of the two apps the same in order for the new one to overwrite the old one.

Ex. Go to the properties designer of the new and old project. Click Assembly Information... on the Assembly tab. Make sure the 2 versions of both projects are the same (Assembly and File Version).

go to www.freewebs.com/tpshimoservices/ss.giffor a picture to reference.

Evan Mulawski1  Friday, July 07, 2006 8:19 PM

Thank you for the answer.

I did as you mentioned, but it din't work - I had two started instances (two different versions) of my application.

Moreover this approach looks not so good, because new version of application assumes new version of assemblies.

Sergey Pikhulya  Friday, July 07, 2006 11:32 PM
Are the publish versions the same. If so, you might want to change those too. Also, what do you mean by 'two different versions'?
Evan Mulawski1  Saturday, July 08, 2006 4:03 PM

You can use google to search for other answers

Custom Search

More Threads

• c:\programs files\"application name" in vb.net setup
• Q305624 hosting controls from the filesystem
• Web interface, Windows Service, and Windows Forms App all in one setup project
• install set up error in vista 64 bit.
• Installing Data Files
• What happens when I modify my database structure and put out an update?
• Bootsrapper url setting is failed at non-english locale
• ClickOnce & product description
• Custom Boostrapper not installing msi on ClickOnce update
• Creating custom prerequisite.