[wix-users] Switch to already running instance of custom bootstrapper.
Wesley Manning
wmanning at dynagen.ca
Fri Mar 11 06:40:15 PST 2016
Someone asked about the same thing a few months back. These were my replies. I do this on my application. If it's already open the second instance calls to the first passing its command arguments and closes.
I should mention the .net version implements .NET Remoting which is marked legacy per: https://msdn.microsoft.com/library/kwdt6w2k%28v=vs.100%29.aspx. But the recipe uses an interface so the remoting implementation can be easily changed. It's described in the whitepaper included with the sample.
Wes
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Wesley Manning
Sent: December-30-15 12:11 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Wix Toolset Burn open Multiple instance
For my application I use the Windows 7 Taskbar Single Instance recipe from Microsoft here: https://code.msdn.microsoft.com/windowsapps/Windows-7-Taskbar-Single-4120eafd#content. I've been using this for a few years in my .net application with no issues.
There are c++ and .net versions. Another link talking about it: http://www.gregcons.com/KateBlog/Windows7RecipeTaskbarSingleInstance.aspx.
Don't get confused by the taskbar part, that part can be ignored.
Wes
-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Farrukh Waheed
Sent: March-11-16 10:09 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Switch to already running instance of custom bootstrapper.
Hi Experts,
Presently, my CustomBootstrapper.exe can be launched multiple times simultaneously i.e. if you execute CustomBootstrapper.exe 10 times, there would be 10 windows of it, which may cause problems if I try to proceed with installations in multiple instances.
Is there any method to detect the execution of process CustomBootstrapper.exe and instead of launching another window, it should switch to existing executing instance and terminate itself?
(WPF, C#)
Thanks
Farrukh
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list