Skip to content

Commit

Permalink
installer: support long path in windows 10
Browse files Browse the repository at this point in the history
Close #48
  • Loading branch information
shinchiro committed Dec 23, 2023
1 parent ed7b342 commit 1c534ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mpv-root/installer/mpv-install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,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 1c534ce

Please sign in to comment.