#pragma once #include "CClasses.h" #include #include "DeviceProduct.h" #include "OnlineProduct.h" #include "CCmd.h" #include "Logini.h" using namespace std; enum class InstallNetFrameworkType { None, V40,//安装v4.0 V46,//安装v4.6 V40_46//安装v4.0和v4.6 }; enum class InstallVCPlusPlusType { None, V14_3,//安装2015-2019 }; class ComparVersion { public: InstallNetFrameworkType NetFramework = InstallNetFrameworkType::None; InstallVCPlusPlusType VcPlusPlus = InstallVCPlusPlusType::None; public: //获取在线产品信息、设备已安装产品的信息 VertionResultType GetProductInfo(wstring productName, wstring productUrl); //对比版本:架上版本号、设备已安装版本号 VertionResultType GetCompareVersion(wstring deviceVersion, wstring onlineVersion); public: //检查设备Net框架 static int GetCompareNETFramework(wstring minVersion, wstring maxVersion); static int GetCompareVCPlusPlus(wstring Version); };