### Basic CMake Project Setup Source: https://github.com/electron/rcedit/blob/main/CMakeLists.txt Sets the minimum CMake version, defines the MSVC runtime library, and configures compiler optimization flags. ```cmake cmake_minimum_required(VERSION 3.15) set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded") # /Ox, full optimization # /Os, favour small code add_compile_options(/Ox /Os) project(rcedit) add_executable(rcedit src/main.cc src/rescle.cc src/rcedit.rc) target_link_libraries(rcedit version.lib) ``` -------------------------------- ### Get version string from EXE/DLL Source: https://github.com/electron/rcedit/blob/main/README.md Retrieves a specific version string property from an executable or DLL file. Use 'FileVersion' for file version and 'ProductVersion' for product version. ```bash $ rcedit "path-to-exe-or-dll" --get-version-string "property" ``` -------------------------------- ### Get resource string from EXE/DLL Source: https://github.com/electron/rcedit/blob/main/README.md Retrieves a resource string from an executable or DLL file using its ID. ```bash $ rcedit "path-to-exe-or-dll" --get-resource-string id_number ``` -------------------------------- ### Set product version in EXE/DLL Source: https://github.com/electron/rcedit/blob/main/README.md Sets the product version for an executable or DLL file. ```bash $ rcedit "path-to-exe-or-dll" --set-product-version "10.7" ``` -------------------------------- ### Set application manifest file Source: https://github.com/electron/rcedit/blob/main/README.md Replaces the application's manifest with a specified manifest file. ```bash $ rcedit "path-to-exe-or-dll" --application-manifest ./path/to/manifest/file ``` -------------------------------- ### Show rcedit help Source: https://github.com/electron/rcedit/blob/main/README.md Displays the help message for the rcedit command-line tool. ```bash $ rcedit -h ``` -------------------------------- ### Set icon in EXE/DLL Source: https://github.com/electron/rcedit/blob/main/README.md Sets the icon for an executable or DLL file. ```bash $ rcedit "path-to-exe-or-dll" --set-icon "path-to-ico" ``` -------------------------------- ### Modify multiple resources in one command Source: https://github.com/electron/rcedit/blob/main/README.md Allows setting multiple resource properties, such as icon and file version, in a single command execution. ```bash $ rcedit "path-to-exe-or-dll" --set-icon "path-to-ico" --set-file-version "10.7" ``` -------------------------------- ### Set file version in EXE/DLL Source: https://github.com/electron/rcedit/blob/main/README.md Sets the file version for an executable or DLL file. ```bash $ rcedit "path-to-exe-or-dll" --set-file-version "10.7" ``` -------------------------------- ### Set version string in EXE/DLL Source: https://github.com/electron/rcedit/blob/main/README.md Sets a custom version string for a specified property in an executable or DLL file. Refer to MSDN documentation for supported properties. ```bash $ rcedit "path-to-exe-or-dll" --set-version-string "Comments" "This is an exe" ``` -------------------------------- ### Set resource string in EXE/DLL Source: https://github.com/electron/rcedit/blob/main/README.md Sets a new value for a specified resource string identified by its ID in an executable or DLL file. ```bash $ rcedit "path-to-exe-or-dll" --set-resource-string id_number "new string value" ``` -------------------------------- ### Set requested execution level in manifest Source: https://github.com/electron/rcedit/blob/main/README.md Sets the requested execution level (e.g., requireAdministrator) in the application's manifest file. ```bash $ rcedit "path-to-exe-or-dll" --set-requested-execution-level "requireAdministrator" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.