I have successful built the project and run it on my own computer, but when I ran it on other computer, it ask me to install .Net framework, is it possible to build a executable which could run without installing .Net Framework?
The .NET dependency comes from the fact that some of the OVAL Interpreter probes use .NET APIs (e.g. the CmdletProbe.cpp). The following posts talk more about this and may help you with building the OVAL Interpreter without the .NET dependency.
Please let me know if these don't help you build the OVAL Interpreter without a .NET dependency.
Thank you, djhaynes. I successful run ovaldi 5.10 on Win2k8 without .NetFramework. But Here comes a new problem, when I run a oval def, ovaldi reply "Message: Unknown element 'family_test" , Below is the xml def:
<family_test id="oval:org.mitre.oval:tst:99" version="1" comment="the installed operating system is part of the Microsoft Windows family" check_existence="at_least_one_exists" check="only one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
I can successful run a win7 oval definition with the element "family_test", is there something wrong ?
That warning message is consistent with the Interpreter not being able to locate the schema file for the associated message. In this case, could you verify that you have a copy of the independent-definitions-schema.xsd file in your xml directory? If you are not specifying one with the "-a" flag then it should be in a subdirectory near the OVALDI executable.
One other option would be if somehow the schema file exists but the schema location was not specified in the "xsi:schemaLocation" attribute of the root oval_definitions element. Could you make sure that attribute exists and contains "http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd " among the locations to the other referenced files?