ComparVersion.h 917 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma once
  2. #include "CClasses.h"
  3. #include<string>
  4. #include "DeviceProduct.h"
  5. #include "OnlineProduct.h"
  6. #include "CCmd.h"
  7. #include "Logini.h"
  8. using namespace std;
  9. enum class InstallNetFrameworkType
  10. {
  11. None,
  12. V40,//安装v4.0
  13. V46,//安装v4.6
  14. V40_46//安装v4.0和v4.6
  15. };
  16. enum class InstallVCPlusPlusType
  17. {
  18. None,
  19. V14_3,//安装2015-2019
  20. };
  21. class ComparVersion
  22. {
  23. public:
  24. InstallNetFrameworkType NetFramework = InstallNetFrameworkType::None;
  25. InstallVCPlusPlusType VcPlusPlus = InstallVCPlusPlusType::None;
  26. public:
  27. //获取在线产品信息、设备已安装产品的信息
  28. VertionResultType GetProductInfo(wstring productName, wstring productUrl);
  29. //对比版本:架上版本号、设备已安装版本号
  30. VertionResultType GetCompareVersion(wstring deviceVersion, wstring onlineVersion);
  31. public:
  32. //检查设备Net框架
  33. static int GetCompareNETFramework(wstring minVersion, wstring maxVersion);
  34. static int GetCompareVCPlusPlus(wstring Version);
  35. };