* @brief Load registry keys from .reg file if existing .reg file */
| 212 | * @brief Load registry keys from .reg file if existing .reg file |
| 213 | */ |
| 214 | bool LoadRegistryFromFile(const String& sRegFilePath) |
| 215 | { |
| 216 | if (paths::DoesPathExist(sRegFilePath) != paths::IS_EXISTING_FILE) |
| 217 | return false; |
| 218 | return launchProgram(_T("reg.exe import \"") + sRegFilePath + _T("\""), SW_HIDE); |
| 219 | } |
| 220 | |
| 221 | /** |
| 222 | * @brief Save registry keys to .reg file if existing .reg file |