Command line tool to edit resources of exe file on Windows
- Make sure you have gyp is configured in your system. If not, clone gyp from https://chromium.googlesource.com/external/gyp
- Clone the repository
- Run
gyp rcedit.gyp --depth .
- Build rcedit.sln with Visual Studio
Set version string:
$ rcedit "path-to-exe-or-dll" --set-version-string "Comments" "This is an exe"
Set file version:
$ rcedit "path-to-exe-or-dll" --set-file-version "10.7"
Set product version:
$ rcedit "path-to-exe-or-dll" --set-product-version "10.7"
Set icon:
$ rcedit "path-to-exe-or-dll" --set-icon "path-to-ico"
Set resource string:
$ rcedit "path-to-exe-or-dll" --set-resource-string id_number "new string value"
Set requested execution level (asInvoker
| highestAvailable
| requireAdministrator
) in the manifest:
$ rcedit "path-to-exe-or-dll" --set-requested-execution-level "requireAdministrator"
Set application manifest:
$ rcedit "path-to-exe-or-dll" --application-manifest ./path/to/manifest/file
And you can change multiple things in one command:
$ rcedit "path-to-exe-or-dll" --set-icon "path-to-ico" --set-file-version "10.7"