制作一个.exe来创建我自己的安装 [英] Make a .exe to create my own install

查看:111
本文介绍了制作一个.exe来创建我自己的安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(很抱歉出现任何英语错误),这就是问题所在:我创建了自己的带有C#表单项目的安装界面.它允许用户选择应用程序的路径,更重要的是,可以在MySql中创建表.在我的整个项目中,我有一个名为.msi的主项目,即.exe依赖项,例如FrameWork 3.5和Foxit PDF Reader,负责对话框屏幕的表单项目以及一个用于搜索Framework的注册表键的VB脚本.如果未安装Framework 3.5,则vbs文件会提示用户有关此需求并进行安装.之后,对话框开始安装主程序和mysql,创建数据库和表.因此,我想将所有文件隐藏"在一个.exe中.当用户单击.exe时,.vbs(解压缩后打开的文件)将打开并开始安装过程.我知道winrar sfx,但是它允许用户提取并查看隐藏的文件.我注意到许多.exe安装程序不允许提取.怎么做的?那就是我想要的!
甚至在Visual Studio安装程序项目中,调试后也有.exe和.msi文件.如何合并它们?我已经尝试过iexpress,但是它也提供了提取隐藏"文件的可能性.
谢谢

(sorry for any English mistake) That''s the problem: I''ve created my own install interface whith a form C# project. It allows user choose the path of app and, more important, creates tables in MySql. In my entire project I have a .msi of my main project, dependents .exe, like FrameWork 3.5 and Foxit PDF Reader, the form project that is responsible for dialogs screens and a VB Script that searchs for a resgistry key of Framework. If Framework 3.5 is not installed vbs file prompts user about this need and install it. After that, dialog starts install main program and mysql, creating databases and tables. So, I want "hide" all my files in one .exe. When user click on .exe, .vbs(file openned after extraction) is openned and starts the install process. I know winrar sfx, but that allows user extract and see files that were hidden. I noticed that a lot of .exe install programs doesn''t permit extraction. How does it done? That''s I want!
Even in Visual Studio Setup project we have, after debug, .exe and .msi files. How can I merge them? I''ve tried iexpress, but it also gives possibilities of extracting "hidden" files.
Thanks

推荐答案

您可以在项目属性"中使用构建前事件命令行"和构建后事件命令行"->构建事件.
添加用于调用打包程序"的命令,您可能会在以下主题中找到这些命令:

http://www.liutilities.com/articles/merge-two-exe -files-using-free-software/ [> http://stackoverflow.com/questions/2268515/merge-two-exe-以编程方式将文件合并为一个 [ ^ ]
You may use "Pre-build event command line" and "Post-build event command line" in Project Properties -> Build Events.
Add commands for invoking ''packagers'' which you maybe find on this topics:

http://www.liutilities.com/articles/merge-two-exe-files-using-free-software/[^]

http://stackoverflow.com/questions/2268515/merge-two-exe-files-into-one-programmatically[^]


这篇关于制作一个.exe来创建我自己的安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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