mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-24 23:06:51 +00:00
新的提交
This commit is contained in:
18
installer.nsh
Normal file
18
installer.nsh
Normal file
@@ -0,0 +1,18 @@
|
||||
; 高 DPI 支持
|
||||
ManifestDPIAware true
|
||||
|
||||
!include "WordFunc.nsh"
|
||||
|
||||
!macro customInit
|
||||
; 设置 DPI 感知
|
||||
System::Call 'USER32::SetProcessDPIAware()'
|
||||
!macroend
|
||||
|
||||
; 在安装开始前修正安装目录
|
||||
!macro preInit
|
||||
; 如果安装目录不以 WeFlow 结尾,自动追加
|
||||
${WordFind} "$INSTDIR" "\" "-1" $R0
|
||||
${If} $R0 != "WeFlow"
|
||||
StrCpy $INSTDIR "$INSTDIR\WeFlow"
|
||||
${EndIf}
|
||||
!macroend
|
||||
Reference in New Issue
Block a user