title: How to Force install location from OSX .pkg
body: <p>I'm attempting to create a package installer for our product. Previously we installed with a .dmg, and the process was to just drag it to the /Applications folder. Now we want it to install to /Application/Company/Suite/product.</p>
  
  <p>Problem is: If we use the .pkg installer on a system that previously had our product installed it creates the folders, but installs the product over the old location.</p>
  
  <p>How can I make the pkg installer do the following:</p>
  
  <ol>
  <li>Remove the old version</li>
  <li>Install new version to proper location</li>
  </ol>
  
  <p>I've had very little experience with OSX - so maybe I'm just missing something? Also looking in the applications folder - it doesn't appear that anything else is installed to a subdirectory, is it unusual to do things this way?
  Thank you!</p>
  
  <p>EDIT:
  I'm looking into the answers located here <a href="https://stackoverflow.com/questions/19283889/osx-pkg-installer-sometimes-does-not-install-app-file">OSX .pkg installer sometimes does not install .app file</a>, differently worded problem - but the answer might be just what I need.</p>
  
  <p>EDIT2: <a href="https://stackoverflow.com/questions/19283889/osx-pkg-installer-sometimes-does-not-install-app-file">OSX .pkg installer sometimes does not install .app file</a> Does not apply. We didn't install with any package manager - so there isn't a previous entry.</p>
  
  <p>EDIT3: We were using <strong>dmg</strong>, but are now moving to <strong>pkg</strong>.</p>