|
|
|
@ -89,7 +89,11 @@ Section |
|
|
|
!insertmacro wails.files |
|
|
|
!insertmacro wails.files |
|
|
|
|
|
|
|
|
|
|
|
CreateShortcut "$SMPROGRAMS\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}" |
|
|
|
CreateShortcut "$SMPROGRAMS\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}" |
|
|
|
CreateShortCut "$DESKTOP\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}" |
|
|
|
CreateShortCut "$DESKTOP\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${PRODUCT_EXECUTABLE}" "" ".\icon.ico" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons" "" |
|
|
|
|
|
|
|
DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons" |
|
|
|
|
|
|
|
SendMessage 0xFFFF 0x0017 0 0 /TIMEOUT=5000 |
|
|
|
|
|
|
|
|
|
|
|
!insertmacro wails.associateFiles |
|
|
|
!insertmacro wails.associateFiles |
|
|
|
!insertmacro wails.associateCustomProtocols |
|
|
|
!insertmacro wails.associateCustomProtocols |
|
|
|
@ -102,18 +106,6 @@ Section |
|
|
|
|
|
|
|
|
|
|
|
SectionEnd |
|
|
|
SectionEnd |
|
|
|
|
|
|
|
|
|
|
|
Section "Install" |
|
|
|
|
|
|
|
; 创建快捷方式,并指定图标 ..\..\bin\${INFO_PROJECTNAME}-${ARCH}-installer.exe |
|
|
|
|
|
|
|
CreateShortCut "$DESKTOP\${INFO_PRODUCTNAME}.lnk" "$INSTDIR\${INFO_PROJECTNAME}-${ARCH}-installer.exe" "" "$INSTDIR\icon.ico" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; 强制刷新图标缓存 |
|
|
|
|
|
|
|
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons" "" |
|
|
|
|
|
|
|
DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer" "Shell Icons" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; 通知系统图标已更改 |
|
|
|
|
|
|
|
SendMessage 0xFFFF 0x0017 0 0 /TIMEOUT=5000 |
|
|
|
|
|
|
|
SectionEnd |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Section "uninstall" |
|
|
|
Section "uninstall" |
|
|
|
!insertmacro wails.setShellContext |
|
|
|
!insertmacro wails.setShellContext |
|
|
|
|
|
|
|
|
|
|
|
|