* @brief Check for the presence of Windows Script * * .sct plugins require this optional component */
| 85 | * .sct plugins require this optional component |
| 86 | */ |
| 87 | bool IsWindowsScriptThere() |
| 88 | { |
| 89 | CRegKeyEx keyFile; |
| 90 | if (!keyFile.QueryRegMachine(_T("SOFTWARE\\Classes\\scriptletfile\\AutoRegister"))) |
| 91 | return false; |
| 92 | |
| 93 | String filename = keyFile.ReadString(_T(""), _T("")); |
| 94 | keyFile.Close(); |
| 95 | if (filename.empty()) |
| 96 | return false; |
| 97 | |
| 98 | return (paths::DoesPathExist(filename) == paths::IS_EXISTING_FILE); |
| 99 | } |
| 100 | |
| 101 | //////////////////////////////////////////////////////////////////////////////// |
| 102 | // scriptlet/activeX support for function names |
no test coverage detected