Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > target multiple clients using click once
 

target multiple clients using click once

Hi All,

I wonder if someone could help me;

I have a scenario where i need to target multiple clients using the same win forms application.
This application uses a client/server architecture and each clients iteration of the software will be on a different server.
Basically each client will not know about the other and they will each have their own installation of the software using clickonce. This means their own entry in the start menu and potentially each client could be working of different code bases (think branching in subversion).

The problemI’m facing is when i try and release to different servers and then install on a machine that already has the software on it (for testing and support purposes). For example i currently have a development server and a testing server. When i try and build an instance of the software for each server this is fine. I change the Publish Options, the installation folder URL and the publish folder location.

This all works fine, however when i try and install to a machine that already has the application, the new version tries to replace the old one and when it tries to launch it says the application cannot be launched.

The only way i can get around this is by changing the Assembly Name of the application. However this causes internal errors to the application that are not being picked up by the compiler because i use reflection that relies on the assembly name. I could use a config key to load in different assembly names for different clients but this very nasty.

I’ve also tried changing the GUID for each client but this has no affect.

Does anyone have any other ideas? or this not possible?

Regards

Dave

Dave Naylor  Thursday, July 09, 2009 9:06 AM
Sorry to tell you it's not possible. The only way to run multiple versions of the same application is to change the assembly name.

http://robindotnet.wordpress.com/2009/04/22/clickonce-installing-multiple-versions-concurrently/

RobinDotNet
Click here to visit my ClickOnce blog!
  • Marked As Answer byDave Naylor Thursday, July 09, 2009 3:06 PM
  •  
RobinDotNet  Thursday, July 09, 2009 9:43 AM
Sorry to tell you it's not possible. The only way to run multiple versions of the same application is to change the assembly name.

http://robindotnet.wordpress.com/2009/04/22/clickonce-installing-multiple-versions-concurrently/

RobinDotNet
Click here to visit my ClickOnce blog!
  • Marked As Answer byDave Naylor Thursday, July 09, 2009 3:06 PM
  •  
RobinDotNet  Thursday, July 09, 2009 9:43 AM

Thank you for the response.

I figured as much and have modified the reflection code to support different Assembly Names.

Dave Naylor  Thursday, July 09, 2009 3:06 PM

You can use google to search for other answers

Custom Search

More Threads

• How to read msi file
• configuring deployment project
• How do I make dialogs for the VS 2005 deployment projects?
• Call ClickOnce application (http://...) without/avoiding/hiding internet explorer
• Setup Project - Customizing the User's Shell
• vs2008 windows app with sql mdb file
• Problem With Oracle 9i r 2 and Vb.net
• Setup questions...
• reversing affects of publishung a visual basic progra
• why it removes the whole path from system after uninstallation???