rcedit
v2.0.0
命令行工具以編輯Windows上EXE文件的資源。
可以在GitHub釋放中找到預建的二進製文件。
要構建您需要CMAKE 3.15+和Visual Studio 2015或更高版本。
cmake -E make_directory build 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您可以在一個命令中更改多個事項:
$ 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