Inform OS of installation
Question: Just a question that interested me, I noticed that modern installers (for
various types of programs) alert you to wait until another installation is
finished before running themselves.

**How can I check for that / notify other installers?**

_Using c# or python_


Answer: AFAIK there is no way to "find" other running installers. At least not on
every system and every installer. The only good way is to use an installer
which supports that like windows installer (but also that only checks for
other running windows installers).

A probably working way would be to use a list of process names of installers
and check if one of them is running.  
Another way found as answers
[this](http://stackoverflow.com/questions/9125966/checking-if-windows-update-
or-any-installer-instace-is-running-before-starting-m) question is to check a
registry key ([1](http://stackoverflow.com/a/9160083/2325172)) or use the
windows api ([2](http://stackoverflow.com/a/9247466/2325172)). But this two
ways would only work on windows.

For ways to check if a process is running you could use the python module
[psutil](http://code.google.com/p/psutil/). An example which prints all
process names would be:

    
    
    import psutil
    for p in psutil.process_iter():
        print p.name
    

