title: Getting Install path of a package just installed by chocolatey in powershell
body: <p>After I install a package in powershell by using 
  <code>"choco install $package"</code> where package is taken from a config file and would look like "WinRar" so I would be doing <code>choco install WinRar</code>, how do i get the exact path this package was just installed to?</p>
  
  <p>For example when I am installing PhantomJS using this, it gets installed to <code>C:\ProgramData\chocolatey\lib\PhantomJS\tools\phantomjs-2.1.1-windows</code> and I as the developer know that, but since I need to add this to the env path, depending on which version the install command installs, the path will be different. I need to get the exact path so i can set the environmental variable to right place. </p>
  
  <p>PhantomJS is just one example, but a lot of packages get installed into directories where their version is apart of the path and getting the path from the powershell install scripts would really be helpful. </p>
  
  <p>Is there anything like this available for the package manager? I assume figuring out where the package just got installed to should be possible because I see it displayed on my terminal window, just don't know how to access it in powershell. </p>
  
  <p>Thanks.</p>