如果你是用阿榮福利味的免安裝版
可參考
http://azo-edu.blogspot.tw/2010/04/firefox.html請注意
你要自己打開*.reg檔去修改你免安裝版所在路徑!
但我覺得阿榮福利味的登錄檔有點美中不足
所以自行修改了部份
記得是關於HTML檔案ICON顯示部份
預設是抓FirefoxPortable.exe
我改抓火狐主程式firefox.exe (ICON群組齊全)
我改的供參考
引言回覆:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\FirefoxHTML]
[HKEY_CLASSES_ROOT\FirefoxHTML\DefaultIcon]
@="\"X:\\Program Files\\FirefoxPortable\\App\\Firefox\\firefox.exe\",1"
[HKEY_CLASSES_ROOT\FirefoxHTML\Shell\open\command]
@="\"X:\\Program Files\\FirefoxPortable\\FirefoxPortable.exe\" -url \"%1\""
[HKEY_CLASSES_ROOT\.html]
@="FirefoxHTML"
"PerceivedType"="text"
"Content Type"="text/html"
[HKEY_CLASSES_ROOT\.htm]
@="FirefoxHTML"
"PerceivedType"="text"
"Content Type"="text/html"
[HKEY_CLASSES_ROOT\InternetShortcut]
@="網際網路捷徑"
"EditFlags"=dword:00000002
"IsShortcut"=""
"NeverShowExt"=""
[HKEY_CLASSES_ROOT\InternetShortcut\DefaultIcon]
@=hex(2):22,00,58,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,46,00,69,00,72,00,65,00,66,00,6f,00,\
78,00,50,00,6f,00,72,00,74,00,61,00,62,00,6c,00,65,00,5c,00,41,00,70,00,70,\
00,5c,00,46,00,69,00,72,00,65,00,66,00,6f,00,78,00,5c,00,66,00,69,00,72,00,\
65,00,66,00,6f,00,78,00,2e,00,65,00,78,00,65,00,22,00,2c,00,31,00,00,00
以上這段原始為 "X:\Program Files\FirefoxPortable\App\Firefox\firefox.exe",1
匯出後才變成這種數字
[HKEY_CLASSES_ROOT\InternetShortcut\shell]
@=""
[HKEY_CLASSES_ROOT\InternetShortcut\shell\open\command]
@="\"X:\\Program Files\\FirefoxPortable\\FirefoxPortable.exe\" -url \"%1\""
[HKEY_CLASSES_ROOT\InternetShortcut\shellex\ContextMenuHandlers\{FBF23B40-E3F0-101B-8488-00AA003E56F8}]
@=""
[HKEY_CLASSES_ROOT\.url]
@="InternetShortcut"
[HKEY_CLASSES_ROOT\htmlfile]
@="HTML Document"
"EditFlags"=dword:00000000
[HKEY_CLASSES_ROOT\htmlfile\shell]
@=""
[HKEY_CLASSES_ROOT\htmlfile\shell\open\command]
@="\"X:\\Program Files\\FirefoxPortable\\FirefoxPortable.exe\" -url \"%1\""
[HKEY_CLASSES_ROOT\http]
@="URL:HyperText 傳輸通訊協定"
"EditFlags"=dword:00000002
"URL Protocol"=""
[HKEY_CLASSES_ROOT\http\DefaultIcon]
@="\"X:\\Program Files\\FirefoxPortable\\App\\Firefox\\firefox.exe\",1"
[HKEY_CLASSES_ROOT\http\shell]
@=""
[HKEY_CLASSES_ROOT\http\shell\open\command]
@="\"X:\\Program Files\\FirefoxPortable\\FirefoxPortable.exe\" -url \"%1\""
[HKEY_CLASSES_ROOT\https]
@="URL:HyperText 傳輸通訊協定附加保密"
"EditFlags"=dword:00000002
"URL Protocol"=""
[HKEY_CLASSES_ROOT\https\DefaultIcon]
@="\"X:\\Program Files\\FirefoxPortable\\App\\Firefox\\firefox.exe\",1"
[HKEY_CLASSES_ROOT\https\shell]
@=""
[HKEY_CLASSES_ROOT\https\shell\open\command]
@="\"X:\\Program Files\\FirefoxPortable\\FirefoxPortable.exe\" -url \"%1\""
[HKEY_CLASSES_ROOT\ftp]
@="URL:檔案傳輸通訊協定"
"EditFlags"=dword:00000002
"URL Protocol"=""
[HKEY_CLASSES_ROOT\ftp\DefaultIcon]
@="\"X:\\Program Files\\FirefoxPortable\\App\\Firefox\\firefox.exe\",1"
[HKEY_CLASSES_ROOT\ftp\shell]
@=""
[HKEY_CLASSES_ROOT\ftp\shell\open\command]
@="\"X:\\Program Files\\FirefoxPortable\\FirefoxPortable.exe\" -url \"%1\""
另外在WINDOWS7上
有一則登錄檔寫不進去
系統原始為
[HKEY_CLASSES_ROOT\InternetShortcut\shell\Open\Command]
@="\"C:\\Windows\\System32\\rundll32.exe\" \"C:\\Windows\\System32\\ieframe.dll\",OpenURL %l"
欲寫入為
[HKEY_CLASSES_ROOT\InternetShortcut\shell\open\command]
@="\"X:\\Program Files\\FirefoxPortable\\FirefoxPortable.exe\" -url \"%1\""
我不清楚這是做什麼的
雖沒順利寫入
但預設瀏覽器方面我沒遇到什麼問題
如果你的不是阿榮福利味的免安裝版
我不確定這登錄檔你適不適用
請自行評估風險
有時登錄檔亂掉很麻煩的