From b79d950efbc735b0afd5c1d55d5860987b7f92a1 Mon Sep 17 00:00:00 2001 From: Nayaku Date: Thu, 2 Feb 2023 16:14:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=AE=89=E8=A3=85=E5=90=8E?= =?UTF-8?q?=E5=9B=A0=E7=BC=BA=E4=B9=8F=E6=9D=83=E9=99=90=E8=80=8C=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E8=BF=90=E8=A1=8C=E7=9A=84=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ImageManager/Bootstrapper.cs | 2 -- ImageManager/Data/UserSettingData.cs | 8 +------- ImageManager/ImageManager.csproj | 11 ++++------- design/development.md | 7 ++++++- readme.md | 6 ++++++ .../script.iss" | 5 +++-- 6 files changed, 20 insertions(+), 19 deletions(-) diff --git a/ImageManager/Bootstrapper.cs b/ImageManager/Bootstrapper.cs index bc4f0a7..51183ec 100644 --- a/ImageManager/Bootstrapper.cs +++ b/ImageManager/Bootstrapper.cs @@ -3,8 +3,6 @@ using Microsoft.EntityFrameworkCore; using Stylet; using StyletIoC; -using System; -using System.Diagnostics; using System.IO; namespace ImageManager diff --git a/ImageManager/Data/UserSettingData.cs b/ImageManager/Data/UserSettingData.cs index b9f3078..2676c11 100644 --- a/ImageManager/Data/UserSettingData.cs +++ b/ImageManager/Data/UserSettingData.cs @@ -1,13 +1,7 @@ using HandyControl.Themes; using Stylet; -using System; -using System.Collections.Generic; using System.ComponentModel; using System.IO; -using System.Linq; -using System.Text; -using System.Text.Json; -using System.Threading.Tasks; using System.Xml.Serialization; namespace ImageManager.Data @@ -58,7 +52,7 @@ public UserSettingData() if (!Directory.Exists(TempFolderPath)) Directory.CreateDirectory(TempFolderPath); } - + /// /// 加载 /// diff --git a/ImageManager/ImageManager.csproj b/ImageManager/ImageManager.csproj index 8a5ff5e..fceab9d 100644 --- a/ImageManager/ImageManager.csproj +++ b/ImageManager/ImageManager.csproj @@ -5,19 +5,16 @@ true ImageManager ImageManager - 3.1.0.0 + 3.1.1.0 Debug;Release Copyright © Nayaku 2022 - 3.1.0.0 - 3.1.0.0 + 3.1.1.0 + 3.1.1.0 enable enable icon.ico true - - - true - False + zh-Hans TRACE;Core diff --git a/design/development.md b/design/development.md index 3e84cd9..06a8436 100644 --- a/design/development.md +++ b/design/development.md @@ -2,4 +2,9 @@ It seems it needs to check for the `Text` format and not `StringFormat` -ref: [https://github.com/dotnet/docs-desktop/issues/160](https://github.com/dotnet/docs-desktop/issues/160) \ No newline at end of file +ref: [https://github.com/dotnet/docs-desktop/issues/160](https://github.com/dotnet/docs-desktop/issues/160) + + + +Inno Setup入门(二十五) ——添加管理员权限_荷花微笑的博客-CSDN博客_inno setup 管理员权限 +https://blog.csdn.net/qq_35432904/article/details/105265285 \ No newline at end of file diff --git a/readme.md b/readme.md index 678332f..58c2bbb 100644 --- a/readme.md +++ b/readme.md @@ -31,6 +31,12 @@ ## 更新日志 +### 3.1.1 2023年2月2日 + +- 解决安装后因缺乏权限而无法运行的错误。 + + + ### 3.1.0 2023年2月2日 - 初版发布 diff --git "a/\346\211\223\345\214\205\347\250\213\345\272\217/script.iss" "b/\346\211\223\345\214\205\347\250\213\345\272\217/script.iss" index d7e918d..5b3501b 100644 --- "a/\346\211\223\345\214\205\347\250\213\345\272\217/script.iss" +++ "b/\346\211\223\345\214\205\347\250\213\345\272\217/script.iss" @@ -27,7 +27,8 @@ AppUpdatesURL={#MyAppURL} DefaultDirName={autopf}\ImageManager DisableProgramGroupPage=yes DefaultGroupName={#MyAppName} -OutputBaseFilename={#MyAppName}安装程序 +OutputBaseFilename={#MyAppName}_{#AppVerText} +PrivilegesRequired=admin ;PrivilegesRequired=lowest PrivilegesRequiredOverridesAllowed=commandline Compression=lzma2/max @@ -39,7 +40,7 @@ SetupIconFile={#SetupIconFilePath} Name: "chinesesimp"; MessagesFile: "compiler:Default.isl" [Tasks] -Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkablealone ;Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1 [Files]