Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. Windows Registry Editor Version 5.00
  2.  
  3. ; Set IE as default & associate CSS / HTM / HTML with Notepad Plus
  4. ; Made for Windows 7
  5.  
  6. [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.mhtUserChoice]
  7. "Progid"="IE.AssocFile.MHT"
  8.  
  9. [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.mhtmlUserChoice]
  10. "Progid"="IE.AssocFile.MHT"
  11.  
  12. [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.urlUserChoice]
  13. "Progid"="IE.AssocFile.URL"
  14.  
  15. [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice]
  16. "Progid"="IE.HTTP"
  17.  
  18. [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpsUserChoice]
  19. "Progid"="IE.HTTPS"
  20.  
  21. [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationsftpUserChoice]
  22. "Progid"="IE.FTP"
  23.  
  24.  
  25. ;Associate CSS / HTM / HTML with Notepad Plus
  26.  
  27. [HKEY_CURRENT_USERSoftwareClasses.CSS]
  28. @="Notepad++"
  29.  
  30. [HKEY_CURRENT_USERSoftwareClasses.HTM]
  31. @="Notepad++"
  32.  
  33. [HKEY_CURRENT_USERSoftwareClasses.HTML]
  34. @="Notepad++"
  35.  
  36. [HKEY_CURRENT_USERSoftwareClassesNotepad++shellopencommand]
  37. @="d:\Tools\NPP\notepad++.exe "%1""
  38.  
  39. [-HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.css]
  40.  
  41. [-HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.htm]
  42.  
  43. [-HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.html]
  44. <code>
  45.  
  46. $Path = $env:TEMP; $Installer = "chrome_installer.exe"; Invoke-WebRequest
  47. "http://dl.google.com/chrome/install/3..." -OutFile $Path$Installer; Start-Process -FilePath
  48. $Path$Installer -Args "/silent /install" -Verb RunAs -Wait; Remove-Item $Path$Installer
  49.  
  50. $chromePath = "${Env:ProgramFiles(x86)}GoogleChromeApplication"
  51. $chromeApp = "chrome.exe"
  52. $chromeCommandArgs = "--make-default-browser"
  53. & "$chromePath$chromeApp" $chromeCommandArgs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement