如何在VS 2013中为类库创建安装程序?(How do I create an installer for a class library in VS 2013?)

系统教程 行业动态 更新时间:2024-06-14 17:01:34
如何在VS 2013中为类库创建安装程序?(How do I create an installer for a class library in VS 2013?)

我希望得到一些帮助,以弄清楚如何在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中的不同配置没有太多经验,所以我真的不知道如何做我想做的事情。

谢谢

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. The solution also has an xml file called config.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). 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.

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.

Thanks

最满意答案

我假设你想要一个MSI文件来安装,因为你发布了这个链接,所以你正在使用Visual Studio Installer项目扩展。

这也可能有所帮助,旧但仍然适用:

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

Visual Studio中的配置与此无关。 构建中的Bin,Release,Debug文件夹与您希望在目标系统上部署文件的位置无关。 例如,如果您要在Common Files文件夹中安装Dll,则在安装项目的File System视图中选择该文件夹,然后将文件拖放到那里。 同样的原则适用于Program Files文件夹,这是应用程序的常用位置。

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.

更多推荐

本文发布于:2023-04-20 18:43:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/8a1493f500c6e69d99d4631eccd9a4f7.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:安装程序   中为   类库   如何在   library

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!