[Last Call] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2011-04-25
Medium Priority
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

Accepted Solution

malikirfan28 earned 500 total points
ID: 35461560
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.

Author Comment

ID: 35468200
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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
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…
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

834 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