InstallShield的专家们,怎么检测MDAC已安装的版本并决定我的当前版本是否安装?

mastererp 2005-03-14 08:29:03
我用的是InstallShiled X
WinXP打了SP2补丁后,MDAC版本会变成2.81,而不是2.80,导致MDAC2.80安装出错
所以需要先检测已安装版本
我已经为这事忙了很多天了,是在搞不定了
InstallShield X自己说他们不负责检测,需要开发人员自己检测,郁闷。。。。
...全文
214 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
mastererp 2005-03-16
  • 打赏
  • 举报
回复
怎么各个论坛都找不到精通InstallShield的人?
InstallShield自己的论坛还不让我发言,郁闷啊!!
mastererp 2005-03-16
  • 打赏
  • 举报
回复
这是针对Windows Installer Project的吗?
我的是InstallShield Script Project,好像没有这些设置

我看看先
Thanks any way.
njlxp 2005-03-16
  • 打赏
  • 举报
回复
先下载并安装.net的 Visual Studio .NET Framework Bootstrapper Plug-in然后看下面的文字。我翻译的在家里的机器上。

To install MDAC with a Setup project

Make sure that the Visual Studio .NET Framework Bootstrapper Plug-in is installed.
Select the Setup project in Solution Explorer. From the View menu, point to Editor and choose Launch Conditions.
Select the Requirements on Target Machine node. From the Action menu, choose Add Registry Launch Condition.
Select the Search for RegistryEntry1 node. In the Properties window, select the RegKey property and type Software\Microsoft\DataAccess.
Select the Root property and select vsdrrHKLM.
Select the Value property and type FullInstallVer.
Select the Property property and type MDACSEARCH.
In the Launch Conditions Editor, select the Condition1 node. In the Properties window, select the Condition property and select MDACSEARCH>="2.6".
Select the Setup project in Solution Explorer. On the Project menu, choose Properties.
Set the Bootstrapper property to Windows Installer Bootstrapper.
Both the .NET Framework redistributable and MDAC will be packaged with the Setup.exe for the Setup project when it is built.
mastererp 2005-03-15
  • 打赏
  • 举报
回复
谢谢
好人做到底,InstallShield里怎么按条件来控制一个Object是否安装呢?
通过注册表判断出来以后还得控制啊
Nyeco 2005-03-14
  • 打赏
  • 举报
回复
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MDACVer.Version\CurVer
Nyeco 2005-03-14
  • 打赏
  • 举报
回复

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{54AF9350-1923-11D3-9CA4-00C04F72C514}\ProgID
的默认值为 MDACVer.Version.2.81

这应该可以吧

16,553

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧