简体   繁体   English

自定义C#安装程序类

[英]Custom c# installer class

I'm trying to install some folders along with my app - folders with help files. 我正在尝试与我的应用程序一起安装一些文件夹-带有帮助文件的文件夹。 How should I do that? 我应该怎么做? Right now I've added two files to a setup projects as assemblies, though I don't know how to get to those files in the Install method of my installer class, and copy them to correct folders... I even don't know if those files are being added to installer, so if someone would explain me how to install custom files along with my application - step by step, I would be grateful. 现在,我已经将两个文件作为程序集添加到安装项目中,尽管我不知道如何在安装程序类的Install方法中找到这些文件,然后将它们复制到正确的文件夹中……我什至不知道这些文件是否正在添加到安装程序中,所以如果有人会逐步解释如何与我的应用程序一起安装自定义文件,我将不胜感激。

You can add a setup project to your project and mention what all items should be copied to the destination install directory when you install it. 您可以将安装项目添加到项目中,并在安装时提及应将所有项目复制到目标安装目录中的内容。 I did the same thing and written it here for anyone wish to do it. 我做了同样的事情,并在这里写给任何想做的人。

http://www.techiesweb.net/2008/07/setting-path-while-installing-an-application-visual-studio-2005-setup-project/ http://www.techiesweb.net/2008/07/setting-path-while-installing-an-application-visual-studio-2005-setup-project/

Hope this helps 希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM