阅读:1618回复:0
怎样让installshield作的安装程序不在win98第一版上安装?
怎样让installshield作的安装程序不在win98第一版上安装,推出安装?
我在onbegin下加了如下代码:(但是不起作用,我在win98第一版的机器上试了仍然可以安装。)。请问各位大侠如下判断windows版本号对吗? function OnBegin() STRING svResult, szInfo; NUMBER nvResult; begin //shuzhi add begin:版本检查(驱动程序不能在98第二版之前的版本稳定运行) if (GetSystemInfo (OS, nvResult, svResult) == 0) then if (nvResult==IS_WINDOWS9X) then GetSystemInfo (WINMINOR, nvResult, svResult); if (nvResult < 10 ) then //win95 MessageBox ("不能在windows95上安装!", SEVERE); exit;//abort; endif; //if (nvResult >= 10 && !SYSINFO.WIN9X.bWin98) then //98第二版之前 if (nvResult >= 10 && SYSINFO.WIN9X.bSubversion_A ) then //98第一版,不能安装 MessageBox ("不能在windows98第一版上安装!", SEVERE); exit; endif; endif; endif; //shuzhi add end // TO DO: you may change default non-UI setting, for example end; |
|