Hi,
I'm currently facing a problem with my single instance clickonce deployed app, and maybe someone has a good idea about it.
My app is called by a web application, which passes parameters to this exe. Now the problem is, if the application is already running, it takes quite a long time, until the new instance is started, the paramete...
I’ve been asked if we can optionally “single-instance” our web portal. See
this post on Hanselman's blog for the same idea in a WinForms app.
Suppose we have 2 shortcuts on the same client machine:
http://MyServer/MyWebPortal/Default.aspx?user=username&document=Foo
http://MyServer/MyWebPortal/Default.aspx?user=username&documen...
I need to have a single instance application (as per this answer), but it needs to be deployed via click once.
The problem is that I require that click once doesn't automatically detect an update an attempt to load a newer version while the application is running. If it is running, then I need the other instance to be made active. Usua...
I have a windows form application that uses a Shared class to house all of the common objects for the application. The settings class has a collection of objects that do things periodically, and then there's something of interest, they need to alert the main form and have it update.
I'm currently doing this through Events on the objects...
I have a loader.exe with Main() that loads the 'UI' in WPF, the thing is that I want only one instance of the loader.exe, how can I achieve it?
Is there a way a user clicks loader.exe it should check if an existing loader.exe is running and does nothing.
currently I have
loader.exe
with
main()
....
..
Load UI
...
the loader h...
Hi All,
I have an Updater program written in NSIS. I just wanna make sure that when it's invoked twice or more, it won't create another instance of the updater, else there would be two or more updaters running.
How do you restrict the updater from creating another instance if your updater is already running? So that only one updater ...
Is there a way to let gVim only run a single instance, so that when a new file is opened with it it's automatically opened in a new tab in the currently running instance?
I know you can do that by passing --remote-tab-silent but I want to configure gvim so that this becomes the default behavior. i.e. I want to type gvim filename and mak...
I have a service that I would like it to become single instance, because when i click restart on services.msc, the new instance of the service starts when the old instance still haven't finished (because it has to perform some actions).
The code that finishes the service looks like this:
protected override void OnStop()
{
Log.Info(...
I've seen all the answers for the standard framework
What is the correct way to create a single instance application?
Prevent multiple instances of a given app in .NET?
What is the best way to make a single instance application in .net?
How do I check whether another process with the same name exists using the compact framework?
The 3 ...
Hi there,
I am having single table view in a view controller. That table view lists the countries first. When I click on a country(row), it has to push the same view controller's view with cities under that country. I need to see the slide animation, which we usally get while pushing views in navigator.
Is it possible to use the pushVi...
Hi All,
I am working on the application (C# 2.0). I have implemented single instance in it. Everything is fine.
If i run the application again, it shows messagebox saying "instance is already running".
Actually i don't want to show the message through messagebox.
I want to show this message using Balloon tip of already running instan...
i create some project but when start App. How to Run this App one Process only and name much "test.exe" name only? when Lunch APP ? C# 2.0
...
Hi...
I am building an application with C#.
I managed to turn this into a single instance application by checking if the same process is already running.
Process[] pname = Process.GetProcessesByName("SwapCardDesktop");
if (pname.Length < 2)
{
// Launch Application
}
I intend to have another fun...
Hi dudes,
Currently working on an application, that help you to take backup of the files in you machine at the server (hosted by the company itself), so that you can recover data after any hdd crash. I have implemented Single Instance feature, across the users.
Single Instance : A file uploaded already at the server, wouldn't be uploa...
I want to create a program that uses ClickOnce for installation and registers a file-association,
and always only starts a single instance, so that if a file of that file extension is clicked again it will be sent to the first (already opened) program.
Does anybody know of a good code-example of how to do that ?
Please keep in mind the...
I'm working an application of which only one instance must exist at any given time. There are several possibilities to accomplish this:
Check running processes for one matching our EXE's name (unreliable)
Find the main window (unreliable, and I don't always have a main window)
Create a mutex with a unique name (GUID)
The mutex option...
:: dostuff.bat
@echo off
:: insert long-running process call here
: End
What can I add to this batch file to make it terminate if it's already running in another process when it's executed?
...
Hi,
the WPF app I have has been redesigned to use tabs and be single instance. The new requirement is now that when launched with command line options and an instance of the app is already running - the already running instance should open a new tab and do some work based on the cmdline options.
the single instance is no prob - but how ...
I'm using process.info, process start(); to call an exe on button click in c#.net, but every time I click on the button it calls an exe and opens a duplicate file on the taskbar. I want to just maximize the exe that was already on the taskbar.
I'm facing the problem that it is again and again opening the same file on the button click.
...
There are a lot of solutions for restricting an application from running twice. Searching by process name, using a named mutex etc. But I all of these methods don't work if I want to restrict my application to the shell session.
A user may have more than login session and shell on windows (right?)? If this is true I want to be able to r...