summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmisc/nsis/install.nsh12
-rwxr-xr-xmisc/nsis/qutebrowser.nsi3
2 files changed, 13 insertions, 2 deletions
diff --git a/misc/nsis/install.nsh b/misc/nsis/install.nsh
index 9f0cdf446..8233ab5f0 100755
--- a/misc/nsis/install.nsh
+++ b/misc/nsis/install.nsh
@@ -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
diff --git a/misc/nsis/qutebrowser.nsi b/misc/nsis/qutebrowser.nsi
index 43214d9c8..7623d8cb2 100755
--- a/misc/nsis/qutebrowser.nsi
+++ b/misc/nsis/qutebrowser.nsi
@@ -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