1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #pragma once
- #include "CClasses.h"
- #include<string>
- #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);
- };
|