Skip to content

Commit

Permalink
update for vs2022
Browse files Browse the repository at this point in the history
update for vs2022
  • Loading branch information
bitcookies committed Nov 9, 2021
1 parent 543b5dd commit 68c3f8d
Show file tree
Hide file tree
Showing 17 changed files with 48 additions and 19 deletions.
11 changes: 11 additions & 0 deletions .vs/winrar-keygen/project-colors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Version": 1,
"ProjectMap": {
"2443aa55-9534-4451-9bcc-48ac0982a0cc": {
"ProjectGuid": "2443aa55-9534-4451-9bcc-48ac0982a0cc",
"DisplayName": "winrar-keygen",
"ColorIndex": 0
}
},
"NextColorIndex": 1
}
Binary file added .vs/winrar-keygen/v17/.suo
Binary file not shown.
Binary file added .vs/winrar-keygen/v17/Current/Browse.VC.db
Binary file not shown.
Binary file not shown.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
<h2 align="center">WinRAR Keygen</h2>
<p align="center">Principle of WinRAR key generation</p>
</p>

<p align="center">
<img src="https://img.shields.io/github/v/release/bitcookies/winrar-keygen?label=version" />
<a href="https://github.com/bitcookies/winrar-keygen/issues">
<img alt="Issues" src="https://img.shields.io/github/issues/bitcookies/winrar-keygen?color=F48D73" />
</a>
<img src="https://img.shields.io/badge/Visual%20Studio-2022-5D4298" />
<a href="https://github.com/bitcookies/winrar-keygen/blob/master/LICENSE">
<img alt="License" src="https://img.shields.io/github/license/bitcookies/winrar-keygen.svg" />
</a>
</p>


<p align="center">
<a href="README.zh-CN.md">简体中文</a> | <a href="README.md">English</a>
</p>
Expand All @@ -35,7 +39,7 @@ If you don't want to compile it yourself, you can also go to the [release page](

### 3.1 Prerequisites

1. Please make sure that you have __Visual Studio 2019__ or the higher. Because this is a VS2019 project.
1. Please make sure that you have **Visual Studio 2022**. Because this is a VS2022 project. If you are still using Visual Studio 2019, you can find projects for VS2019 in the [vs2019](https://github.com/bitcookies/winrar-keygen/tree/vs2019) branch.

2. Please make sure you have installed `vcpkg` and the following libraries:

Expand Down Expand Up @@ -132,9 +136,13 @@ If you encounter some problems, you can report on the [Issues](https://github.co

### 6.2 Security

Some Anti-Virus Software may falsely report. If you do not trust this binary executable file, your only option is to compile the code yourself.
[Issues #1](https://github.com/bitcookies/winrar-keygen/issues/1) Some Anti-Virus Software may falsely report. If you do not trust this binary executable file, your only option is to compile the code yourself.

### 6.3 Download

[Issues #4](https://github.com/bitcookies/winrar-keygen/issues/4) IDM and other download tools may have problems, please use a browser (e.g. chrome, edge) to download.

### 6.3 Thanks
### 6.4 Thanks

Thank you very much to some enthusiastic developers for helping answer some questions in [Issues](https://github.com/bitcookies/winrar-keygen/issues).

Expand Down
24 changes: 17 additions & 7 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@
<a href="https://github.com/bitcookies/winrar-keygen/issues">
<img alt="Issues" src="https://img.shields.io/github/issues/bitcookies/winrar-keygen?color=F48D73" />
</a>
<img src="https://img.shields.io/badge/Visual%20Studio-2022-5D4298" />
<a href="https://github.com/bitcookies/winrar-keygen/blob/master/LICENSE">
<img alt="License" src="https://img.shields.io/github/license/bitcookies/winrar-keygen.svg" />
</a>
</p>


<p align="center">
<a href="README.zh-CN.md">简体中文</a> | <a href="README.md">English</a>
</p>
Expand All @@ -34,11 +39,12 @@ WinRAR不是免费软件。如果你想使用它,你应当向 [__RARLAB__](htt

### 3.1 前提条件

1. 请确保你有 __Visual Studio 2019__ 或其更高版本。因为这是一个VS2019项目
1. 请确保你有 **Visual Studio 2022**,因为这是一个 VS2022 项目。如果你仍在使用 Visual Studio 2019,可以在 [vs2019](https://github.com/bitcookies/winrar-keygen/tree/vs2019) 分支中找到适合 VS2019 的项目

2. 请确保你安装了 `vcpkg` 以及下面几个库:

* `mpir:x86-windows-static`
- `mpir:x86-windows-static`

* `mpir:x64-windows-static`

你可以通过下的命令来安装:
Expand All @@ -57,11 +63,11 @@ WinRAR不是免费软件。如果你想使用它,你应当向 [__RARLAB__](htt
### 3.2 编译

1. 在 __Visual Studio__ 中打开这个项目。

2. 选择 `Release` 配置。

3. 选择 __生成 > 生成解决方案__。

你将在 `bin/` 目录下看到生成的文件。

## 4. 如何使用?

直接在终端执行以下代码,配置两个参数即可生成 `rarreg.key`。
Expand Down Expand Up @@ -113,7 +119,7 @@ winrar-keygen.exe <text1> <text2>

### 5.2 终端编码的问题

有可能是终端编码的问题,你可以使用 `chcp` 命令暂时切换。
[Issues #5](https://github.com/bitcookies/winrar-keygen/issues/5) 有可能是终端编码的问题,你可以使用 `chcp` 命令暂时切换。

具体可参考 Microsoft 文档:[chcp | Microsoft Docs](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/chcp)

Expand All @@ -125,9 +131,13 @@ winrar-keygen.exe <text1> <text2>

### 6.2 安全

一些杀毒软件可能会误报,如果您不信任此二进制可执行文件,您唯一的选择就是自己编译代码。
[Issues #1](https://github.com/bitcookies/winrar-keygen/issues/1) 一些杀毒软件可能会误报,如果您不信任此二进制可执行文件,您唯一的选择就是自己编译代码。

### 6.3 下载

[Issues #4](https://github.com/bitcookies/winrar-keygen/issues/4) IDM等下载工具可能会有问题,请使用浏览器(例如 chrome、edge)下载。

### 6.3 感谢
### 6.4 感谢

非常感谢一些热心的开发者,在 [Issues](https://github.com/bitcookies/winrar-keygen/issues) 帮助解答一些问题。

Expand Down
Binary file modified bin/Win32-Release/winrar-keygen.exe
Binary file not shown.
Binary file removed bin/Win32-Release/winrar-keygen.iobj
Binary file not shown.
Binary file removed bin/Win32-Release/winrar-keygen.ipdb
Binary file not shown.
Binary file modified bin/Win32-Release/winrar-keygen.pdb
Binary file not shown.
Binary file modified bin/x64-Release/winrar-keygen.exe
Binary file not shown.
Binary file removed bin/x64-Release/winrar-keygen.iobj
Binary file not shown.
Binary file removed bin/x64-Release/winrar-keygen.ipdb
Binary file not shown.
Binary file modified bin/x64-Release/winrar-keygen.pdb
Binary file not shown.
Binary file modified winrar-keygen.aps
Binary file not shown.
8 changes: 4 additions & 4 deletions winrar-keygen.rc
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ IDI_ICON1 ICON "icon.ico"
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,2,0
PRODUCTVERSION 1,0,2,0
FILEVERSION 1,0,3,0
PRODUCTVERSION 1,0,3,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -79,12 +79,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "WinRAR Keygen"
VALUE "FileDescription", "WinRAR Key Generation Tool"
VALUE "FileVersion", "1.0.2.0"
VALUE "FileVersion", "1.0.3.0"
VALUE "InternalName", "winrar-keygen.exe"
VALUE "LegalCopyright", "Copyright (C) 2021"
VALUE "OriginalFilename", "winrar-keygen.exe"
VALUE "ProductName", "WinRAR Keygen"
VALUE "ProductVersion", "1.0.2.0"
VALUE "ProductVersion", "1.0.3.0"
END
END
BLOCK "VarFileInfo"
Expand Down
8 changes: 4 additions & 4 deletions winrar-keygen.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,29 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<SpectreMitigation>false</SpectreMitigation>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<SpectreMitigation>false</SpectreMitigation>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
<SpectreMitigation>false</SpectreMitigation>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<SpectreMitigation>false</SpectreMitigation>
Expand Down

0 comments on commit 68c3f8d

Please sign in to comment.