diff options
author | bitraid <bitraid@protonmail.ch> | 2022-04-13 12:54:26 +0300 |
---|---|---|
committer | bitraid <bitraid@protonmail.ch> | 2022-04-13 12:54:26 +0300 |
commit | 6bf7907c195e7a36ca91098bb72b7352403967b0 (patch) | |
tree | 48b77c241fc0e101303f15e25f039632d674e7b3 | |
parent | a97ffe0bd05159e2e5e779816ba71d8941714ec9 (diff) | |
download | qutebrowser-6bf7907c195e7a36ca91098bb72b7352403967b0.tar.gz qutebrowser-6bf7907c195e7a36ca91098bb72b7352403967b0.zip |
NSIS: Base icon choices on previous install
Closes #7109
-rwxr-xr-x | misc/nsis/install.nsh | 12 |
1 files changed, 10 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 |