rcedit
v2.0.0
Windows上のExeファイルのリソースを編集するコマンドラインツール。
事前に構築されたバイナリは、GitHubリリースにあります。
構築するには、Cmake 3.15+およびVisual Studio 2015以上が必要です。
cmake -E make_directory buildcd buildcmake ..cmake --build . ヘルプを示す:
$ rcedit -hバージョン文字列を設定します:
$ rcedit " path-to-exe-or-dll " --set-version-string " Comments " " This is an exe "このオプションを使用して、こちらのMSDNドキュメントで説明されているように、サポートされているプロパティを変更します
ファイルバージョンの設定:
$ rcedit " path-to-exe-or-dll " --set-file-version " 10.7 "製品バージョンの設定:
$ rcedit " path-to-exe-or-dll " --set-product-version " 10.7 "設定アイコン:
$ rcedit " path-to-exe-or-dll " --set-icon " path-to-ico "リソース文字列を設定します:
$ rcedit " path-to-exe-or-dll " --set-resource-string id_number " new string value "マニフェストで要求された実行レベル( asInvoker | highestAvailable | requireAdministrator )を設定します。
$ rcedit " path-to-exe-or-dll " --set-requested-execution-level " requireAdministrator "アプリケーションマニフェストを設定します:
$ rcedit " path-to-exe-or-dll " --application-manifest ./path/to/manifest/fileまた、1つのコマンドで複数のものを変更できます。
$ rcedit " path-to-exe-or-dll " --set-icon " path-to-ico " --set-file-version " 10.7 "バージョン文字列を取得:
$ rcedit " path-to-exe-or-dll " --get-version-string " property " --set-version-stringと同じプロパティを使用します。 "FileVersion"を使用して、 --set-file-versionと"ProductVersion"の結果を取得して、 --get-product-versionの結果を取得します。
リソース文字列を取得:
$ rcedit " path-to-exe-or-dll " --get-resource-string id_number