[vlc-commits] NSIS: add 'App Paths' registry key (closes #17073)
Daniel Amm
git at videolan.org
Thu Jun 30 09:18:20 CEST 2016
vlc | branch: master | Daniel Amm <da2424 at t-online.de> | Wed Jun 29 22:03:56 2016 +0200| [1a42f97f7e6f721e9d62c2297e1f62d183b0903e] | committer: Jean-Baptiste Kempf
NSIS: add 'App Paths' registry key (closes #17073)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1a42f97f7e6f721e9d62c2297e1f62d183b0903e
---
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"
More information about the vlc-commits
mailing list