В общем на работе win 7, развернул рег файл (делает Хром браузером по умолчанию), который успешно работает на XP.
Ну и нифига не получилось
Получается, что у 7 и у XP реестры отличаются друг от друга?
И чтобы всё замечательно работало надо дома тоже установить семёрку и забыть о несовместимости?
Кому интересно, то вот код:
[more]
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\.htm]
@="MyHTMLfile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\.html]
@="MyHTMLfile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\.mht]
@="MyMHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\.mhtml]
@="MyMHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\.shtml]
@="MyMHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\.url]
@="MyInternetShortcut"
[HKEY_CURRENT_USER\SOFTWARE\Classes\ftp]
[HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
00,69,00,6c,00,65,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,\
74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,5c,00,49,00,45,\
00,78,00,70,00,6c,00,6f,00,72,00,65,00,2e,00,65,00,78,00,65,00,2c,00,30,00,\
00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\Shell]
@="MyHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\Shell\MyHTMLFile]
[HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\Shell\MyHTMLFile\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\http]
[HKEY_CURRENT_USER\SOFTWARE\Classes\http\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
00,69,00,6c,00,65,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,\
74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,5c,00,49,00,45,\
00,78,00,70,00,6c,00,6f,00,72,00,65,00,2e,00,65,00,78,00,65,00,2c,00,30,00,\
00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\http\Shell]
@="MyHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\http\Shell\MyHTMLFile]
[HKEY_CURRENT_USER\SOFTWARE\Classes\http\Shell\MyHTMLFile\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\https]
[HKEY_CURRENT_USER\SOFTWARE\Classes\https\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
00,69,00,6c,00,65,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,\
74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,5c,00,49,00,45,\
00,78,00,70,00,6c,00,6f,00,72,00,65,00,2e,00,65,00,78,00,65,00,2c,00,30,00,\
00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\https\Shell]
@="MyHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\https\Shell\MyHTMLFile]
[HKEY_CURRENT_USER\SOFTWARE\Classes\https\Shell\MyHTMLFile\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyHTMLfile]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyHTMLfile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
00,69,00,6c,00,65,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,\
74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,5c,00,49,00,45,\
00,78,00,70,00,6c,00,6f,00,72,00,65,00,2e,00,65,00,78,00,65,00,2c,00,30,00,\
00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyHTMLfile\Shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyHTMLfile\Shell\Open]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyHTMLfile\Shell\Open\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut]
"IsShortcut"=""
"NeverShowExt"=""
"EditFlags"=dword:00000002
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,75,00,72,00,\
6c,00,2e,00,64,00,6c,00,6c,00,2c,00,30,00,00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shell\Open]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shell\Open\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shellex]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shellex\IconHandler]
@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shellex\PropertySheetHandlers]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shellex\PropertySheetHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}]
@="REG_SZ"
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyMHTMLFile]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyMHTMLFile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
00,69,00,6c,00,65,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,\
74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,5c,00,49,00,45,\
00,78,00,70,00,6c,00,6f,00,72,00,65,00,2e,00,65,00,78,00,65,00,2c,00,30,00,\
00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyMHTMLFile\Shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyMHTMLFile\Shell\Open]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyMHTMLFile\Shell\Open\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[/more]
Ну и нифига не получилось
Получается, что у 7 и у XP реестры отличаются друг от друга?
И чтобы всё замечательно работало надо дома тоже установить семёрку и забыть о несовместимости?
Кому интересно, то вот код:
[more]
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\.htm]
@="MyHTMLfile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\.html]
@="MyHTMLfile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\.mht]
@="MyMHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\.mhtml]
@="MyMHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\.shtml]
@="MyMHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\.url]
@="MyInternetShortcut"
[HKEY_CURRENT_USER\SOFTWARE\Classes\ftp]
[HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
00,69,00,6c,00,65,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,\
74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,5c,00,49,00,45,\
00,78,00,70,00,6c,00,6f,00,72,00,65,00,2e,00,65,00,78,00,65,00,2c,00,30,00,\
00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\Shell]
@="MyHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\Shell\MyHTMLFile]
[HKEY_CURRENT_USER\SOFTWARE\Classes\ftp\Shell\MyHTMLFile\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\http]
[HKEY_CURRENT_USER\SOFTWARE\Classes\http\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
00,69,00,6c,00,65,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,\
74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,5c,00,49,00,45,\
00,78,00,70,00,6c,00,6f,00,72,00,65,00,2e,00,65,00,78,00,65,00,2c,00,30,00,\
00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\http\Shell]
@="MyHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\http\Shell\MyHTMLFile]
[HKEY_CURRENT_USER\SOFTWARE\Classes\http\Shell\MyHTMLFile\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\https]
[HKEY_CURRENT_USER\SOFTWARE\Classes\https\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
00,69,00,6c,00,65,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,\
74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,5c,00,49,00,45,\
00,78,00,70,00,6c,00,6f,00,72,00,65,00,2e,00,65,00,78,00,65,00,2c,00,30,00,\
00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\https\Shell]
@="MyHTMLFile"
[HKEY_CURRENT_USER\SOFTWARE\Classes\https\Shell\MyHTMLFile]
[HKEY_CURRENT_USER\SOFTWARE\Classes\https\Shell\MyHTMLFile\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyHTMLfile]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyHTMLfile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
00,69,00,6c,00,65,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,\
74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,5c,00,49,00,45,\
00,78,00,70,00,6c,00,6f,00,72,00,65,00,2e,00,65,00,78,00,65,00,2c,00,30,00,\
00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyHTMLfile\Shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyHTMLfile\Shell\Open]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyHTMLfile\Shell\Open\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut]
"IsShortcut"=""
"NeverShowExt"=""
"EditFlags"=dword:00000002
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,75,00,72,00,\
6c,00,2e,00,64,00,6c,00,6c,00,2c,00,30,00,00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shell\Open]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shell\Open\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shellex]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shellex\IconHandler]
@="{FBF23B40-E3F0-101B-8488-00AA003E56F8}"
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shellex\PropertySheetHandlers]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyInternetShortcut\Shellex\PropertySheetHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}]
@="REG_SZ"
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyMHTMLFile]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyMHTMLFile\DefaultIcon]
@=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,00,46,\
00,69,00,6c,00,65,00,73,00,5c,00,49,00,6e,00,74,00,65,00,72,00,6e,00,65,00,\
74,00,20,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,5c,00,49,00,45,\
00,78,00,70,00,6c,00,6f,00,72,00,65,00,2e,00,65,00,78,00,65,00,2c,00,30,00,\
00,00
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyMHTMLFile\Shell]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyMHTMLFile\Shell\Open]
[HKEY_CURRENT_USER\SOFTWARE\Classes\MyMHTMLFile\Shell\Open\Command]
@="\"R:\\софт\\GoogleChromePortable\\App\\Chrome-bin\\chrome.exe\" \"%1\""
[/more]