From a02232a7703b3f55e49ed3608549d6357324407d Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Thu, 27 Feb 2025 17:45:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/install.nsh | 16 ++++++++++++++++ config/build.json | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 build/install.nsh diff --git a/build/install.nsh b/build/install.nsh new file mode 100644 index 0000000..2589d94 --- /dev/null +++ b/build/install.nsh @@ -0,0 +1,16 @@ +!macro customFinishPage +AutoCloseWindow true +Function StartApp + ${if} ${isUpdated} + StrCpy $1 "--updated" + ${else} + StrCpy $1 "" + ${endif} + ${StdUtils.ExecShellAsUser} $0 "$launchLink" "open" "$1" +FunctionEnd + +Function .onInstSuccess + Call StartApp +FunctionEnd + +!macroend diff --git a/config/build.json b/config/build.json index df6adec..710b98f 100644 --- a/config/build.json +++ b/config/build.json @@ -51,6 +51,7 @@ "deleteAppDataOnUninstall": true, "shortcutName": "智汇享", "allowElevation": true, - "perMachine": true + "perMachine": true, + "include": "build/install.nsh" } } \ No newline at end of file