You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that `CertMgr.exe` is a command line tool and must be run in Command Prompt or PowerShell. You can also call it in your C# code using the `System.Diagnostics.Process.Start()` method.
116
112
117
-
118
-
119
-
**X509Store实现:**
113
+
**X509Store Implementation:**
120
114
121
115
```c#
122
116
usingSystem;
@@ -128,19 +122,18 @@ public class Example
128
122
{
129
123
stringCertificatePath="Path to your certificate file";
Copy file name to clipboardExpand all lines: website/docs/guide/Dump.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
sidebar_position: 4
3
3
---
4
4
5
-
### Dump 转储文件
5
+
### Dump Files
6
6
7
-
在自动升级的过程中如果更新失败,或程序更新完成之后运行崩溃都可以使用ProcDump工具辅助导出dump文件。ProcDump 是一个命令行实用工具,其主要用途是监视应用程序的 CPU 峰值,并在出现峰值期间生成故障转储,管理员或开发人员可以使用这些转储来确定出现峰值的原因。 ProcDump 还支持挂起窗口监视(使用与 Windows 和任务管理器使用的窗口挂起相同的定义)、未处理的异常监视,并且可以根据系统性能计数器的值生成转储。 它还可用作可嵌入到其他脚本中的常规进程转储实用工具。
7
+
During the process of automatic updates, if an update fails or if the program crashes after the update, you can use the ProcDump tool to help export dump files. ProcDump is a command-line utility primarily used to monitor an application's CPU spikes and generate crash dumps during these spikes. Administrators or developers can use these dumps to determine the cause of the spikes. ProcDump also supports hung window monitoring (using the same definition as Windows and Task Manager), unhandled exception monitoring, and can generate dumps based on system performance counter values. It can also be used as a general-purpose process dump utility that can be embedded into other scripts.
8
8
9
-
##### (1)Windows平台
9
+
##### (1) Windows Platform
10
10
11
-
C#实现调用:
11
+
C# Implementation for Calling ProcDump:
12
12
13
13
```c#
14
14
usingSystem;
@@ -19,7 +19,7 @@ public class Program
19
19
publicstaticvoidMain()
20
20
{
21
21
varprocDumpPath=@"C:\Path\To\procdump.exe";
22
-
varprocessId=1234; //您要转储的进程的ID
22
+
varprocessId=1234; //The ID of the process you want to dump
Even though applications are closed during automatic upgrades, file occupancy can occur if processes are still running due to special circumstances. In such cases, you can use Microsoft's handle.exe tool to check if there are any processes running in a specified directory. "handle.exe" is a command-line tool provided by Microsoft that displays which processes have opened specific files. In C#, you can invoke handle.exe using the `System.Diagnostics.Process` class. If a process is detected, it will return a list of processes running in that directory.
10
10
11
11
```c#
12
12
usingSystem;
@@ -18,7 +18,7 @@ class Program
18
18
{
19
19
Processprocess=newProcess();
20
20
process.StartInfo.FileName="handle.exe";
21
-
process.StartInfo.Arguments="filename";
21
+
process.StartInfo.Arguments="filename";// Replace 'filename' with the actual file or directory
When using GeneralUpdate for automatic updates, you may encounter permission issues if the update directory is on the C drive, especially when replacing files or applying patches. With the introduction of Windows 11, permission management for certain directories on the C drive has become more stringent compared to previous Windows operating systems.
12
12
13
-
那么稍微不注意将会触碰到权限管理的边界,接下来我们看看操作哪些目录会导致出现权限问题:
13
+
It's important to be aware of which directories might trigger permission issues:
|Program Folder | C:\Program Files and C:\Program Files (x86) |
21
21
22
-
推荐使用目录,避免权限问题:
22
+
Recommended directories to avoid permission issues:
23
23
24
-
|名称| 目录|
25
-
| ------------ | ------- |
26
-
|用户数据目录 | AppData |
27
-
|系统临时目录 | Temp |
24
+
|Name| Directory|
25
+
| --------------------------|--------- |
26
+
|User Data Directory | AppData|
27
+
|System Temporary Directory | Temp|
28
28
29
+
### Lowering UAC
29
30
31
+
The following method is not recommended for use in production environments as it may cause issues for users. If you encounter UAC (User Account Control) prompts or permission/access denied issues during updates, you might consider lowering the UAC control level. This can be done by modifying the registry as follows:
Modify the above registry settings before the update (effective after restarting the computer), and be sure to restore them after the update is complete.
Copy file name to clipboardExpand all lines: website/docs/guide/System infomation.md
+23-22Lines changed: 23 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,35 +2,36 @@
2
2
sidebar_position: 6
3
3
---
4
4
5
-
### System infomation 系统信息
5
+
### System Information
6
6
7
-
#### (1)Windows平台
7
+
#### (1) Windows Platform
8
8
9
-
当更新失败时,并不清楚是因为操作系统的原因还是其他原因导致的启动失败。这个时候可以使用PsInfo导出当前操作系统的信息,供开发人员进行问题排查。*PsInfo*是一个命令行工具,它可用于收集有关本地或远程 Windows NT/2000 系统的关键信息,包括安装类型、内核版本、已注册的组织和所有者、处理器数量及其类型、物理内存量、系统的安装日期以及到期日期(如果为试用版)。
9
+
When an update fails, it might not be clear whether the failure is due to the operating system or other reasons. In such cases, you can use PsInfo to export information about the current operating system, which can help developers troubleshoot the issue. *PsInfo*is a command-line tool that can be used to collect critical information about local or remote Windows NT/2000 systems, including installation type, kernel version, registered organization and owner, number and type of processors, amount of physical memory, system installation date, and expiration date (if it is a trial version).
By default, *PsInfo*displays information about the local system. Specify a remote computer name to retrieve information from a remote system. Since *PsInfo*relies on remote registry access to gather its data, the remote system must have the remote registry service running, and the account running *PsInfo*must have access to the HKLM\System section of the remote registry.
14
14
15
-
为了帮助自动更新 Service Pack,*PsInfo*会返回系统的 Service Pack 数的值(例如 0 表示无 Service Pack,1 表示 SP 1 等)。
15
+
To assist in automating Service Pack updates, *PsInfo*returns the system's Service Pack number (e.g., 0 for no Service Pack, 1 for SP 1, etc.).
16
16
17
-
**用法: psinfo [[\\computer[,computer[,..] | @file[-u user
|**\\computer**|Execute the command on the specified remote computer(s). If the computer name is omitted, the command runs on the local system. If a wildcard (\\*) is specified, the command runs on all computers in the current domain.|
22
+
|**@file**|Run the command on each computer listed in the specified text file.|
23
+
|**-u**|Specify an optional username for logging onto the remote computer.|
24
+
|**-p**|Specify an optional password for the username. If omitted, you will be prompted to enter a hidden password.|
25
+
|**-h**|Show a list of installed hotfixes.|
26
+
|**-s**|Show a list of installed applications.|
27
+
|**-d**|Show disk volume information.|
28
+
|**-c**|Print in CSV format.|
29
+
|**-t**|The default delimiter for the -c option is a comma, but you can specify a different character.|
30
+
|**filter**|PsInfo will only display data for fields that match the filter. For example, "psinfo service" will only list the service pack field.|
32
31
33
-
#### 示例输出
32
+
#### Example Output
33
+
34
+
When you run PsInfo, it will output information about the system in a structured format. This information can be used to diagnose and address any issues that may arise during the update process.
0 commit comments