什么设置只能复制文件
我需要在 vs 2010 中创建一个设置,将文件复制到特定文件夹。我应该使用哪种安装项目类型来完成此任务?
我正在考虑创建一个控制台应用程序来查找文件夹并将文件复制到其中。我的方向正确吗,或者有更好的方法吗?
I need to create a setup in vs 2010 which would copy files to specific folders. Which setup project type should I use to accomplish that?
I am thinking about creating a console application to find the folders and copy the files into them. Am I going in the right direction, or is there a better way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用安装项目生成 MSI 包:
http://msdn.microsoft.com/en-us/ Library/ms235317(VS.90).aspx
此线程也可能有帮助:
http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/717cfce0-3061-400f-9ea3-069f73f3a473
You can use a Setup project to generate an MSI package:
http://msdn.microsoft.com/en-us/library/ms235317(VS.90).aspx
This thread may also help:
http://social.msdn.microsoft.com/Forums/en/winformssetup/thread/717cfce0-3061-400f-9ea3-069f73f3a473
您还可以只提供一个简单的 Powershell 脚本来复制所需的文件。一种 xcopy 部署。如果您不需要 GUI 来进行部署过程本身。
You could also just provide a simple Powershell script to copy the files needed. A kind of xcopy deployment. If you don't need a GUI for the deployment process itself.