Pack a directory (merge files and directories into exe or msi)

心不动则不痛 提交于 2019-12-11 06:41:48

问题


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).

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

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".

How can I do something similar withoug having to install an application?


回答1:


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.

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



来源:https://stackoverflow.com/questions/9143529/pack-a-directory-merge-files-and-directories-into-exe-or-msi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!