Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Stopping multiple instances of an application
 

Stopping multiple instances of an application

Hi,

Is there any way I can stop an application being run twice - ie if it's already running just bring up the current instance & if not start a new instance?

I'm using VS2005
GraemeP  Friday, June 19, 2009 11:33 AM

Are you using VB or C#? Because if you're using VB, it's one of the project properties. If you're using C#, it's a different matter altogether. We did this using named pipes.

RobinDotNet


Click here to visit my ClickOnce blog!
  • Marked As Answer byGraemeP Saturday, June 20, 2009 3:20 AM
  •  
RobinDotNet  Saturday, June 20, 2009 1:43 AM
  • Marked As Answer byGraemeP Tuesday, August 04, 2009 9:38 PM
  •  
RobinDotNet  Friday, July 31, 2009 8:53 AM

Are you using VB or C#? Because if you're using VB, it's one of the project properties. If you're using C#, it's a different matter altogether. We did this using named pipes.

RobinDotNet


Click here to visit my ClickOnce blog!
  • Marked As Answer byGraemeP Saturday, June 20, 2009 3:20 AM
  •  
RobinDotNet  Saturday, June 20, 2009 1:43 AM
Using VB - just found it in the properties thanks.
GraemeP  Saturday, June 20, 2009 3:20 AM
Hi,

I have selected "single instance application" in the properties & it's doing what it's supposed to - ie only one instance running.

However I also want to be able to run a modified version of the same application. But it won't let me - it appears to think the 2 applications are the same one.

What is it that defines the application? I've changed the assembly name, but no luck
GraemeP  Sunday, June 21, 2009 9:37 PM
  • Marked As Answer byGraemeP Tuesday, August 04, 2009 9:38 PM
  •  
RobinDotNet  Friday, July 31, 2009 8:53 AM

You can use google to search for other answers

Custom Search

More Threads

• Uninstall fails due to lack of privileges in Vista
• Deployment.Xml location
• Rolling out security settings to corp. network
• Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
• Encrypt Primary output
• Deploying .Net solution
• Changing of installation directory in ClickOnce Deployment
• !!!HELP!!! Is ClickOnce useless? Publishing a Clickonce application after certificate renewal.
• Installing Services with Clickonce?
• How to specify WSE 2.0 SP3 as prerequisite in VS .NET 2003 project?