First, to determine whether the user is running Windows 7, I have:
I'm using MUI2 and also have:
Function .onInit
Var /GLOBAL WindowsVersion
ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber
StrCpy $R1 $R0 3
StrCmp $R1 '6.1' 0 +2
StrCpy $WindowsVersion "7"
FunctionEnd
However, it's not clear how to conditionally disable the Quick Launch checkbox (yet still leave the remaining components intact).
!define MUI_COMPONENTSPAGE_NODESC
!insertmacro MUI_PAGE_COMPONENTS
; ... [snip] ...
LangString LS_QuickLaunchIconSecName ${LANG_ENGLISH} \
"Quick Launch icon"
; ... [snip] ...
Section "$(LS_QuickLaunchIconSecName)"
CreateShortCut "$QUICKLAUNCH\${APP_NAME}.lnk" "$INSTDIR\${APP_NAME}.exe"
SectionEnd
Also, as an aside, I wrote this stuff a while ago. In looking back, it's no longer clear to me how NSIS "knows" the above section is the section that specifies the Quick Launch checkbox. So, how does it "know?"
Thanks for any help.