简体   繁体   English

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

[英]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.

相关问题 如何在已编码的UI VS2013中创建页面对象模型框架 - How do i create a Page Object Model framework in Coded UI VS2013 如何配置VS安装程序以将文件放入LocalApplicationData - How do I configure VS installer to put files in LocalApplicationData VS2013 Windows服务 - 如何制作安装程序? - VS2013 Windows Service - How to make installer? 如何创建可以安装依赖软件的安装程序? - How do I create an installer that can install dependency software? 如何在Winforms中创建仅具有exe且无依赖关系的安装程序? - How do I create an installer with only exe and no dependencies in Winforms? 如何为Visual Studio 2008插件创建安装程序? - How do I create an installer for Visual Studio 2008 addin? 如何在VS2013中找到当地人? - How do I find locals in VS2013? visual studio 2013:创建安装程序 - visual studio 2013 : create installer 对于我在 Visual Studio 2013 中的类库项目; 使用后期构建事件如何将创建的 dll 复制到另一个路径? - For my class Library project in visual Studio 2013 ; Using post build event how do I copy the created dll to another path? visual Studio 2013项目安装程序如何创建自定义操作 - visual studio 2013 project installer how to create custom actions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM