------------------------------------------------------------------
  potRipper
  Batch for making the program folder of PotPlayerMini
  Support PotPlayer version 1.7 & 1.6
------------------------------------------------------------------
  
  
 < Summary >
  
  This batch program works to help you install/update PotPlayer.
  potRipper extracts files from "PotPlayerSetup(64).exe" automatically.
  
  You still need prepare "PotPlayerSetup(64).exe" for each version,
  but you would no longer need execute it.
  
  potRipper will edit the system registry for PotPlayer's information.
  (if possible)
  To remove it from the registry, just use the shortcut of Unreg32/64
  created in the installation folder.
  
  
  
 < Restrictions >
  
  It is necessary to run as administrator for the file operation
  in some folders or editing the registry.
  potRipper needs "Windows PowerShell" for User Account Controll (UAC).
  But on Windows XP and Vista, PowerShell is not originally installed
  by default.
  
 * The registration of PotPlayer is not supported for Windows XP.
  
 * On Windows Vista, UAC by potRipper does not work until PowerShell is
   installed.
  
 * The installation / setup path can not include certain symbol characters;
   such as @, !, &, $, %...
 
 * The installation / setup path can not include certain Unicode characters
   for creating shortcut files automatically. (Windows start menu etc.)
 
 
 
 < Options >
  
 * Edit for extraction files
    You can edit the list of files/folders which are extracted.
    The list file "potRipper_inc.txt" is included in potRipper's package.
    
    If you want to keep some files/folders from being overwritten,
    it's some useful feature.
    potRipper, by default, extracts the same files/folders
    as if you execute the installation program of PotPlayer normally.
  
  
 * Portable usage
    PotPlayer stores the settings in the system registry by default,
    but potRipper gives you the choice for INI file only when following
    conditions are both satisfied;
    
    - New installation instead of update
      (PotPlayer(64).dll does not exist in the installation folder)
    
    - Location other than the default program folders of Windows
      (Not applied for Windows XP)
    
    If INI file is chosen here, PotPlayer will be treated for the portable
    use and potRipper will not edit the registry or start menu.
  
  
  
 < Preparations >
  
  * Install "7-Zip" for decompression of files
      
      Execute the installation program of 7-Zip so potRipper can know
      the location of "7z.exe".
      Or use the default folder for 7-Zip. (e.g. "C:\Program Files\7-Zip")
  
  
  * Download the setup file (PotPlayerSetup(64).exe)
      
      Perpare the setup file of PotPlayer on your local disk.
      You can change the filename as long as the setup file is official.
  
  
  * Make a new folder to put potRipper in
      
      Make a new folder (e.g. "Setup") under the installation folder,
      and put "potRipper.bat" and "potRipper_inc.txt" in it.
      potRipper will extract PotPlayer into the parent folder of where
      potRipper exists.
      
      You can not include symbol characters in the path. (@, !, &, $, %...)

  
  
 < How to use >
  
  Run this batch with PotPlayerSetup(64).exe as an argument.
  (command-line e.g.) > potRipper "C:\My Data\PotPlayerSetup.exe"
  
  Also by File Explorer, you can send PotPlayerSetup(64).exe to potRipper.
  Choose one of these ways;
  
  - Drag & drop onto the file of potRipper.bat
  
  - With using the context menu, copy & paste to potRipper.bat
  
  - Send through the Send-To menu which has a shortcut of potRipper.bat
  
  - Change the filename extension (exe) and associate it with potRipper.bat
  
  
  When using the shortcut of potRipper, don't enable "Run as administrator"
  in Advanced Property. You can not send a file from File Explorer directly
  to the application which is running as admin.
  
  potRipper will shift authorization to admin automatically after execution
  if Windows PowerShell is available and the system is not Windows XP.
