title: How to find out if Windows installer is busy or not using delphi?
body: <p>I have a Windows service that restarts windows in specific events but i have a problem with it. I don't want to restart windows when it is installing programs using windows installer.</p>
  
  <p>So how i can fine out whether Windows installer is busy installing something or not.</p>
  
  <p>any Delphi or Command line Function is acceptable.</p>
  
  <p>Will you please help me ?</p>
  
  <p>I found these 2 classess but I don't know how to use them.</p>
  
  <p><a href="http://mfpack-media-foundation.googlecode.com/svn/trunk/MFPACK/JEDI/WinError.pas" rel="nofollow">Class1</a>  <a href="https://github.com/graemeg/freepascal/blob/master/packages/winunits-jedi/src/jwamsi.pas" rel="nofollow">class2</a></p>