1.怎么实现将两个安装程序包,(一个安装程序包是另一个安装程序包安装的条件)打包成一个程序包。
2.当安装完成后自动启动所安装的应用程序

解决方案 »

  1.   

    在安装部署里通过安装类调用程序执行,或在installshield里执行脚本
    参考
      

  2.   

    打开现有的winform应用程序
    单击“文件”----新建----项目----打开“新建项目”对话框
    选择“安装部署项目”
    在对话框的右边模板中选择合并“模块项目”
      

  3.   

    打开现有的winform应用程序 
    单击“文件”----新建----项目----打开“新建项目”对话框 
    选择“安装部署项目” 
    在对话框的右边模板中选择合并“模块项目”  没错!
      支持~
      

  4.   


    你使用它的SETUP工程,就一定是两个。一个是程序集,一个是引导程序,小的那个就是引导程序,就是一个叫SETUP。EXE的东西。所以,要么你放弃VS,要么放弃你现在的想法。至于第二个……觉得VS的SETUP工程做不到吧。
      

  5.   

    第一种方案
    你可以使用 ClickOnce 技术。(当然也可以使用 安装部署项目) 可以在“系统必备组件“中选择想先要安装的程序(如果是微软的程序,会简单很多)。在“系统必备组件“列表中,会列出微软自带的组件。如果是第三方的组件,那么需要手动添加。
    采用 ClickOnce 或者  安装部署项目 方式部署,选择的必备组件可以从指定的路径下载,也可以从指定的URL 下载。不能被打包到 一个 exe 程序。
      

  6.   

    第二种方案
    可以使用 “iexpress.exe”打包。(Win2000, WINNT)
    详细使用请参见  http://www.clariusconsulting.net/blogs/pga/comments/42831.aspx部分内容如下:After we compile our msbuild proj file a directory structure is created similar to:Vs Shell 
    vs_shell_isolated.enu.exe
    Setup.exe 
    MyVSShellApplication.msi 
    Unfortunately, the MSBuild task doesn't provide the option to have the configuration resource use prerequisite installers found in the target directory, so you must manually update the appropriate resource file to remove the hard-coded path that looks for prerequisites in a sub-directory of the same name. Open the Setup.exe program in Visual Studio's resource editor 
    Double-click the resource named, SETUPCFG in the 41 folder 
    Search for the "Vs Shell\" string and delete the two occurrences that appear 
    Save the resource file and the Setup.exe executable will be updated automatically 
    Run iexpress 
    Create a new package by following the IExpress wizard's steps and make sure to include the following files: 
    The MyVSShellApplication.msi file 
    The Setup.exe bootstrapper file 
    The vs_shell_isolated.enu.exe file
      

  7.   

    对于你的第三个问题,如果使用 ClickOnce 技术, 直接就可以把启动程序放到开始菜单的所有程序的启动项里面。(已经经过检验)
      

  8.   

    用ClickOnce吧,在程序必备组件里边添加上你要的就OK了,比较简单
      

  9.   

    利用VS的合并项目模块实现
    合并模块项目用于对将要在多个应用程序之间共享的文件或组件进行打包。它们创建包含所有文件、资源、注册表项和组件的安装逻辑关系的合并模块 (.msm) 文件。所产生的 .msm 文件以后可合并到其他部署项目中,从而确保组件在跨多个应用程序时的安装一致性。
    安装完成后自动启动安装的程序,利用安装类实现把启动程序放到开始菜单的所有程序的启动项里面--VS打包功能里很容易实现的
      

  10.   

    wise,可以看看的使用说明,它可以完成你说的需求。