How to change the Installation folder in a .net setup project.

Hi Experts,

How do i change the default installation folder to point to a specific location for my console application. I am using VS2008.net.

Thanks
Sunil
bcisystemsAsked:
Who is Participating?
 
DhaestConnect With a Mentor Commented:
Check out this article, especially Adding Special Folders
Customizing Setup Project in Visual Studio.NET
http://www.exforsys.com/tutorials/vb.net-2005/customizing-setup-project-in-visual-studio.net-2005.html

How to modify the default install path in an MSI-based setup based on a registry value
http://blogs.msdn.com/astebner/archive/2005/09/20/472125.aspx
0
 
bcisystemsAuthor Commented:
Dhaest,

I just want to set the installation folder to say,

d:\mycompany\myproject\

Instead of what is now something like
c:\program files\someprj\..

I dont know where to change this value in the project.

Thanks
Sunil
0
 
DhaestCommented:
In Setup Project, there is no "Output Patch" in Property page. Files will
be copied into target folder which you defined in "DefaultLocation"
property. You have to add a new custom folder and specify it as your custom
location. Please try the following steps.

1.      Right-click on your "setup" project, select "View"|"File System".
2.      Common target folders(Application Folder, User's Desktop...) are listed
in the left panel of "File System" window.
3.      Right-click on "File System on Target Machine" in the left Panel, select
4.      After that, VS IDE will add a Custom folder named "Custom Folder
5.      When you select new added Custom Folder, there is an peopery named
6.      Change "DefaultLocation" to anywhere you want. For example:
[ProgramFilesFolder]\AppName.
7.      Add your new DLLs into this custom folder.
8.      When you install this setup project, DLLs will be copied into the

Source: http://www.eggheadcafe.com/software/aspnet/31647435/msbuild--controlling-the.aspx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.