在VS 2010中构建部署项目MSI时,停止.Zip文件被损坏 [英] Stop a .Zip file from being Corrupted when I build a Deployment Project MSI in VS 2010

查看:91
本文介绍了在VS 2010中构建部署项目MSI时,停止.Zip文件被损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个MSI \安装文件,并希望将一个.ZIP包含在目标安装文件夹中。

我添加的文件已被标记为vsdpaLoose,但是当我运行生成的MSI时,文件存在,但在某个阶段已经损坏了。



我包含.ZIP文件的原因是我有一个未知的目录和文件内容结构,我最终想要自动生成msi。这似乎是确保MSI具有一致内容的最佳解决方案。我知道如何覆盖System.Configuration.Install.Installer方法来执行安装后步骤,但我只是遇到了一个损坏的zip文件的问题。



我我没有使用任何其他工具,只使用Visual Studio 2010和部署项目。我不想在这个阶段引入任何第三方解决方案。

I am building an MSI \ Setup file and want to include a .ZIP to be extracted into the target installation folder.
The file I'm adding has been marked as vsdpaLoose but when I run the produced MSI the file is there but has been corrupted in the process at some stage.

The reason I'm including a .ZIP file is that I have an unknown directory and file content structure and I eventually want to autobuild the msi. This seemed like the best solution to make sure that the MSI would have consistent contents. I know how to override the System.Configuration.Install.Installer methods to do Post Install Steps but I'm just having this issue with a corrupt zip file.

I'm not using any other tools, only Visual Studio 2010 and a deployment project. I don't want to introduce any 3rd party solutions at this stage.

推荐答案

这篇关于在VS 2010中构建部署项目MSI时,停止.Zip文件被损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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