• InstallShield高级应用检测系统ServerPack版本,SP2前不支持则 abort


    //检测系统ServerPack版本,SP2前不支持则 abort
    function CheckServerPackVersion()
    BOOL bCheckSP;
    begin
    if(SYSINFO.WINNT.nServicePack <2) then
    bCheckSP =FALSE;
    if ((SYSINFO.nOSMajor == 5) && (SYSINFO.nOSMinor == 1)) then //Windows XP : 5.1
    bCheckSP = TRUE;
    elseif ((SYSINFO.nOSMajor == 5) && (SYSINFO.nOSMinor == 2)) then // Windows 2003
    bCheckSP = TRUE;
    endif;
    if(bCheckSP = TRUE) then
    switch (SELECTED_LANGUAGE)
    case ISLANG_CHINESE_PRC:
    MessageBox("安装程序需要 ServicePack 2 (含) 以上版本支持。", WARNING);
    case ISLANG_ENGLISH:
    MessageBox("For This setup the ServicePack version must be more than 2(Include) .", WARNING);
    default:
    MessageBox("For This setup the ServicePack version must be more than 2(Include).", WARNING);
    endswitch;
    abort;
    endif;
    endif;

    end;

    作者:chhuic

    出处:http://chhuic.cnblogs.com
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

  • 相关阅读:
    新autoJS写淘宝福年种福果
    autoJS写淘宝福年种福果
    简七学理财知识
    python一键搭ftp服务器
    域名伪装
    [SWPU2019]Web1
    [网鼎杯 2020 朱雀组]phpweb
    Doc
    Docker简单使用教程
    MySQL数据库基本操作
  • 原文地址:https://www.cnblogs.com/chhuic/p/2495645.html
Copyright © 2020-2023  润新知