|
- echo off
- Color 0A
- pushd %~dp0
- cd "%~dp0"
- for %%a in (SxS Dev Beta) do (
- set ver= %%a
- echo %LOCALAPPDATA%\Microsoft\Edge%ver%\Application\msedge.exe
- if exist "%LOCALAPPDATA%\Microsoft\Edge%ver%\Application\msedge.exe" set edge="%LOCALAPPDATA%\Microsoft\Edge%ver%\Application\msedge.exe"&&set edgepath="%LOCALAPPDATA%\Microsoft\Edge%ver%\Application"
- if exist "%ProgramFiles(x86)%\Microsoft\Edge%ver%\Application\msedge.exe" set edge="%ProgramFiles(x86)%\Microsoft\Edge%ver%\Application\msedge.exe"&&set edgepath="%LOCALAPPDATA%\Microsoft\Edge%ver%\Application"
- )
- echo edge执行文件:%edge%
- echo edge执行文件所在目录%edgepath%
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\edge.exe" /ve /t REG_SZ /d %edge% /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\edge.exe" /v "Path" /t REG_SZ /d %edgepath% /f
复制代码
|
|