How do I set the default install path when deploying a program using a windows installer.
相关问题
- How does the setup bootstrapper detect if prerequi
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
In a Visual Studio Setup project, you control the default install path by setting the
DefaultLocation
property of theApplication Folder
folder, within theFile System
Editor.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.