Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Windows Registry Editor Version 5.00
- ; Set IE as default & associate CSS / HTM / HTML with Notepad Plus
- ; Made for Windows 7
- [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.mhtUserChoice]
- "Progid"="IE.AssocFile.MHT"
- [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.mhtmlUserChoice]
- "Progid"="IE.AssocFile.MHT"
- [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.urlUserChoice]
- "Progid"="IE.AssocFile.URL"
- [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice]
- "Progid"="IE.HTTP"
- [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpsUserChoice]
- "Progid"="IE.HTTPS"
- [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationsftpUserChoice]
- "Progid"="IE.FTP"
- ;Associate CSS / HTM / HTML with Notepad Plus
- [HKEY_CURRENT_USERSoftwareClasses.CSS]
- @="Notepad++"
- [HKEY_CURRENT_USERSoftwareClasses.HTM]
- @="Notepad++"
- [HKEY_CURRENT_USERSoftwareClasses.HTML]
- @="Notepad++"
- [HKEY_CURRENT_USERSoftwareClassesNotepad++shellopencommand]
- @="d:\Tools\NPP\notepad++.exe "%1""
- [-HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.css]
- [-HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.htm]
- [-HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionExplorerFileExts.html]
- <code>
- $Path = $env:TEMP; $Installer = "chrome_installer.exe"; Invoke-WebRequest
- "http://dl.google.com/chrome/install/3..." -OutFile $Path$Installer; Start-Process -FilePath
- $Path$Installer -Args "/silent /install" -Verb RunAs -Wait; Remove-Item $Path$Installer
- $chromePath = "${Env:ProgramFiles(x86)}GoogleChromeApplication"
- $chromeApp = "chrome.exe"
- $chromeCommandArgs = "--make-default-browser"
- & "$chromePath$chromeApp" $chromeCommandArgs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement