
nosrednayduj asked a question.
Check for installer already running
I would like to check if someone has launched another installer already, and exit the second installer if so. Any ideas? Are there any registry entries that get updated when the installer launches (and cleared when it exits, of course!)
The only thing I can think of is writing a java program to listen on a port, and then check if it's available. If the java program was killed at the same time as the installer exited, always, because it was a tree, it might work. But it might be tricky to get it to execute the code and return to the installer leaving the listener running AND able to be killed at installer exit (since I can't count on being able to execute another custom code action, if the user shot it down with task manager). And of course, picking ports is fraught with peril -- I'm sure I'll pick some popular internet game port and then my installer won't run at all if the user has loaded that game.