nsis 安装步骤修改
This commit is contained in:
1 parent
b4eac30398
commit
9f94375e5a
1 file changed
+12
@@ -102,6 +102,18 @@ Section
|
||||
|
||||
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"
|
||||
!insertmacro wails.setShellContext
|
||||
|
||||
|
||||
Reference in new issue
Block a user