How do I set the default install path when deploying a program using a windows installer.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In a Visual Studio Setup project, you control the default install path by setting the
DefaultLocationproperty of theApplication Folderfolder, within theFile SystemEditor.This, in turn, as you’ve found, defaults to
[ProgramFilesFolder][Manufacturer][ProductName]. You can either replace this property entirely (you should keep[ProgramFilesFolder], at the very least though), or you can modify these properties.[ProgramFilesFolder]is built in, and correctly leads to the Program Files directory on the target machine, no matter how customized the setup of Window is. The other two properties are properties of the setup project (select the Setup project in Solution Explorer, and examine the properties grid to find them). These default to the company name you supplied when installing Visual Studio, and the name of the Setup project.