Skip to content

Commit

Permalink
注册: 启用win的长路径支持
Browse files Browse the repository at this point in the history
  • Loading branch information
hooke007 committed Jan 2, 2024
1 parent cded4b0 commit 8988118
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions installer/mpv-install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ call :add_type "" "audio" "CUE Sheet"
:: Register "Default Programs" entry
call :reg add "HKLM\SOFTWARE\RegisteredApplications" /v "mpv" /d "SOFTWARE\Clients\Media\mpv\Capabilities" /f

:: Enable long paths in Windows 10
call :reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d 1 /f

:: Add start menu link
powershell "$s=(New-Object -COM WScript.Shell).CreateShortcut('%ProgramData%\Microsoft\Windows\Start Menu\Programs\mpv.lnk');$s.TargetPath='%mpv_path%';$s.Save()"

Expand Down

0 comments on commit 8988118

Please sign in to comment.