又一个installshield安装的问题?

zyunlin 2001-12-08 05:23:09
我在注册表中得到了IEXPLORE.EXE全路径,我的机器上又装pb了,结果得到的路径是:
C:\Program Files\Internet Explorer;;C:\Program Files\Powersoft\Shared
我在installshield中没有找到一个函数把他们分离开来,请问大侠们平是怎样处理这种情况的?
...全文
60 2 打赏 收藏 举报
写回复
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zyunlin 2001-12-09
  • 打赏
  • 举报
回复
谢谢楼上的兄弟这种方法在pb中我也会,我现在说的是在installshield中我遇到的上述情况。有人知道么?
dotnba 2001-12-08
  • 打赏
  • 举报
回复
/*
功能:
查找IE的执行程序路径
参数:
None
返回值:
成功:IE Path
失败:""
创建人:
创建时间:
*/
string ls_key,ls_AppParth,ls_buff[]
long ll_pos
int i

environment le_environment

GetEnvironment(le_environment)

choose case le_environment.OSType
case Windows!
ls_key = "HKEY_CLASSES_ROOT\https\shell\open\command"
case WindowsNT!
ls_key = "HKEY_CLASSES_ROOT\Applications\iexplore.exe\shell\open\command"
case else
return ""
end choose

if RegistryValues(ls_key,ls_buff) = -1 then return ""
//获得键的Title(Name)
for i = 1 to upperbound(ls_buff)
if RegistryGet(ls_key,ls_buff[i],RegString!, ls_AppParth) = 1 then
ll_pos = pos(ls_AppParth,"iexplore.exe")
if ll_pos > 0 then
return Left(ls_AppParth,ll_pos + 12)
end if
end if
next
return ""
相关推荐
发帖
PowerBuilder

1028

社区成员

PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
帖子事件
创建了帖子
2001-12-08 05:23
社区公告
暂无公告