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.
This commit is contained in:
rdb 2020-12-22 16:21:55 +01:00
parent 78e23c018c
commit 8f9ca34eec

View File

@ -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