请在为Visual Studio 2008中的可执行文件创建安装项目时需要帮助. [英] Please I need help with creating a Setup project for a set off executables in Visual Studio 2008.

查看:69
本文介绍了请在为Visual Studio 2008中的可执行文件创建安装项目时需要帮助.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组要根据用户选择安装的可执行文件.我的意思是,用户应该能够决定是否要安装所有可执行文件,还是要像在Windows Office的安装过程中那样安装某些可执行文件,Windows Office包括MS Word,MS Excel,MS Access等.

我可以创建一个安装项目,以安装所有可执行文件并将它们发送到指定的安装文件夹,但是在这种情况下,这不是我想要的.

请我该怎么做.

我知道在一个设置项目中,可以自定义注册表设置,文件系统设置,文件类型设置,用户界面设置,自定义操作设置和午餐条件设置.

请在哪里以及如何执行此操作?

I have a set of executables that I want to to be installed based on users choices. What I mean is that users should be able to decide if they want to install all the executables or some just as it is done in the installation of Windows Office which consist of MS Word, MS Excel, MS Access etc.

I can create a set project that installs all executables and sends them to the specified installation folder, but this is not what I want in this case.

please how do I do this.

I know that in a set up project one can customize Registry set up, File System Setup, File Type Setup,User Interface Set up,Custom Action set Up, and Lunch Condition Setup.

Please where and how do I do this?

推荐答案

您必须为要提供的每个选项创建自定义操作".编写DLL以进行自定义操作.根据用户选择,从dll调用不同的函数作为自定义操作.

其次,为此,您必须具有一个向用户提供选项的对话框.您可以从Microsoft模板对话框的现有模板中选择任何模板(假设您使用VS来构建安装项目.)

在此对话框的下一步"上,您可以安装子安装(通过根据用户选择调用自定义操作).
You''ve to create the ''Custom Actions'' for each option you wanna provide. Write the DLL for custom action. Call different function from the dll as a custom action depending on the user choice.

Secondly, for that you have to have a dialog providing options to the user. You can choose any template from the existing ones from Microsoft Template Dialogs (assuming that you are using VS for building setup project.)

On ''Next'' of this dialog, you can install your sub installations (by calling custom actions depending on user choice).


这篇关于请在为Visual Studio 2008中的可执行文件创建安装项目时需要帮助.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆