将安装文件附加到 exe 中并在执行时解压
我想编写一个 C# 应用程序,它将在其中附加安装文件(这些文件不是先决条件),然后构建它。将附加的安装文件是不同的安装文件。我无法将所有这些提供给客户,因此我需要将它们合并为 1 并根据客户要求单独执行。
现在,当我执行此 C# 应用程序时,我希望将这些安装文件提取到某个位置(C:\Windows\Temp)。
如果提取文件后,安装文件被触发并执行,我会很高兴。
I want to write a C# application, which will append setup files (these files are not pre-requisites) in it and then build it. The setup files which will be appended are different setup files. I cant give all these to client and so i need to merge them into 1 and execute individually as per client requirement.
Now when I execute this C# application, I want those setup files to be extracted to some location(C:\Windows\Temp).
I will be happy if after extracting the files, setup file gets triggered and executes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是有关链接设置的线程:
在我的设置项目中包含另一个 MSI 文件
您想为自己的应用程序安装先决条件吗?如果是这样,那么此链接应该有所帮助:http://msdn.microsoft.com/en-us/library/h4k032e1.aspx
这是关键段落:
“每个先决条件是引导程序包 引导程序包是一组目录和文件,其中包含描述如何安装先决条件的清单文件 如果先决条件对话框中未列出您的应用程序先决条件,您可以创建自定义引导程序包并添加。然后您可以在先决条件对话框中选择先决条件。有关详细信息,请参阅创建引导程序包。”。Here is a thread about chaining setups:
Include another MSI file in my setup project
Do you want to install prerequisites for your own application?If so, then this link should help: http://msdn.microsoft.com/en-us/library/h4k032e1.aspx
This is the key paragraph:
"Each prerequisite is a bootstrapper package. A bootstrapper package is a group of directories and files that contain manifest files that describe how the prerequisite should be installed. If your application prerequisites are not listed in the Prerequisite Dialog Box, you can create custom bootstrapper packages and add them to Visual Studio. Then you can select the prerequisites in the Prerequisites Dialog Box. For more information, see Creating Bootstrapper Packages."