[英]How do I create an installer for a class library in VS 2013?
I am hoping to get some help to figure out how to create an installer in visual studio 2013. My class library project generates a DLL called DataTest. 我希望得到一些帮助,以弄清楚如何在Visual Studio 2013中创建安装程序。我的类库项目生成一个称为DataTest的DLL。 The solution also has an xml file called config.xml.
该解决方案还具有一个名为config.xml的xml文件。 Currently when I build the solution the DataTest DLL ends up in the bin folder (and the config.xml is just a static file somewhere).
当前,当我构建解决方案时,DataTest DLL最终位于bin文件夹中(而config.xml只是某个位置的静态文件)。 What I want the installer to do is copy/install the DataTest DLL to C:\\MyData\\Test and the xml file should end up in C:\\MyData\\Config.
我想要安装程序执行的操作是将DataTest DLL复制/安装到C:\\ MyData \\ Test,而xml文件应该最终位于C:\\ MyData \\ Config。
I have found this http://geekswithblogs.net/TarunArora/archive/2014/04/24/visual-studio-2013-installer-projects-ndash-hello-world-installer.aspx which seems like a good place to start but I don't have much experience with the different configurations in VS so I don't really know how to do what I want to do. 我发现了这个http://geekswithblogs.net/TarunArora/archive/2014/04/24/visual-studio-2013-installer-projects-ndash-hello-world-installer.aspx ,这似乎是一个不错的起点,但我对VS中的不同配置没有太多的经验,所以我真的不知道该怎么做。
Thanks 谢谢
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. 我假设您希望MSI文件进行安装,因为您发布了该链接,因此您正在使用Visual Studio Installer项目扩展。
This might also help, old but still applies: 这可能也有帮助,但仍然适用:
https://www.simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/ 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. Visual Studio中的配置实际上与此没有多大关系。 The Bin, Release, Debug folders in your build are nothing to do with where you want to deploy the file on the target system.
构建中的Bin,Release,Debug文件夹与您要在目标系统上部署文件的位置无关。 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.
例如,如果要在“公用文件”文件夹中安装Dll,则可以在安装项目的“文件系统”视图中选择该文件夹,然后将文件拖放到该文件夹中。 The same principle applies to the Program Files folder, which is the usual place for applications.
相同的原则适用于Program Files文件夹,这是应用程序的常用位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.