打包目录(将文件和目录合并到exe或msi中) [英] Pack a directory (merge files and directories into exe or msi)

查看:1098
本文介绍了打包目录(将文件和目录合并到exe或msi中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有很多教程显示如何合并多个文件(不包括文件夹)。如果我可以合并一个目录和它的文件,这将是很好的,这样当用户点击exe或msi文件的Windows将这些文件提取到我选择的目的地(就像我在哪里复制我想要合并的目录)。

There are a lot of tutorials that show on how to merge multiple files (not including folders). It will be nice if I could merge a directory and it's files so that when the user clicks on the exe or msi file windows extracts those files to the destination that I select (just as if I where to copy the directory that I want to merge).

我想创建类似于Visual Studio中创建安装项目的内容。

I want to create something similar as when creating a Setup Project in Visual studio.

如果我在哪里构建这个项目,并执行创建的文件(setup1.exe)我将会安装一个安装向导,并且我对我的项目进行了破坏的目录将被uziped。

If I where to build this project, and execute the file that was created (setup1.exe) I will lauch an install wizard and the same directory that I draged to my project will be "uziped".

推荐答案

可以使用WIX工具集实现你想要的WIX允许您创建几乎任何您想要的任何内容的MSI。将文件打包到一个显示(或变量)文件夹位置是一个相当简单的操作在WIX。

You can use the WIX toolset to achieve what you want. WIX allows you to create MSI which do pretty much anything you would like. Unpacking files to an explict (or variable) folder location is a fairly simple operation in WIX.

这就像一个视觉工作室设置项目,除了你有更多的控制。
http://sourceforge.net/projects/wix/

It's like a visual studio setup project except you've got much more control. http://sourceforge.net/projects/wix/

这篇关于打包目录(将文件和目录合并到exe或msi中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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