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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dirk HaestProject managerCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Dirk HaestProject managerCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.