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
Copy file name to clipboardExpand all lines: README.md
+34-4Lines changed: 34 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,11 +32,24 @@ The [.NET Framework 4.7.2](https://dotnet.microsoft.com/en-us/download/dotnet-fr
32
32
33
33
It is already included in Windows 10 v1803 (April 2018 Update) or later, and *all* versions of Windows 11.
34
34
35
-
#Program settings
35
+
## Configuration
36
36
37
-
The initial program settings can be adjusted in the **`CertViewer.exe.config`** configuration file.
37
+
The program settings can be adjusted in the **`CertViewer.exe.config`** configuration file:
38
38
39
-
All settings are specified in the **`/configuration/appSettings`** section:
39
+
```xml
40
+
<configuration>
41
+
…
42
+
<appSettings>
43
+
<addkey="SettingName1"value="SettingValue1" />
44
+
<addkey="SettingName2"value="SettingValue2" />
45
+
…
46
+
</appSettings>
47
+
</configuration>
48
+
```
49
+
50
+
### Settings
51
+
52
+
The following program settings are currently supported:
40
53
41
54
***`DigestAlgorithm`**
42
55
The digest algorithm to be used for "fingerprint" computation. Default value: `SHA256`.
@@ -57,7 +70,24 @@ All settings are specified in the **`/configuration/appSettings`** section:
57
70
Keep the CertViewer window on top of all other windows. Default value: `True`.
58
71
59
72
***`EnableUpdateCheck`**
60
-
Automatically check for new program versions at startup. Default value: `True`.
73
+
Automatically check for new program versions at application startup. Default value: `True`.
74
+
75
+
## Logging
76
+
77
+
Optional [tracing](https://en.wikipedia.org/wiki/Tracing_(software)) can be enabled in the **`CertViewer.exe.config`** configuration file:
78
+
79
+
```xml
80
+
<configuration>
81
+
…
82
+
<system.diagnostics>
83
+
<switches>
84
+
<addname="EnableTraceLog"value="True" />
85
+
</switches>
86
+
</system.diagnostics>
87
+
</configuration>
88
+
```
89
+
90
+
You can use a program like Sysinternals [**`DebugView`**](https://learn.microsoft.com/en-us/sysinternals/downloads/debugview) to display the tracing messages generated by CertViewer.
conststringmessage="A new program version is available!\n\nInstalled version: {0}\nLatest available version: {1}\n\nIt is recommended that you upgrade to the new version. Do you want to download the new version now?";
conststringmessage="A new program version is available!\n\nInstalled version: {0}\nLatest available version: {1}\n\nIt is recommended that you upgrade to the new version. Do you want to download the new version now?";
2175
+
logger.WriteLine($"New program version is available: {versionLocal.Item1} -> {versionRemote}");
0 commit comments