This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Multiple Instance of Setup.exe
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 09, 2008
03:32 AM
Multiple Instance of Setup.exe
Hi,
After building the release, I tried to install my product by running Setup.exe. During the execution of the setup.exe, I once again tried to run the same. Now I found that the Setup.exe gets executed for the second time even if another instance of the same setup is working.
Actually my idea was that if one instance of setup.exe is running, it wont allow another instance of setup.exe to run before the completion of the first one.
Do I need to do something to include this feature? I don't require a multiple instance of the same setup...What should I do?
I am using Install Script MSI project.
Thanks in advance...
After building the release, I tried to install my product by running Setup.exe. During the execution of the setup.exe, I once again tried to run the same. Now I found that the Setup.exe gets executed for the second time even if another instance of the same setup is working.
Actually my idea was that if one instance of setup.exe is running, it wont allow another instance of setup.exe to run before the completion of the first one.
Do I need to do something to include this feature? I don't require a multiple instance of the same setup...What should I do?
I am using Install Script MSI project.
Thanks in advance...
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 18, 2009
09:09 PM
Hi.... I have the same problem. I dont want to allow more than one setup running simultaneously.
Did you find any solution for this?
Anybody knows a solution?
Did you find any solution for this?
Anybody knows a solution?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 22, 2009
09:01 PM
hi..... nobody knows? any work around?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 23, 2009
08:44 AM
As far as I know, there is nothing in-built to prevent a setup.exe from starting while another is running. However, with an InstallScript MSI project, Windows Installer will stop two MSI execute sequences from running at the same time.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 25, 2009
09:37 PM
Hi Kathy... thanks for your response.... yep. I think that is true.
Our requirement is that we do not want to allow to run the setup again at the start of the installation. As long as one setup is still running, all attempts to run the same setup.exe will be aborted.
Anyway, I managed to make it work using the function FindWindow. I know, this is not the best solution, but good enough for our requirement.
Our requirement is that we do not want to allow to run the setup again at the start of the installation. As long as one setup is still running, all attempts to run the same setup.exe will be aborted.
Anyway, I managed to make it work using the function FindWindow. I know, this is not the best solution, but good enough for our requirement.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 07, 2009
02:31 AM
Use the following code, this is working for me :
strMutex = "MY_SETUPMUTEX" ;
hMutex = Kernel32.CreateMutex(NULL, TRUE, strMutex);
nError = Err.LastDllError();
if (hMutex != 0 && nError == 183) then
MessageBox("Another Instance of this setup is already running", WARNING);
ReleaseMutex(hMutex);
abort;
endif;
use Kernel32.dll
strMutex = "MY_SETUPMUTEX" ;
hMutex = Kernel32.CreateMutex(NULL, TRUE, strMutex);
nError = Err.LastDllError();
if (hMutex != 0 && nError == 183) then
MessageBox("Another Instance of this setup is already running", WARNING);
ReleaseMutex(hMutex);
abort;
endif;
use Kernel32.dll
