WWW.YOUINFO.SITE
标签聚合 注册表

/tag/注册表

LinuxDo 最新话题 · 2026-05-14 19:26:29+08:00 · tech

RegistryCleaner.reg Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\RegisteredApplications] "Cromite"=- [-HKEY_LOCAL_MACHINE\Software\Clients\StartMenuInternet\Cromite] [-HKEY_LOCAL_MACHINE\Software\Classes\CromiteHTML] [-HKEY_LOCAL_MACHINE\Software\Classes\CromiteURL] [-HKEY_CLASSES_ROOT\CromiteHTML] [-HKEY_CLASSES_ROOT\CromiteURL] install.bat @echo off setlocal enabledelayedexpansion set "BROWSER_NAME=Cromite" set "BROWSER_NAME_SHORT=Cromite" set "BROWSER_DESCRIPTION=Cromite browser" set "BROWSER_PATH=D:\chrome-win\chrome.exe" set "BROWSER_ICON=\"%BROWSER_PATH%\",0" set "BROWSER_ARGS=\"%BROWSER_PATH%\" \"%%1\"" if not exist "%BROWSER_PATH%" ( echo ERROR: "%BROWSER_PATH%" not found. pause exit /b 1 ) REM 检查管理员权限 reg add hklm /f >nul 2>&1 if ERRORLEVEL 1 ( echo ERROR: You must run this script as Administrator. pause exit /b 1 ) REM ===== 1. ProgID:CromiteHTML(用于 .html 等文件) ===== reg add "HKLM\Software\Classes\CromiteHTML" /ve /t REG_SZ /d "Cromite Document" /f reg add "HKLM\Software\Classes\CromiteHTML\DefaultIcon" /ve /t REG_SZ /d "%BROWSER_ICON%" /f reg add "HKLM\Software\Classes\CromiteHTML\shell\open\command" /ve /t REG_SZ /d "%BROWSER_ARGS%" /f REM ===== 2. ProgID:CromiteURL(用于 http/https 等协议) ===== reg add "HKLM\Software\Classes\CromiteURL" /ve /t REG_SZ /d "Cromite Protocol" /f reg add "HKLM\Software\Classes\CromiteURL" /v "EditFlags" /t REG_DWORD /d "2" /f reg add "HKLM\Software\Classes\CromiteURL" /v "FriendlyTypeName" /t REG_SZ /d "Cromite Protocol" /f reg add "HKLM\Software\Classes\CromiteURL" /v "URL Protocol" /t REG_SZ /d "" /f reg add "HKLM\Software\Classes\CromiteURL\DefaultIcon" /ve /t REG_SZ /d "%BROWSER_ICON%" /f reg add "HKLM\Software\Classes\CromiteURL\shell\open\command" /ve /t REG_SZ /d "%BROWSER_ARGS%" /f REM ===== 3. 注册为已注册的应用程序 ===== reg add "HKLM\Software\RegisteredApplications" /v "Cromite" /t REG_SZ /d "Software\Clients\StartMenuInternet\Cromite\Capabilities" /f REM ===== 4. StartMenuInternet 客户端信息 ===== reg add "HKLM\Software\Clients\StartMenuInternet\Cromite" /ve /t REG_SZ /d "Cromite" /f reg add "HKLM\Software\Clients\StartMenuInternet\Cromite\DefaultIcon" /ve /t REG_SZ /d "%BROWSER_ICON%" /f reg add "HKLM\Software\Clients\StartMenuInternet\Cromite\shell\open\command" /ve /t REG_SZ /d "\"%BROWSER_PATH%\"" /f reg add "HKLM\Software\Clients\StartMenuInternet\Cromite\InstallInfo" /v "IconsVisible" /t REG_DWORD /d "1" /f REM ===== 5. 浏览器能力声明(Capabilities) ===== reg add "HKLM\Software\Clients\StartMenuInternet\Cromite\Capabilities" /v "ApplicationIcon" /t REG_SZ /d "%BROWSER_ICON%" /f reg add "HKLM\Software\Clients\StartMenuInternet\Cromite\Capabilities" /v "ApplicationName" /t REG_SZ /d "Cromite" /f reg add "HKLM\Software\Clients\StartMenuInternet\Cromite\Capabilities" /v "ApplicationDescription" /t REG_SZ /d "%BROWSER_DESCRIPTION%" /f REM 可关联的文件扩展名 for %%e in (.htm .html .pdf .shtml .svg .webp .xht .xhtml) do ( reg add "HKLM\Software\Clients\StartMenuInternet\Cromite\Capabilities\FileAssociations" /v "%%e" /t REG_SZ /d "CromiteHTML" /f ) REM 可关联的 URL 协议 for %%p in (ftp http https mailto webcal urn tel smsto sms nntp news mms irc) do ( reg add "HKLM\Software\Clients\StartMenuInternet\Cromite\Capabilities\URLAssociations" /v "%%p" /t REG_SZ /d "CromiteURL" /f ) REM ===== 6. 打开“设置默认程序”对话框,让用户勾选 .html 等 ===== start "" /wait control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?pszAppName=Cromite echo. echo Registration completed! Select "Cromite" in the dialog and set it as default for .html, .htm, etc. pause 3 个帖子 - 3 位参与者 阅读完整话题