mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-20 22:48:38 +08:00
19 lines
395 B
NSIS
19 lines
395 B
NSIS
; 高 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
|