撸主是不是经常遇到设置默认浏览器失败的情况啊 |
clautton 发表于 2024-5-30 20:23 感谢回复。 这个是firefox的 ,不知道chrome能不能借鉴一下 |
ko20010214 发表于 2024-5-11 00:47 用这: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxHTML] @="Firefox HTML" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxHTML\DefaultIcon] @="\"A:\\Pro-InstallED\\Mozilla\\Firefox.exe\",0" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxHTML\shell] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxHTML\shell\open] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxHTML\shell\open\command] @="\"A:\\Pro-InstallED\\Mozilla\\Firefox.exe\" -url \"%1\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxURL] @="Firefox Portable URL" "URL Protocol"="" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxURL\DefaultIcon] @=hex(2):22,00,41,00,3a,00,5c,00,50,00,72,00,6f,00,2d,00,49,00,6e,00,73,00,74,\ 00,61,00,6c,00,6c,00,45,00,44,00,5c,00,4d,00,6f,00,7a,00,69,00,6c,00,6c,00,\ 61,00,2d,00,31,00,5c,00,50,00,61,00,6c,00,65,00,6d,00,6f,00,6f,00,6e,00,2d,\ 00,31,00,2e,00,65,00,78,00,65,00,22,00,2c,00,30,00,00,00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxURL\shell] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxURL\shell\open] [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\FirefoxURL\shell\open\command] @=hex(2):22,00,41,00,3a,00,5c,00,50,00,72,00,6f,00,2d,00,49,00,6e,00,73,00,74,\ 00,61,00,6c,00,6c,00,45,00,44,00,5c,00,4d,00,6f,00,7a,00,69,00,6c,00,6c,00,\ 61,00,2d,00,31,00,5c,00,50,00,61,00,6c,00,65,00,6d,00,6f,00,6f,00,6e,00,2d,\ 00,31,00,2e,00,65,00,78,00,65,00,22,00,20,00,2d,00,75,00,72,00,6c,00,20,00,\ 22,00,25,00,31,00,22,00,00,00 [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Firefox] "LocalizedString"="Mozilla Firefox Portable Edition" @="Firefox Portable" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Firefox\Capabilities] "ApplicationName"="Mozilla Firefox, Portable Edition" "ApplicationDescription"="Mozilla Firefox®, Portable Edition is the popular Mozilla Firefox web browser bundled with a PortableApps.com Launcher as a portable app, so you can take your bookmarks, extensions and saved passwords with you." "ApplicationIcon"="\"A:\\Pro-InstallED\\Mozilla\\Firefox.exe\",0" "Hidden"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Firefox\Capabilities\FileAssociations] ".htm"="FirefoxHTML" ".html"="FirefoxHTML" ".shtml"="FirefoxHTML" ".xht"="FirefoxHTML" ".xhtml"="FirefoxHTML" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Firefox\Capabilities\StartMenu] "StartMenuInternet"="Firefox" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Firefox\Capabilities\URLAssociations] "http"="FirefoxURL" "https"="FirefoxURL" "ftp"="FirefoxURL" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Firefox\DefaultIcon] @="\"A:\\Pro-InstallED\\Mozilla\\Firefox.exe\",0" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Firefox\shell] [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Firefox\shell\open] [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Firefox\shell\open\command] @="\"A:\\Pro-InstallED\\Mozilla\\Firefox.exe\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Firefox\shell\properties] [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Firefox\shell\properties\command] @="\"A:\\Pro-InstallED\\Mozilla\\Firefox.exe\" -preferences" [HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications] "Firefox Portable"="Software\\Clients\\StartMenuInternet\\Firefox\\Capabilities" [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet] [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Firefox] "LocalizedString"="Mozilla Firefox Portable Edition" @="Firefox Portable" [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Firefox\Capabilities] "ApplicationName"="Mozilla Firefox, Portable Edition" "ApplicationDescription"="Mozilla Firefox" "ApplicationIcon"="\"A:\\Pro-InstallED\\Mozilla\\Firefox.exe\",0" "Hidden"=dword:00000000 [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Firefox\Capabilities\FileAssociations] ".htm"="FirefoxHTML" ".html"="FirefoxHTML" ".shtml"="FirefoxHTML" ".xht"="FirefoxHTML" ".xhtml"="FirefoxHTML" [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Firefox\Capabilities\StartMenu] "StartMenuInternet"="Firefox" [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Firefox\Capabilities\URLAssociations] "http"="FirefoxURL" "https"="FirefoxURL" "ftp"="FirefoxURL" [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Firefox\DefaultIcon] @="\"A:\\Pro-InstallED\\Mozilla\\Firefox.exe\",0" [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Firefox\shell] [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Firefox\shell\open] [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Firefox\shell\open\command] @="\"A:\\Pro-InstallED\\Mozilla\\Firefox.exe\"" [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Firefox\shell\properties] [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Clients\StartMenuInternet\Firefox\shell\properties\command] @="\"A:\\Pro-InstallED\\Mozilla\\Firefox.exe\" -preferences" [HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\RegisteredApplications] "Firefox Portable"="Software\\Clients\\StartMenuInternet\\Firefox\\Capabilities" |
长见识了,感谢分享分享 |
clautton 发表于 2024-5-11 00:28 正常的情况下,Win10底下运行chrome,然后在设置里点击设置为默认浏览器,它会调用win10的设置程序来选择谁是默认的浏览器,这不需要其它的软件…… 我现在是讨论在Win10PE的环境下,它那个设置程序被精简了,调不出来,无法正常设置……而chrome又老喜欢检测自己是不是默认浏览器,还特别愿意提醒你。 |
ko20010214 发表于 2024-5-10 22:21 确定, 我是用Firefox便携版, win10 Win11都可以. |
Windows系统中注册Firefox: Windows系统使用的是HTML Application (HTA)的方式来注册默认浏览器。这个方法需要你先创建一个HTA文件,然后运行它。 创建一个名为register-firefox.hta的文件,并添加以下代码: <script language="VBScript"> strPath = "C:\Program Files\Mozilla Firefox\firefox.exe" Set shell = CreateObject("WScript.Shell") shell.RegWrite("HKCR\http\shell\open\command\", strPath & " ""%1""") shell.RegWrite("HKCR\https\shell\open\command\", strPath & " ""%1""") shell.RegWrite("HKCR\ftp\shell\open\command\", strPath & " ""%1""") shell.RegWrite("HKCR\mailto\shell\open\command\", strPath & " ""%1""") MsgBox "Firefox is now the default browser.", 64, "Success" </script> 在这个例子中,我们假设Firefox安装在C盘的"Program Files"文件夹中。你需要将这个路径改为你的Firefox实际安装路径。 |
本帖最后由 ko20010214 于 2024-5-10 22:30 编辑 clautton 发表于 2024-5-10 21:57 你确定? This program registers Mozilla Firefox Portable Edition with the Default Programs tool in Windows 7/Vista. 适用于Win7 或vista 。 而且它要求在有.NET的环境下。 现在讨论的是win10以上甚至是10PE的环境下。 This article lists two methods with which you can register Mozilla Firefox Portable Edition with Default Apps or Default Programs in Windows Vista through Windows 10/11. 这个好像是说这有两个方法能让你在windows vista 到windows10/11 都能设置firefox为默认的浏览器 但我没有环境可以试。 |
win7好说,win10,win11不好搞 |
楼主研究出来了可以开个新帖讲解一下,我也想知道Win11PE下,怎么手动设定某个浏览器为系统默认浏览器! |
ko20010214 发表于 2024-5-10 12:22 你新建个html文件,双击看能不能调用浏览器打开,验证下 |
本帖最后由 ko20010214 于 2024-5-10 12:28 编辑 xmzhqw 发表于 2024-5-10 12:02 谢谢你的回复 。 这个批处理非常妙啊……我在 chrome109方少绿化版 (更新为109.0.5414.168版)win7可用的最新最高的版本 这个帖子里也提到过它。 http://bbs.wuyou.net/forum.php?m ... 7&page=3#pid5268885 但由于我的环境是在kuer打造的win10PE里,登陆帐户为system, 不知道是不是这些因素影响了结果。 另外,这个批处理是给 84.0.4147.125 版本的chrome 使用的,有理由怀疑它不是在win10环境下测试的。 它里面带的 设置默认浏览器.REG 里面都没有提到 HASH值,估计在win10底下也无法起作用。 其实,有那些文件关联已经能让它正常使用了,是不是默认浏览器已经不重要了,(从实际使用效果来看它已经是默认的浏览器了), 现在就是解决 一打开chrome就提示 不是默认浏览器 的问题。 然后似乎也解决了。 最后就是 设置 里面 还是不认是默认的浏览器,这已经无关紧要了,留给处女座的去解决吧。 |
ko20010214 发表于 2024-5-10 11:40 试试 Smine 大神的批处理:(注意里面的路径) rem init App if not exist "%ProgramFiles%\Chrome\App" md "%ProgramFiles%\Chrome\App" if not exist "%temp%\Chrome\Cache" md "%temp%\Chrome\Cache" rem test readonly mklink /d "%~dp0Cache" "%temp%\Chrome\Cache" if exist "%~dp0Cache" ( call :linkTemp rem pdf REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML\Application" /v "ApplicationIcon" /d "\"%~dp0App\Chrome.exe\",0" /f REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML\DefaultIcon" /ve /d "\"%~dp0App\Chrome.exe\",0" /f REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML\shell\open\command" /ve /d "\"%~dp0App\Chrome.exe\" \"%%1\"" /f ) else ( xcopy "%~dp0*" "%ProgramFiles%\Chrome\" /y /s /h /r /k /e mklink /d "%ProgramFiles%\Chrome\Cache" "%temp%\Chrome\Cache" PECMD LINK "X:\ProgramData\Microsoft\Windows\Start Menu\Programs\网络\Google Chrome","%ProgramFiles%\Chrome\App\Chrome.exe",, PECMD LINK "X:\Users\Public\Desktop\Google Chrome","%ProgramFiles%\Chrome\App\Chrome.exe",, rem pdf REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML\Application" /v "ApplicationIcon" /d "\"%ProgramFiles%\Chrome\App\Chrome.exe\",0" /f REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML\DefaultIcon" /ve /d "\"%ProgramFiles%\Chrome\App\Chrome.exe\",0" /f REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML\shell\open\command" /ve /d "\"%ProgramFiles%\Chrome\App\Chrome.exe\" \"%%1\"" /f ) goto :end :linkTemp call :link "AutofillStates" call :link "BrowserMetrics" call :link "CertificateRevocation" call :link "Crashpad" call :link "Crowd Deny" call :link "ECSerivceProvidersConfig" call :link "FileTypePolicies" call :link "Floc" call :link "GrShaderCache" call :link "InterventionPolicyDatabase" call :link "MEIPreload" call :link "OriginTrials" call :link "pnacl" call :link "RecoveryImproved" call :link "Safe Browsing" call :link "SafetyTips" call :link "ShaderCache" call :link "SSLErrorAssistant" call :link "Subresource Filter" call :link "SwReporter" call :link "ThirdPartyModuleList64" call :link "TLSDeprecationConfig" call :link "WidevineCdm" call :link "ZxcvbnData" goto :end :link set f=%1 set f=%f:"=% if exist "%~dp0Data\%f%" rd /s /q "%~dp0Data\%f%" if not exist "%temp%\Chrome\Data\%f%" md "%temp%\Chrome\Data\%f%" mklink /d "%~dp0Data\%f%" "%temp%\Chrome\Data\%f%" goto :end :end 如不行,再加一个注册表:设为默认浏览器 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.html] @="ChromeHTML" [HKEY_CLASSES_ROOT\.htm] @="ChromeHTML" [HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice] "ProgId"="ChromeHTML" [HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice] "ProgId"="ChromeHTML" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.HTM\OpenWithList] "a"="Chrome.exe" "MRUList"="a" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.HTM\OpenWithProgids] "ChromeHTML"=hex(0): [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.HTM\UserChoice] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.HTM\UserChoice] "ProgId"="ChromeHTML" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\OpenWithList] "a"="Chrome.exe" "MRUList"="a" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\OpenWithProgids] "ChromeHTML"=hex(0): [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice] "ProgId"="ChromeHTML" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mht\OpenWithList] "a"="Chrome.exe" "MRUList"="a" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mht\OpenWithProgids] "ChromeHTML"=hex(0): [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mht\UserChoice] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mht\UserChoice] "ProgId"="ChromeHTML" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mhtml\OpenWithList] "a"="Chrome.exe" "MRUList"="a" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mhtml\OpenWithProgids] "ChromeHTML"=hex(0): [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mhtml\UserChoice] [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.mhtml\UserChoice] "ProgId"="ChromeHTML" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts] "ChromeHTML_.htm"=dword:00000000 "ChromeHTML_.html"=dword:00000000 |
lxl1638 发表于 2024-5-10 11:55 我就是想把 默认浏览器设置为 chrome, 然后 它死活都提示 不是默认浏览器。 不过,就如上面所说,我用SFTA 设置好了,再导入注册表, 然后不去画蛇添足,它是不会提示的。虽然在设置里查看,它还是不认自己是默认浏览器,但至少打开chrome时它不会提示我。 这就够了…… 算是达到目的了…… 需要去深究 chrome是怎么检查自己是不是默认浏览器吗? |
ko20010214 发表于 2024-5-10 11:40 是不是设置默认的不是chrome了?chrome会查检默认浏览器是不是自己,不是自己就提示这个吧 |
本帖最后由 ko20010214 于 2024-5-10 11:53 编辑 先查 http的shell open command,再查 https 的 , 有则返回 默认浏览器。 那是不是直接在注册表里添加这个键值即可?=============================================== Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\https\shell] [HKEY_CURRENT_USER\Software\Classes\https\shell\open] [HKEY_CURRENT_USER\Software\Classes\https\shell\open\command] @="\"X:\\Program Files\\Google\\chrome\\App\\Chrome-bin\\chrome.exe\" \"%1\"" ================================================= 好像弄巧成拙了…… 添加了这个之后, 一打开chrome,又提示 不是默认浏览器了。 |
本帖最后由 lxl1638 于 2024-5-10 10:55 编辑 看图,代码倒数第二,第三行注册表的设置 |
脚本中浏览器的路径写死为 C:\Windows\Temp\app\centbrowser 了,因为我开机运行的批处理会把 便携软件所在目录通过 mklink /j 创建为连接 C:\Windows\Temp\app 这样所有软件的路径都是固定的,对写脚本带来方便 |
发一下我的将便携版centbrowser设置为默认浏览器的批处理,供参考 @ECHO OFF & PUSHD "%~DP0" & setlocal ENABLEDELAYEDEXPANSION fltmc>nul||mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~dpnx0","%*",,"runas",1)(window.close)&&exit set "exe=%~dp0chrome.exe" set "pid=CentHTM" set "ext=htm html mht mhtm mhtml pdf shtm shtml svg xht xhtml xml" ver | findstr /i "10." > nul if %errorlevel% equ 0 ( for %%i in (%ext%) do %~dp0SFTA.exe --reg "%exe%" ".%%i" %~dp0SFTA.exe --reg "%exe%" "http" "%pid%" %~dp0SFTA.exe --reg "%exe%" "https" "%pid%" %~dp0SFTA.exe --reg "%exe%" "mms" "%pid%" ) else ( for %%i in (%ext%) do assoc .%%i=%pid% ftype %pid% ="%exe%" "%%1" REG ADD HKCU\Software\Classes\http\shell\open\command /ve /d "\"%exe%\" -- \"%1\"" /f REG ADD HKCU\Software\Classes\https\shell\open\command /ve /d "\"%exe%\" -- \"%1\"" /f REG ADD HKCU\Software\Classes\mms\shell\open\command /ve /d "\"%exe%\" -- \"%1\"" /f ) reg add "HKCR\CentHTM" /ve /t REG_SZ /d "Cent HTML Document" /f reg add "HKCR\CentHTM" /v "AppUserModelId" /t REG_SZ /d "CentBrowser" /f reg add "HKCR\CentHTM\Application" /v "AppUserModelId" /t REG_SZ /d "CentBrowser" /f reg add "HKCR\CentHTM\Application" /v "ApplicationIcon" /t REG_SZ /d "C:\\Windows\\Temp\\app\\centbrowser\\chrome.exe,0" /f reg add "HKCR\CentHTM\Application" /v "ApplicationName" /t REG_SZ /d "Cent Browser" /f reg add "HKCR\CentHTM\Application" /v "ApplicationDescription" /t REG_SZ /d "访问互联网" /f reg add "HKCR\CentHTM\Application" /v "ApplicationCompany" /t REG_SZ /d "Cent Studio" /f reg add "HKCR\CentHTM\DefaultIcon" /ve /t REG_SZ /d "C:\\Windows\\Temp\\app\\centbrowser\\chrome.exe,0" /f reg add "HKCR\CentHTM\shell\open\command" /ve /t REG_SZ /d "\"C:\\Windows\\Temp\\app\\centbrowser\\chrome.exe\" --single-argument %%1" /f reg add "HKCU\Software\Clients\StartMenuInternet" /ve /t REG_SZ /d "CentBrowser" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser" /ve /t REG_SZ /d "Cent Browser" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities" /v "ApplicationDescription" /t REG_SZ /d "Cent Browser 是一款可高速运行网页和应用的网络浏览器。它快捷、稳定且易于使用。Cent Browser 内置的防护恶意软件和网上诱骗的功能可让您更安全地浏览网页。" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities" /v "ApplicationIcon" /t REG_SZ /d "C:\\Windows\\Temp\\app\\centbrowser\\chrome.exe,0" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities" /v "ApplicationName" /t REG_SZ /d "Cent Browser" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".htm" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".html" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".mht" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".mhtm" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".mhtml" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".pdf" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".shtm" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".shtml" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".svg" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".webp" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".xht" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".xhtml" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\FileAssociations" /v ".xml" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\Startmenu" /v "StartMenuInternet" /t REG_SZ /d "CentBrowser" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\URLAssociations" /v "http" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\URLAssociations" /v "https" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\Capabilities\URLAssociations" /v "mms" /t REG_SZ /d "CentHTM" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\DefaultIcon" /ve /t REG_SZ /d "C:\\Windows\\Temp\\app\\centbrowser\\chrome.exe,0" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\InstallInfo" /v "ReinstallCommand" /t REG_SZ /d "\"C:\\Windows\\Temp\\app\\centbrowser\\chrome.exe\" --make-default-browser" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\InstallInfo" /v "HideIconsCommand" /t REG_SZ /d "\"C:\\Windows\\Temp\\app\\centbrowser\\chrome.exe\" --hide-icons" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\InstallInfo" /v "ShowIconsCommand" /t REG_SZ /d "\"C:\\Windows\\Temp\\app\\centbrowser\\chrome.exe\" --show-icons" /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\InstallInfo" /v "IconsVisible" /t REG_DWORD /d 00000001 /f reg add "HKCU\Software\Clients\StartMenuInternet\CentBrowser\shell\open\command" /ve /t REG_SZ /d "\"C:\\Windows\\Temp\\app\\centbrowser\\chrome.exe\"" /f reg add "HKCU\Software\RegisteredApplications" /v "CentBrowser" /t REG_SZ /d "Software\\Clients\\StartMenuInternet\\CentBrowser\\Capabilities" /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe" /ve /t REG_SZ /d "C:\\Windows\\Temp\\app\\centbrowser\\chrome.exe" /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe" /v "Path" /t REG_SZ /d "C:\\Windows\\Temp\\app\\centbrowser" /f exit |
监控它检测哪项 |
你用注册表对比工具 对比一下不就知道了。 |
9zhmke 发表于 2024-5-9 17:42 我的意思是 SFTA 也没有达到我设置默认浏览器的目的。是不是我用法不对? |
ko20010214 发表于 2024-5-5 23:28 11楼说得很清楚了,新系统里面用注册表或者参数方式很难成功,还是乖乖用setuserFTA吧 |
同样来学习一下、感谢分享 |
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.