From 8f9ca34eec22c5f9cb63ea903e0903011a71b4fa Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 22 Dec 2020 16:21:55 +0100 Subject: [PATCH] makepackage: Don't write Sample Programs to start menu in Win 8/10 The start menu in newer versions of Windows doesn't show any hierarchy, making this utterly unreadable and useless. --- makepanda/installer.nsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makepanda/installer.nsi b/makepanda/installer.nsi index 2c6920c87e..6d8cf561e5 100644 --- a/makepanda/installer.nsi +++ b/makepanda/installer.nsi @@ -677,6 +677,7 @@ Section "Sample programs" SecSamples CreateShortCut "$SMPROGRAMS\${TITLE}\Panda3D Website.lnk" "$INSTDIR\Website.url" "" "$INSTDIR\pandaIcon.ico" 0 "" "" "Panda3D Website" CreateShortCut "$SMPROGRAMS\${TITLE}\Sample Program Manual.lnk" "$INSTDIR\Samples.url" "" "$INSTDIR\pandaIcon.ico" 0 "" "" "Sample Program Manual" + ${Unless} ${AtLeastWin8} FindFirst $0 $1 $INSTDIR\samples\* loop: StrCmp $1 "" done @@ -708,6 +709,7 @@ Section "Sample programs" SecSamples FindNext $0 $1 Goto loop done: + ${EndUnless} SectionEnd !endif