Skip to content

Commit

Permalink
解决安装后因缺乏权限而无法运行的错误。
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayaku committed Feb 2, 2023
1 parent aeb97ac commit b79d950
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 19 deletions.
2 changes: 0 additions & 2 deletions ImageManager/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using Microsoft.EntityFrameworkCore;
using Stylet;
using StyletIoC;
using System;
using System.Diagnostics;
using System.IO;

namespace ImageManager
Expand Down
8 changes: 1 addition & 7 deletions ImageManager/Data/UserSettingData.cs
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -58,7 +52,7 @@ public UserSettingData()
if (!Directory.Exists(TempFolderPath))
Directory.CreateDirectory(TempFolderPath);
}

/// <summary>
/// 加载
/// </summary>
Expand Down
11 changes: 4 additions & 7 deletions ImageManager/ImageManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@
<UseWPF>true</UseWPF>
<AssemblyName>ImageManager</AssemblyName>
<RootNamespace>ImageManager</RootNamespace>
<Version>3.1.0.0</Version>
<Version>3.1.1.0</Version>
<Configurations>Debug;Release</Configurations>
<Copyright>Copyright © Nayaku 2022</Copyright>
<FileVersion>3.1.0.0</FileVersion>
<AssemblyVersion>3.1.0.0</AssemblyVersion>
<FileVersion>3.1.1.0</FileVersion>
<AssemblyVersion>3.1.1.0</AssemblyVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ApplicationIcon>icon.ico</ApplicationIcon>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
<PublishReadyToRun>true</PublishReadyToRun>
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
<SatelliteResourceLanguages>zh-Hans</SatelliteResourceLanguages>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DefineConstants>TRACE;Core</DefineConstants>
Expand Down
7 changes: 6 additions & 1 deletion design/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@

## 更新日志

### 3.1.1 2023年2月2日

- 解决安装后因缺乏权限而无法运行的错误。



### 3.1.0 2023年2月2日

- 初版发布
Expand Down
5 changes: 3 additions & 2 deletions 打包程序/script.iss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down

0 comments on commit b79d950

Please sign in to comment.