

Seems like the "trying to start another installer (the msi) with different privileges" is a no-no. Would you call this a bug? It's definitely a headache. BUT, if I was logged in as admin, or now that I set the required exe level to admin, the message doesn't come up and things work fine. When it crashed while I was editing a video, it ended up saying another instance was open when I had nothing in my Task Manager Is anyone. Ive installed HitFilm 4 Express and it was worked fine until now. At that point, there was an installer running (the installscript one), and now it was trying to start another installer (the msi) with different privileges (because I didn't have the required exe level set to admin) so it would give the "installer running" message. HitFilm wont open for me and says 'Another instance is running' when there isnt curb Website User Posts: 1. So when it was installing with a standard user, it would start the install, then immediately call the MSI and that would cause it to prompt for admin privileges. So, here we have discussed few best methods to fix ‘Another instance is running’ error message. So, users need to close and kill the running process to fix the error message.

One crucial thing is I am calling an MSI from an installscript project. Well, Another instance of any particular software is running means the installer is already there on the background.

I thought I had set the "required execution level" (in installshield 2010 - Media->Release) to run as admin, but it was "highest available". That is discussed in the second sample.I had the same issue. See the examples for alternatives.ĮDIT 1: Just saw your comment that you have got a console application. No other instance was found, return null. If (Assembly.GetExecutingAssembly().Location. Make sure that the process is running from the exe file. Loop through the running processes in with the same name Process processes = Process.GetProcessesByName (current.ProcessName) Process current = Process.GetCurrentProcess() MessageBox.Show("An instance of the application is already running.") Mutex mutex = new (false, "MyUniqueMutexName") Īpplication.SetCompatibleTextRenderingDefault(false) It's not sure what you mean with 'the program', but if you want to limit your application to one instance then you can use a Mutex to make sure that your application isn't already running. Which will kill the currently loading process instantly. OR if ((System.IO.Path.GetFileNameWithoutExtension(().Location)).Count() > 1) ().Kill() This works for any application (any name) and will become true if there is another instance running of the same application.Įdit: To fix your needs you can use either of these: if ((System.IO.Path.GetFileNameWithoutExtension(().Location)).Count() > 1) return įrom your Main method to quit the method. var exists = (System.IO.Path.GetFileNameWithoutExtension(().Location)).Count() > 1
