Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/electron/rcedit
Command line tool to edit resources of exe
https://github.com/electron/rcedit
c-plus-plus rcedit windows
Last synced: 5 days ago
JSON representation
Command line tool to edit resources of exe
- Host: GitHub
- URL: https://github.com/electron/rcedit
- Owner: electron
- License: mit
- Created: 2013-11-05T11:13:21.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T06:14:21.000Z (4 months ago)
- Last Synced: 2024-10-29T17:15:22.165Z (3 months ago)
- Topics: c-plus-plus, rcedit, windows
- Language: C++
- Homepage:
- Size: 167 KB
- Stars: 1,704
- Watchers: 51
- Forks: 190
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# rcedit
[![Continuous Integration](https://github.com/electron/rcedit/actions/workflows/ci.yml/badge.svg)](https://github.com/electron/rcedit/actions/workflows/ci.yml)
Command line tool to edit resources of exe file on Windows.
## Executables
Prebuilt binaries can be found in the [GitHub releases](https://github.com/electron/rcedit/releases).
## Building
To build you need CMake 3.15+ and Visual Studio 2015 or above.
1. Clone the repository
2. Create a build directory: `cmake -E make_directory build`
3. Change to the build directory: `cd build`
4. Make the CMake project: `cmake ..`
5. Build: `cmake --build .`## Docs
Show help:
```bash
$ rcedit -h
```Set version string:
```bash
$ rcedit "path-to-exe-or-dll" --set-version-string "Comments" "This is an exe"
```Use this option to change any supported properties, as described in the MSDN documentation [here](https://msdn.microsoft.com/en-us/library/windows/desktop/aa381058(v=vs.85).aspx)
Set file version:
```bash
$ rcedit "path-to-exe-or-dll" --set-file-version "10.7"
```Set product version:
```bash
$ rcedit "path-to-exe-or-dll" --set-product-version "10.7"
```Set icon:
```bash
$ rcedit "path-to-exe-or-dll" --set-icon "path-to-ico"
```Set resource string:
```bash
$ rcedit "path-to-exe-or-dll" --set-resource-string id_number "new string value"
```Set [requested execution level](https://msdn.microsoft.com/en-us/library/6ad1fshk.aspx#Anchor_9) (`asInvoker` | `highestAvailable` | `requireAdministrator`) in the manifest:
```bash
$ rcedit "path-to-exe-or-dll" --set-requested-execution-level "requireAdministrator"
```Set [application manifest](https://msdn.microsoft.com/en-us/library/windows/desktop/aa374191.aspx):
```bash
$ rcedit "path-to-exe-or-dll" --application-manifest ./path/to/manifest/file
```And you can change multiple things in one command:
```bash
$ rcedit "path-to-exe-or-dll" --set-icon "path-to-ico" --set-file-version "10.7"
```Get version string:
```bash
$ rcedit "path-to-exe-or-dll" --get-version-string "property"
```Use the same properties as `--set-version-string`. Use `"FileVersion"` to get the results of `--set-file-version` and `"ProductVersion"` to get the results of `--get-product-version`.
Get resource string:
```bash
$ rcedit "path-to-exe-or-dll" --get-resource-string id_number
```