[vlc-devel] [PATCH] NSIS: add 'App Paths' registry key (closes #17073)
Daniel Amm
da2424 at t-online.de
Wed Jun 29 22:03:56 CEST 2016
---
extras/package/win32/NSIS/vlc.win32.nsi.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/extras/package/win32/NSIS/vlc.win32.nsi.in b/extras/package/win32/NSIS/vlc.win32.nsi.in
index 71a404f..7e945f1 100644
--- a/extras/package/win32/NSIS/vlc.win32.nsi.in
+++ b/extras/package/win32/NSIS/vlc.win32.nsi.in
@@ -229,6 +229,10 @@ ${MementoSection} $Name_Section01 SEC01
!insertmacro MacroAllExtensions RegisterExtensionMacro
!insertmacro MacroSkinExtensions RegisterSkinExtensionMacro
+ ; Add VLC to "App Paths" to run VLC from ShellExecute/ShellExecuteEx/run dialog without giving a full path
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\vlc.exe" "" "$INSTDIR\vlc.exe"
+ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\vlc.exe" "Path" "$INSTDIR"
+
; Windows default programs Registration
; Vista and above detection
${If} ${AtLeastWinVista}
@@ -945,6 +949,7 @@ Section "un.$Name_Section91" SEC91
DeleteRegKey HKLM Software\VideoLAN
DeleteRegKey HKCR Applications\vlc.exe
+ DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\App Paths\vlc.exe"
DeleteRegKey HKCR AudioCD\shell\PlayWithVLC
DeleteRegKey HKCR DVD\shell\PlayWithVLC
DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayDVDMovieOnArrival" "VLCPlayDVDMovieOnArrival"
--
2.8.2.windows.1
More information about the vlc-devel
mailing list