Created
          September 17, 2015 12:41 
        
      - 
      
- 
        Save panicbit/f07b5dbe1551f665e5bd to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $chrome_cmd = '"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" /high-dpi-support=1 /force-device-scale-factor=1 -- ' | |
| $safe_cmd = $chrome_cmd & '%*' | |
| $unsafe_cmd = $chrome_cmd & '"%1"' | |
| $key = "HKCR\Chrome\.exe\shell\open\command\" | |
| RegWrite($key, "", "REG_SZ", $safe_cmd) | |
| RegDelete($key, "DelegateExecute") | |
| $key = "HKCR\Chrome\.exe\shell\opennewwindow\command\" | |
| RegWrite($key, "", "REG_SZ", $safe_cmd) | |
| RegDelete($key, "DelegateExecute") | |
| $key = "HKCR\ChromeHTML\shell\open\command\" | |
| RegWrite($key, "", "REG_SZ", $unsafe_cmd) | |
| RegDelete($key, "DelegateExecute") | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment