积极答复者
vs2010 制作web安装包的问题

问题
-
当我继承了, System.Configuration.Install.Installer基类后,重写了OnBeforeInstall方法,方法中执行了其他程序的安装,如下所示
protected override void OnBeforeInstall(IDictionary savedState)
{
base.OnBeforeInstall(savedState);
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = Path.Combine(this.Context.Parameters["targetdir"].ToString(), "Ajax 2.0.msi");
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
process.Start();
process.WaitForExit();}
安装过程中,AjAx的安装界面可以出来,但提示有一个安装程序正在运行。导致安装失败,比如说我以后还有其他的组件。有没有什么办法可以让相关程序一个接着一个安装。谢谢。工具为vs2010.
wangcheng- 已编辑 wangcheng 2011年12月21日 9:17
答案
-
Hi wangcheng,
欢迎来到MSDN论坛!
OnBeforeInstall方法是在Install 方法之前执行,但是并不是在Installation之前.
请您参考下面的链接:
Deploying .NET Compact Framework 2.0 Applications with .cab and .msi Files
http://msdn.microsoft.com/en-us/library/aa446504.aspxhttp://msdn.microsoft.com/en-us/library/system.configuration.install.installercollection.aspx
同时,下面的链接提供了一些有用的工具供您参考:
http://installsite.org/pages/en/msi/authoring.htm
祝,顺利!
This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
Yoyo Jiang[MSFT]
MSDN Community Support | Feedback to us
- 已建议为答案 Dummy yoyoModerator 2012年1月4日 3:23
- 已标记为答案 Dummy yoyoModerator 2012年1月9日 3:57
-
谢谢您的反馈!
请您看看这个链接:
演练:使用合并模块安装共享组件
http://msdn.microsoft.com/zh-cn/library/aw2dz878(v=VS.80).aspx这个链接提供了关于项目部署的所有信息:
http://msdn.microsoft.com/zh-cn/library/ms228283(v=VS.90).aspx如果您有任何问题,请联系我们.
祝,顺利!
Yoyo Jiang[MSFT]
MSDN Community Support | Feedback to us
- 已建议为答案 Dummy yoyoModerator 2012年1月4日 3:23
- 已标记为答案 Dummy yoyoModerator 2012年1月9日 3:58
全部回复
-
当我继承了, System.Configuration.Install.Installer基类后,重写了OnBeforeInstall方法,方法中执行了其他程序的安装,如下所示 protected override void OnBeforeInstall(IDictionary savedState) { base.OnBeforeInstall(savedState); System.Diagnostics.Process process = new System.Diagnostics.Process(); process.StartInfo.FileName = Path.Combine(this.Context.Parameters["targetdir"].ToString(), "Ajax 2.0.msi"); process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; process.Start(); process.WaitForExit(); } 安装过程中,AjAx的安装界面可以出来,但提示有一个安装程序正在运行。导致安装失败,比如说我以后还有其他的组件。有没有什么办法可以让相关程序一个接着一个安装。谢谢。工具为vs2010.
wangcheng- 已合并 Lie YouModerator 2011年12月23日 5:22 Merge them to keep into the same topic for good discussion
-
Hi wangcheng,
欢迎来到MSDN论坛!
OnBeforeInstall方法是在Install 方法之前执行,但是并不是在Installation之前.
请您参考下面的链接:
Deploying .NET Compact Framework 2.0 Applications with .cab and .msi Files
http://msdn.microsoft.com/en-us/library/aa446504.aspxhttp://msdn.microsoft.com/en-us/library/system.configuration.install.installercollection.aspx
同时,下面的链接提供了一些有用的工具供您参考:
http://installsite.org/pages/en/msi/authoring.htm
祝,顺利!
This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
Yoyo Jiang[MSFT]
MSDN Community Support | Feedback to us
- 已建议为答案 Dummy yoyoModerator 2012年1月4日 3:23
- 已标记为答案 Dummy yoyoModerator 2012年1月9日 3:57
-
谢谢您的反馈!
请您看看这个链接:
演练:使用合并模块安装共享组件
http://msdn.microsoft.com/zh-cn/library/aw2dz878(v=VS.80).aspx这个链接提供了关于项目部署的所有信息:
http://msdn.microsoft.com/zh-cn/library/ms228283(v=VS.90).aspx如果您有任何问题,请联系我们.
祝,顺利!
Yoyo Jiang[MSFT]
MSDN Community Support | Feedback to us
- 已建议为答案 Dummy yoyoModerator 2012年1月4日 3:23
- 已标记为答案 Dummy yoyoModerator 2012年1月9日 3:58