Hi there,
A VB6 app has a static mutex name by default, but checking through the Process Explorer using this advice there are a number of them:
Plus more.Mutant \Sessions\1\BaseNamedObjects\MSCTF.Asm.MutexDefault1
Mutant \BaseNamedObjects\20b70e57-1c2e-4de9-99e5-20f3961e6912
Mutant \Sessions\1\BaseNamedObjects\MidiMapper_modLongMessage_RefCnt
Mutant \Sessions\1\BaseNamedObjects\SessionImmersiveColorMutex
Mutant \Sessions\1\BaseNamedObjects\SM0:8240:64:WilError_01
Suspect it's the second one with the GUID, but is the actual mutex name required for Inno just the GUID or do we include "\BaseNamedObjects\" as well.
Edit: Oops! Already defined it in the code!
So when checking for AppPrevInstance it's already set for the application.Code:Const MUTEX_NAME As String = "Global\20b70e57-1c2e-4de9-99e5-20f3961e6912" '20b70e57-1c2e-4de9-99e5-20f3961e6812'
Inno suggests creating a custom mutex name- but is that absolutely necessary - or even practical?
In any case the application is detected using the second GUID (ending 812) and terminated by Inno.
And both mutexes (mutices?) are handled in Inno anyway with
Thanks for reading.Code:[Setup] AppMutex=YourMutexNameGoesHere,Global\YourMutexNameGoesHere




Reply With Quote
