| 221 | } |
| 222 | |
| 223 | wstring programFilesFolder() |
| 224 | { |
| 225 | TCHAR programFilesPath[MAX_PATH]; |
| 226 | BOOL result = ::SHGetSpecialFolderPath(0, programFilesPath, CSIDL_PROGRAM_FILES, FALSE); |
| 227 | if (!result) { |
| 228 | spdlog::error(L"programFilesFolder - SHGetSpecialFolderPath failed, using default"); |
| 229 | return wstring(L"C:\\Program Files"); |
| 230 | } |
| 231 | |
| 232 | return wstring(programFilesPath); |
| 233 | } |
| 234 | |
| 235 | bool isInstallerPathInProgramFilesX86(const std::wstring &installerPath) |
| 236 | { |
no outgoing calls
no test coverage detected