开发者

How Can I Create Folders in the Installation Process?

I haven't deployed the application yet. I'm new to this, how can i create folders under C:\Programs Files during installation? Sho开发者_Go百科uld i put the snippet of creating folders in program.cs?

The application is Winform in C#


In Visual Studio, use the MSI Installer Wizard template to add an Installer to your solution.

Using this template you can set up the appropriate folders (also registry keys, start menu shortcuts etc.) to create when you deploy your project.

In Visual Studio 2008 this template is under Other Project Types->Setup and Deployment->Setup Wizard.


Use deployment (setup) project. it will create this folder for you


Add a Setup project to your Solution And then add Primary output and all the files needed. From the Property windows of the setup project you can choose default location where to save your projects which I usually do in my projects. Refer this for more info http://msdn.microsoft.com/en-us/library/ms235317%28VS.90%29.aspx


I strongly recommend WiX over the visual studio deployment project. It has a bit of a learning curve, but it's worth learning it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜