PDA

View Full Version : Restrict Installer to one running instance



NewsArchive
02-17-2010, 02:43 AM
Hi Friedrich

Would it be possible to have the finished installer prevent other copies of
itself from running?

Reason I ask with some of my bigger installs on slower machines, before the
installer has had a chance to verify its integrity some users are clicking
it twice and finding two instances of the installer running and a few people
have got their knickers in a twist over it.

So any ideas how I can prevent multiple instances of the installation app
from running two or more times?<g>

Cheers

Richard

NewsArchive
02-17-2010, 02:44 AM
"Detect Active Application" script function?

Jane Fleming

NewsArchive
02-17-2010, 02:45 AM
Hi Jane

That detect active app function doesnt work properly as it assumes anything
running in taskmanager ignoring the file extension is the application
running see attached pic. <g>

In the pic I have created a new email, typed in PCWorkTime as the subject so
it appears in taskmanager as PCWorkTime - Message (HTML) and then called the
installer.

In another example create an installation file called MyInstall.exe. Right
mouse click, Send To, Compressed File. You get a zip of the same name.
Now Extract Zip file, into new folder, open folder if not already of the
same name as zip which is same name as installation program just different
extensions.
Dbl Click to run the installer from the extracted folder and it will detect
the folder as a running app.

The thing is though, this also only kicks in after the integrity validation
kicks in as well by which time customer in these couple of instances has got
all messed and gets confused.

If it could be the first thing to check, before the integrity check I think
that would be ideal hence the question of whether it could be built in as an
API enumerate running process check.<g>

Cheers

Richard

NewsArchive
02-17-2010, 02:47 AM
Hi Richard,

"Detect Active Application" should work fine to handle this :) See attached
screenshot and demo project.

Does this help?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
02-17-2010, 02:47 AM
Hi Friedrich

Thats where I was going wrong, I wasnt using MUTEX!

It doesnt pay to rush! Thanks Mate!<vbg>

Cheers

Richard

NewsArchive
02-17-2010, 02:48 AM
Hi Richard,

> Thats where I was going wrong, I wasnt using MUTEX!
>
> It doesnt pay to rush! Thanks Mate!<vbg>

;-) I'll try to add a new built-in CreateMutex script function so we do not
have to use "Call DLL" here.

Friedrich

NewsArchive
02-17-2010, 08:44 AM
> ;-) I'll try to add a new built-in CreateMutex script function so we do
> not have to use "Call DLL" here.

You've got a stock of beers mounting up here!<vbg>

Richard Rose

NewsArchive
02-17-2010, 08:44 AM
>
> You've got a stock of beers mounting up here!<vbg>

COOL <vbg>

Friedrich