Merge remote-tracking branch 'origin/pr/7124'

This commit is contained in:
Florian Bruhin 2022-06-13 12:24:16 +02:00
commit 8c887bdba3
2 changed files with 13 additions and 2 deletions

View File

@ -542,8 +542,16 @@ Function PageInstallModeChangeMode
FunctionEnd
Function PageComponentsPre
GetDlgItem $0 $HWNDPARENT 1
SendMessage $0 ${BCM_SETSHIELD} 0 0 ; hide SHIELD (Windows Vista and above)
SendMessage $mui.Button.Next ${BCM_SETSHIELD} 0 0
StrCmpS $HasCurrentModeInstallation 0 +9
IfFileExists "$DESKTOP\${PRODUCT_NAME}.lnk" +4
SectionGetFlags ${SectionDesktopIcon} $1
IntOp $1 $1 & 0xFFFFFFFE
SectionSetFlags ${SectionDesktopIcon} $1
IfFileExists "$STARTMENU\${PRODUCT_NAME}.lnk" +4
SectionGetFlags ${SectionStartMenuIcon} $1
IntOp $1 $1 & 0xFFFFFFFE
SectionSetFlags ${SectionStartMenuIcon} $1
FunctionEnd
Function PageDirectoryPre

View File

@ -43,6 +43,9 @@ ShowUninstDetails hide
!addplugindir /x86-unicode ".\plugins\x86-unicode"
!addincludedir ".\include"
!define MUI_BGCOLOR "SYSCLR:Window"
!define MUI_TEXTCOLOR "SYSCLR:WindowText"
!include MUI2.nsh
!include NsisMultiUser.nsh
!include StdUtils.nsh