首页 新闻 会员 周边

the question of installer

0
悬赏园豆:60 [已解决问题] 解决于 2010-06-22 16:58

Is it possible to easily setup a launch condition that checks if another
product is installed on the system?

 

  Firstly ,I descript the function steps installer.

  1. We must check  lisence is installed before the installation of  application.
  2. if lisence is  setup then  application directly.
  3. if lisence isn’t  setup then lisence will install  before the application automatically.

 

i use search for Registry key and value , launch condition to check  if  the machine is install the Lisence .the result is right.

but i question is that : 

   if  installer package is checked that  lisence isn’t  setup then install the  lisence ,but after complete the installion of lisence  installer can't return to install the application???

问题补充: 关系安装包的一个问题
pumeifen的主页 pumeifen | 初学一级 | 园豆:145
提问于:2010-06-21 11:31
< >
分享
最佳答案
0

看来半天,大概理解你说的意思。你这段英文虽然不长,但错误实在也是不少。我不是英语老师,在这里我也不想做太多关于语言方面的纠正,我只想问问你几个问题,因为我从你的这段话中实在没有看明白

if lisence is  setup then  application directly.

这句话本身有好几处错误,但这个无所谓了,关键是你这个话似乎没有写完, directly 是一个副词,我想后面应该有个谓语吧,是 directly exits 吗?我只能猜,不知道猜的对不对。

最后那句话,你是不是要问安装完 lisence 后,你的安装程序无法返回继续下面的安装步骤?

另外你也没有说明你这个 installer 到底是用什么程序开发的,无法返回是怎么个无法返回法,请你补充一下

收获园豆:40
eaglet | 专家六级 |园豆:17139 | 2010-06-21 12:08
我用的是VS2008自带的打包/安装工具,, 类似.NET 中新建一个 Web Setup Poject
pumeifen | 园豆:145 (初学一级) | 2010-06-21 13:35
@pumeifen: 你是在 OnBeforeInstall 这个事件中注册lisence的吗?还是其他地方,你最好具体一些。由于不知道你具体是怎么做的,很难分析你的问题在哪里。
eaglet | 园豆:17139 (专家六级) | 2010-06-21 14:43
不在Custom Action 里做的,在Launch Conditions Editor 里 1, add Registry Search 并设置它的property,RegKey,Root,Value(功能:搜索指定的注册表,) 2, add Launch Conditions 设置它的Condtition,InstallUrl ,(根据以上的regkey,root,value 确定是否安装Lisence,如果没有安装则在指定的InstallUrl中安装lisence files)
pumeifen | 园豆:145 (初学一级) | 2010-06-21 14:55
现在的情况是,能找到指定的InstallUrl ,并且能安装,但安装完许可后不能回到正常的安装界面。
pumeifen | 园豆:145 (初学一级) | 2010-06-21 14:56
@pumeifen: 我试了一下,好像是不行,MSDN 的帮助上是这么写的 If the user selects Yes, he will be redirected to the location specified in the property; 也就是说是重定向了,应该不会再返回了。唯一的解决办法是重定向到你写的程序,你的程序在完成注册lisence后,启动另外一个程序,这个程序延时一段时间等setup 退出后重新调用setup 安装。
eaglet | 园豆:17139 (专家六级) | 2010-06-22 07:57
谢谢,,这个问题我已经解决了。。没有用那个先决条件,,直接在customerAction 那个类里做了相关工作。。不过还是很谢谢你。。
pumeifen | 园豆:145 (初学一级) | 2010-06-22 16:57
其他回答(2)
0

这是什么?

收获园豆:5
Astar | 园豆:40805 (高人七级) | 2010-06-21 11:35
这是关于安装包的问题
支持(0) 反对(0) pumeifen | 园豆:145 (初学一级) | 2010-06-21 11:37
0

楼主所描述的是在部署前先安装许可,但安装完许可后不能回到正常的安装界面。

不知楼主使用的是否是installshield。Installshield 2010是有这个问题,暂时还没找到解决办法。

在安装完Framework后不能回到正常安装界面。

http://www.cnblogs.com/downmoon/archive/2010/02/27/1674634.html

收获园豆:15
邀月 | 园豆:25475 (高人七级) | 2010-06-21 12:00
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册