📘 Add PowerShell Version Info

This commit is contained in:
bitcookies 2026-03-03 10:15:03 +08:00
parent 92b1aff89e
commit 724caa3389
2 changed files with 20 additions and 4 deletions

View file

@ -62,7 +62,7 @@ There are two types of WinRAR licenses, `rarreg.key` and `rarkey.rar`, which dif
If you are unable to drag, you can try to put the `rarreg.key` in the following directory.
```shell
C:\Users\yourname\AppData\Roaming\WinRAR\rarreg.key
C:\Users\<yourname>\AppData\Roaming\WinRAR\rarreg.key
```
You can also compress `rarreg.key` into `rarkey.rar` and double-click it to run it, and the license import will take place automatically.
@ -276,7 +276,15 @@ Save the generated information in **ASCII encoding** as `rarreg.key`.
In addition to using ASCII encoding, you can use ANSI and UTF8NoBOM to support more characters, but you will need to install [PowerShell 7.4 or later](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4).
For example, generating a license with UTF8NoBOM encoding.
| `-Encoding` | PowerShell 5.x | PowerShell 7.4+ |
| :------------: | :------------: | :-------------: |
| ASCII | ✅ | ✅ |
| ANSI | | ✅ |
| UTF8NoBOM | | ✅ |
In PowerShell 5.x, you cannot output licenses in ANSI or UTF8NoBOM format. You must generate the content via commands, manually copy it, and save it as ANSI or UTF8NoBOM.
In PowerShell 7.4+, you can generate licenses encoded in ANSI or UTF8NoBOM:
> `utf8:` is to ensure constant character representation in WinRAR across languages.

View file

@ -62,7 +62,7 @@ WinRAR license 有 `rarreg.key` 和 `rarkey.rar` 两种类型,它们仅在导
如果你无法执行拖动操作,你可以尝试把 `rarreg.key` 放置于以下目录中:
```shell
C:\Users\yourname\AppData\Roaming\WinRAR\rarreg.key
C:\Users\<yourname>\AppData\Roaming\WinRAR\rarreg.key
```
你也可以将 `rarreg.key` 压缩成 `rarkey.rar` 然后双击运行,授权导入将会自动进行。
@ -271,7 +271,15 @@ dd4ab952600ba16a99236d910bfa995d5f60651ec451f462511507
除了使用 ASCII 编码,你还可以使用 ANSI 和 UTF8NoBOM 以支持更多字符,但你需要[安装 PowerShell 7.4 及其后续版本](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4)。
例如,用 UTF8NoBOM 编码生成 license
| `-Encoding` 值 | PowerShell 5.x | PowerShell 7.4+ |
| :------------: | :------------: | :-------------: |
| ASCII | ✅ | ✅ |
| ANSI | | ✅ |
| UTF8NoBOM | | ✅ |
在 PowerShell 5.x 中,你不能输出 ANSI 或 UTF8NoBOM 格式的 license你只能通过命令生成并手动复制内容并保存为 ANSI 或 UTF8NoBOM 格式。
在 PowerShell 7.4+ 中,你可以用 ANSI 或 UTF8NoBOM 编码生成 license
> `utf8:` 是为了保证在不同语言的 WinRAR 中做到不变的字符表示。