MCPcopy Create free account
hub / github.com/WinMerge/winmerge / IsWindowsScriptThere

Function IsWindowsScriptThere

Src/Plugins.cpp:87–99  ·  view source on GitHub ↗

* @brief Check for the presence of Windows Script * * .sct plugins require this optional component */

Source from the content-addressed store, hash-verified

85 * .sct plugins require this optional component
86 */
87bool 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

Callers 2

DoFileMethod · 0.85
Plugins.cppFile · 0.85

Calls 5

DoesPathExistFunction · 0.85
QueryRegMachineMethod · 0.45
ReadStringMethod · 0.45
CloseMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected