[vlc-devel] [PATCH 2/2] NSIS: use more values from the defines
Steve Lhomme
robux4 at ycbcr.xyz
Tue May 12 12:37:39 CEST 2020
---
extras/package/win32/NSIS/vlc.win32.nsi.in | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/extras/package/win32/NSIS/vlc.win32.nsi.in b/extras/package/win32/NSIS/vlc.win32.nsi.in
index 55897d911a40..df78475d37f1 100644
--- a/extras/package/win32/NSIS/vlc.win32.nsi.in
+++ b/extras/package/win32/NSIS/vlc.win32.nsi.in
@@ -47,7 +47,7 @@ Var 32bitPath
Name "${PRODUCT_NAME}"
@HAVE_WIN64_FALSE@ OutFile ..\vlc-${VERSION}-win32.exe
@HAVE_WIN64_TRUE@ OutFile ..\vlc-${VERSION}-win64.exe
-InstallDir "$@PROGRAMFILES@\VideoLAN\VLC"
+InstallDir "$@PROGRAMFILES@\${PRODUCT_PUBLISHER}\VLC"
!ifdef NSIS_LZMA_COMPRESS_WHOLE
SetCompressor lzma
!else
@@ -366,24 +366,24 @@ ${MementoSectionEnd}
${MementoSection} "$(Name_Section02a)" SEC02a
SectionIn 1 2 3
- CreateDirectory "$SMPROGRAMS\VideoLAN"
- CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player.lnk" \
+ CreateDirectory "$SMPROGRAMS\${PRODUCT_PUBLISHER}"
+ CreateShortCut "$SMPROGRAMS\${PRODUCT_PUBLISHER}\${PRODUCT_NAME}.lnk" \
"$INSTDIR\vlc.exe" ""
- CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player skinned.lnk" \
+ CreateShortCut "$SMPROGRAMS\${PRODUCT_PUBLISHER}\${PRODUCT_NAME} skinned.lnk" \
"$INSTDIR\vlc.exe" "-Iskins"
- CreateShortCut "$SMPROGRAMS\VideoLAN\Documentation.lnk" \
+ CreateShortCut "$SMPROGRAMS\${PRODUCT_PUBLISHER}\Documentation.lnk" \
"$INSTDIR\Documentation.url"
- CreateShortCut "$SMPROGRAMS\VideoLAN\Release Notes.lnk" \
+ CreateShortCut "$SMPROGRAMS\${PRODUCT_PUBLISHER}\Release Notes.lnk" \
"$INSTDIR\NEWS.txt" ""
- CreateShortCut "$SMPROGRAMS\VideoLAN\${PRODUCT_GROUP} Website.lnk" \
+ CreateShortCut "$SMPROGRAMS\${PRODUCT_PUBLISHER}\${PRODUCT_GROUP} Website.lnk" \
"$INSTDIR\${PRODUCT_GROUP} Website.url"
- CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player - reset preferences and cache files.lnk" \
+ CreateShortCut "$SMPROGRAMS\${PRODUCT_PUBLISHER}\${PRODUCT_NAME} - reset preferences and cache files.lnk" \
"$INSTDIR\vlc.exe" "--reset-config --reset-plugins-cache vlc://quit"
${MementoSectionEnd}
${MementoSection} "$(Name_Section02b)" SEC02b
SectionIn 1 2 3
- CreateShortCut "$DESKTOP\VLC media player.lnk" \
+ CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" \
"$INSTDIR\vlc.exe" ""
${MementoSectionEnd}
@@ -909,7 +909,7 @@ Section "un.$(Name_Section91)" SEC91
DeleteRegKey HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
- Delete "$DESKTOP\VLC media player.lnk"
+ Delete "$DESKTOP\${PRODUCT_NAME}.lnk"
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
--
2.26.2
More information about the vlc-devel
mailing list