如何在VS 2013中为类库创建安装程序?

时间:2016-04-03 09:00:22

标签: c# visual-studio installer class-library

我希望得到一些帮助,以弄清楚如何在visual studio 2013中创建安装程序。 我的类库项目生成一个名为DataTest的DLL。该解决方案还有一个名为config.xml的xml文件。目前,当我构建解决方案时,DataTest DLL最终位于bin文件夹中(而config.xml只是一个静态文件)。我希望安装程序执行的操作是将DataTest DLL复制/安装到C:\ MyData \ Test,并且xml文件应该以C:\ MyData \ Config结尾。

我发现这个http://geekswithblogs.net/TarunArora/archive/2014/04/24/visual-studio-2013-installer-projects-ndash-hello-world-installer.aspx似乎是一个很好的起点,但我对VS的不同配置没有多少经验,所以我真的不知道如何做我做的事情想做。

谢谢

1 个答案:

答案 0 :(得分:0)

I'm assuming you want an MSI file to do the install because you posted that link, so you're using the Visual Studio Installer projects extension.

This might also help, old but still applies:

https://www.simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/

Configurations in Visual Studio don't really have much to do with this. The Bin, Release, Debug folders in your build are nothing to do with where you want to deploy the file on the target system. For example, if you have a Dll that you want to install in the Common Files Folder then you select that folder in the File System view of the setup project and just drag and drop the file in there. The same principle applies to the Program Files folder, which is the usual place for applications.