How to Change File Location in a Setup Program in Visual Studio 2003 .NET

Posted on 2011-04-25
Last Modified: 2012-05-11
I am maintain an application that is a written in Visual Studio 2003 .NET.  The application (called "Solution" in Microsoft terminology) is actually a combination of 10 different projects that is corresponding to one EXE and 9 different DLLs.  It has a Setup program to install this application.  And we have a project that creates that Setup program.  The problem is that that Setup program has never been refreshed in the last 6 years.  We have been relying on Auto-Update to keep everyone's copy of the application to up-to-date.  Relying on Auto-Update has its problem.  Therefore, I am trying to get this Setup program to be up-to-date.  But I am not familiar with how to change the settings in the project that creates that Setup program.  Please help.

What I have a problem with has to do with the locations of the various DLL files have been changed.  The project file for the Setup program is still pointing to the "Release" folders.  That was fine back then.  But the current file locations are in "Debug" folders.  Therefore, the project is picking up the wrong files.  I would like to correct the file locations.  But I cannot find a way to change.  Do I have to remove all the file references from the project and then add them back?  How's about the existing "dependencies"?  What should I do about them?

Please let me know.  Thanks.

Jay Chan
Question by:homerslmpson
    LVL 4

    Accepted Solution

    Yes If you want to change the location for Release to Debug then you will need to remove and add all these dll references. However normally as we give to user Release version so we add references in setup project from Release folder. But in your case if it is required then you can remove and then add from Debug folder.

    Hopefully existing dependencies will remain same and if you added any new dependency then when you will add correct location and rebuild the setup project it will automatically be added.
    LVL 1

    Author Comment

    Thanks for letting me know that I need to start over the Deployment project.  This fixes the problem.

    One thing that I need to add is that I needed to write down all the files added to the deployment project (and all the dependencies just in case) before I delete all the file referenced in the deployment project.  This helps me to add them back because some of the files are not obvious.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now