From b9281b68ab2c4dbc17d5ae7c5354f541e682afc9 Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Thu, 10 Jul 2025 04:53:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(utils):=20=E5=AE=89=E8=A3=85=E5=8C=85?= =?UTF-8?q?=E9=80=82=E9=85=8D=E7=AE=A1=E7=90=86=E5=91=98=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/AUTO_MAA.iss | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/utils/AUTO_MAA.iss b/app/utils/AUTO_MAA.iss index ebb2710..68930e6 100644 --- a/app/utils/AUTO_MAA.iss +++ b/app/utils/AUTO_MAA.iss @@ -20,7 +20,7 @@ AppPublisher={#MyAppPublisher} AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} -DefaultDirName=D:\{#MyAppName} +DefaultDirName={autopf}\{#MyAppName} UninstallDisplayIcon={app}\{#MyAppExeName} ; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run ; on anything but x64 and Windows 11 on Arm. @@ -32,13 +32,13 @@ ArchitecturesAllowed=x64compatible ArchitecturesInstallIn64BitMode=x64compatible DisableProgramGroupPage=yes LicenseFile={#MyAppPath}\LICENSE -; Remove the following line to run in administrative install mode (install for all users). -PrivilegesRequired=lowest +PrivilegesRequired=admin OutputDir={#OutputDir} OutputBaseFilename=AUTO_MAA-Setup SetupIconFile={#MyAppPath}\resources\icons\AUTO_MAA.ico SolidCompression=yes WizardStyle=modern +AppMutex=AUTO_MAA_Installer_Mutex [Languages] Name: "Chinese"; MessagesFile: "{#MyAppPath}\resources\docs\ChineseSimplified.isl" @@ -62,7 +62,7 @@ Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon [Run] -Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall +Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall runascurrentuser [Code] var @@ -70,7 +70,10 @@ var function InitializeUninstall: Boolean; begin - DeleteDataQuestion := MsgBox('您确认要完全移除 AUTO_MAA 的所有用户数据文件与子组件吗?', mbConfirmation, MB_YESNO) = IDYES; + DeleteDataQuestion := MsgBox('您确认要完全移除 AUTO_MAA 的所有配置、用户数据与子组件吗?' + #13#10 + + '选择"是"将删除所有配置文件、数据与子组件程序。' + #13#10 + + '选择"否"将保留数据文件与子组件。', + mbConfirmation, MB_YESNO) = IDYES; Result := True; end;