title: Installing pear on windows, wrong paths
body: <p>I'm trying to install PEAR on Windows 7.</p>
  
  <p>I have php 5.4 in <code>d:\web\soft\php</code> directory, and I want to install PEAR in this directory too. I run:</p>
  
  <pre><code>php go-pear.phar
  </code></pre>
  
  <p>I see this:
  <img src="https://i.stack.imgur.com/x22re.png" alt="enter image description here"></p>
  
  <p>This paths are ok for me.</p>
  
  <p>Then I run enter and install it. In the end I see this warning:</p>
  
  <blockquote>
    <p>WARNING! Old version found at D:\web\soft\php, please remove it or be sure to use the new d:\web\soft\php\pear.bat command
    <br>The 'pear' command is now at your service at d:\web\soft\php\pear.bat`</p>
  </blockquote>
  
  <p>and when I press <code>pear config-show</code> I see completely wrong paths related to disk <code>C:\</code>:
  <img src="https://monosnap.s3.amazonaws.com/508d37dbe4b0337d1689560f%2F508d3817e4b0337d16895620%2F5098fe66e4b045b475b13e7d.png?Expires=1352205945&amp;AWSAccessKeyId=AKIAIO6PKRFX5SEQQGLQ&amp;Signature=7G2SeSM2jhJhzPoy9NwqVuXO7as%3D" alt=""></p>
  
  <pre><code>Auto-discover new Channels     auto_discover    &lt;not set&gt;
  Default Channel                default_channel  pear.php.net
  HTTP Proxy Server Address      http_proxy       &lt;not set&gt;
  PEAR server [DEPRECATED]       master_server    pear.php.net
  Default Channel Mirror         preferred_mirror pear.php.net
  Remote Configuration File      remote_config    &lt;not set&gt;
  PEAR executables directory     bin_dir          D:\web\soft\php
  PEAR documentation directory   doc_dir          C:\php\pear\docs
  PHP extension directory        ext_dir          d:/web/soft/php/ext
  PEAR directory                 php_dir          D:\web\soft\php\pear
  PEAR Installer cache directory cache_dir        C:\Users\zzz\AppData\Local\Temp\pear\cache
  PEAR configuration file        cfg_dir          C:\php\pear\cfg
  PEAR data directory            data_dir         C:\php\pear\data
  PEAR Installer download        download_dir     C:\Users\zzz\AppData\Local\Temp\pear\download
  PHP CLI/CGI binary             php_bin          D:\web\soft\php\php.exe
  php.ini location               php_ini          &lt;not set&gt;
  PEAR Installer temp directory  temp_dir         C:\Users\zzz\AppData\Local\Temp\pear\temp
  PEAR test directory            test_dir         C:\php\pear\tests
  PEAR www files directory       www_dir          C:\php\pear\www
  Signature Handling Program     sig_bin          c:\gnupg\gpg.exe
  Signature Key Directory        sig_keydir       C:\Windows\pearkeys
  User Configuration File        Filename         C:\Windows\pear.ini
  System Configuration File      Filename         C:\Windows\pearsys.ini
  </code></pre>
  
  <p>So it doesn't work.</p>
  
  <p>What am I doing wrong?</p>