设置项目修改
我已经使用 C# 数据库制作了一个应用程序,并成功制作了一个安装项目,输出安装该应用程序所需的安装文件,但是当我首先将其安装在其他计算机上时,我必须更新安装程序,然后更新框架 2 sp2,然后更新 SQL Server,当我告诉我的客户他必须做同样的事情,他只是......所以我想要一种将这些东西嵌入到安装程序向导中的方法,以便一次性安装所有东西而无需提示每件事。例如,当我们安装 Visual Studio 时,当我们选择要安装的内容时,所有东西都会在未经许可的情况下安装。那么有什么办法吗?
I have made a application using c# database and sucessfully made a setup projects that outputs setup files needed to install that application but when i install it on other machine first I have to update installer then framework 2 sp2 and then SQL server and when I tell my client that he would have to do the same he just ........... so I want a way to embed these things in that installer wizard so that in a one go every thing gets installed without prompting for each thing . for example when we install visual studio every thing gets installed without asking permission as we select what to install.so is there a way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您需要安装的每个部分都有安装向导,您可能需要查看 Inno安装,因为您可以将这些安装程序嵌入到一个新安装程序中,该安装程序依次以正确的顺序执行数据库/.NET Framework/应用程序安装程序,以便在计算机上正确配置解决方案的所有部分。
由于安装应用程序通常有一种通过命令行参数配置选项并静默运行的方法,因此您可以在新向导页面中收集所需的所有参数,并只需在向导的 [Run] 部分中添加一行即可调用任何所需的安装程序。脚本。
使用 Inno,您甚至可以嵌入 pascal 脚本以在向导运行时运行代码,例如检查目标计算机以便运行或不运行某些安装程序。您还可以按需下载所需的额外文件。
当您使用默认选项编译 Inno 安装项目时,您将获得一个可执行文件,其中包含安装项目所需的所有内容,从而使部署变得非常容易。
此选项可能可用于您现在用来生成安装程序的工具。
If you have a setup wizard for each of the parts you need to install, you may want to take a look at Inno Setup, as you can embed those installers in a new one which in turns executes Database/.NET Framework/application setups in correct order to properly configure all the pieces of the solution on a machine.
As setup applications usually have a way to configure options by command line parameters and run silently, you can collect all parameters you need in the new wizard page and call any of the needed installers just by adding a line in the [Run] section of the script.
With Inno you can even embed a pascal script to run code at wizard run-time, for example to inspect destination machine in order to run or not run some installers. You are able to download required extra-files on demand also.
When you compile a Inno setup project with default options, you get a single executable containing all what you need to install your project, making deployment very easy.
This options may be available for the tool you're using now to produce your installer.