title: How to make program dependent of another program?
body: <p>I have a two windows programs, <strong><em>p1</em></strong> and <strong><em>p2</em></strong> whereby <strong><em>p1</em></strong> is the <strong><em>main</em></strong> program. I want to implement a situation such that program, <strong><em>p2</em></strong> is <strong><em>dependent</em></strong> on the main program, I mean program two can't execute minus first executing the main program that is to say of someone executes program p2 without the main program it should say something like:</p>
  
  <blockquote>
    <p>p2 can't launch alone without p1 or the main app.</p>
  </blockquote>
  
  <p>That's the overview of what i want to implement. Program, p1 is my own program i have developed in delphi.</p>
  
  <p>Hope it makes sense.</p>