How do I create an installer that can install dependency software?

半城伤御伤魂 提交于 2020-01-07 04:11:08

问题


Is it possible to create an installer where the user must install 'x' software before continuing with the installer? For example, if the user does not have the required software to use my own software, the installer will guide them through the set up and download the required software and then proceed to install my software as the final step?

I have never created an installer so I have no idea if this is possible.


回答1:


Is it possible to create an installer where the user must install 'x' software before continuing with the installer?

Best approach to handle this requirement is to create a Bootstrapper package and add required software as a prerequisite for the main application installer. First you have to install the bootstrapper manifest generater tool from the link i have provided below. Tool will autogenerate necessary manifest files. You have to copy these files to the following folder(Visual Studio2010) C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages.

Once thats done go to your Application deployment project > Properties > Prerequisite There you will see your prerequisite software as one of the prerequisite option. Just select that and create the MSI. Now when you run the Setup.exe of your application it will first check if the prerequisite software package is installed in the target machine if so it will directly install your application otherwise it will first install the prerequisite component and then install your application.

MSDN: The bootstrapper first detects whether any of the prerequisites are already installed. If prerequisites are not installed, the installation begins for the prerequisites. Otherwise, if all the prerequisites are detected, the bootstrapper just starts the application installer.

  • Creating Bootstrapper Packages
  • Bootstrapper Manifest Generator



回答2:


As AccessDenied said, using a bootstrapper is the best option. Right now the best and most powerful free bootstrapper from the industry is available in Wix. It integrates with VS so you can have the setup project directly within your solution, or as a part of your automated build.



来源:https://stackoverflow.com/questions/20020621/how-do-i-create-an-installer-that-can-install-dependency-software

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!