Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

add admin start

xiaotian0775dbe14c6b01d
diff --git a/scripts/installer.iss b/scripts/installer.iss
index bf3b0ac6f1..88c70bd4f1 100644
--- a/scripts/installer.iss
+++ b/scripts/installer.iss
@@ -44,4 +44,5 @@ Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
-Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: nowait postinstall skipifsilent
\ No newline at end of file
+; shellexec 让程序通过 ShellExecute 启动,正确处理 UAC 权限请求
+Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: nowait postinstall skipifsilent shellexec
\ No newline at end of file
diff --git a/scripts/jiuwenclaw.spec b/scripts/jiuwenclaw.spec
index 91463f1826..17465f71cb 100644
--- a/scripts/jiuwenclaw.spec
+++ b/scripts/jiuwenclaw.spec
@@ -156,6 +156,7 @@ exe = EXE(
codesign_identity=None,
entitlements_file=None,
icon=icon_path,
+ uac_admin=True,
)
coll = COLLECT(