installshield 中,在安装之前如何检测系统未有注册Shockwave Flash控件?给180分还有一帖 http://expert.csdn.net/Expert/topic/1402/1402715.xml?temp=.3606226该未结帖分数也送了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在installshield的脚本文件中判断它的注册表键. function CheckFlashPlayerVersion()LONG lResult,lResultRoot,lResultKey;STRING szName,szValue,szKey,svVersionValue;NUMBER nType, nSize,nVar; begin szName = ""; nType = REGDB_STRING; nSize = -1; szKey = "CLSID\\{D27CDB6E-AE6D-11cf-96B8-444553540000}\\InprocServer32"; lResultRoot = RegDBSetDefaultRoot(HKEY_CLASSES_ROOT); if( lResult = 0) then lResultKey = RegDBGetKeyValueEx (szKey, szName, nType, szValue, nSize); elseif( lResult < 0) then return 0; endif; if( lResultKey = 0) then lResult = VerGetFileVersion (szValue, svVersionValue); if( lResult = 0) then StrToNum(nVar,svVersionValue); return nVar; elseif( lResult < 0) then return 0; endif; endif;end; 列表控件读取.txt文件 求助:windows下如何获取切换用户操作的消息 多CPU环境下的问题讨论 SetTimer(1,500,NULL)为什么会每隔1000ms刷新一下 散分 祝贺找到了第一份工作~~~~~ 大家不要客气 人者有份!!!!!!!!! 再现VC的BUG!!! 2000分大放送之<九>!向明日到访的古巴领袖菲德尔·卡斯特罗致敬! 谁会谁拿分,关于应用程序退出问题 如何在线程里进行ADO 的线程安全的初始化呢? 怎么解决windows下管道阻塞的问题? 有420分未结帖子,只要签名都有分,给出地址,请各位签名.:)部分帖子,我自己解决了,也欢迎提建议 这样做可不可以?
LONG lResult,lResultRoot,lResultKey;
STRING szName,szValue,szKey,svVersionValue;
NUMBER nType, nSize,nVar;
begin
szName = "";
nType = REGDB_STRING;
nSize = -1;
szKey = "CLSID\\{D27CDB6E-AE6D-11cf-96B8-444553540000}\\InprocServer32";
lResultRoot = RegDBSetDefaultRoot(HKEY_CLASSES_ROOT);
if( lResult = 0) then
lResultKey = RegDBGetKeyValueEx (szKey, szName, nType, szValue,
nSize);
elseif( lResult < 0) then
return 0;
endif;
if( lResultKey = 0) then
lResult = VerGetFileVersion (szValue, svVersionValue);
if( lResult = 0) then
StrToNum(nVar,svVersionValue);
return nVar;
elseif( lResult < 0) then
return 0;
endif;
endif;
end;