且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何设置默认安装使用Windows安装程序路径?

更新时间:2023-01-14 22:23:32

在一个Visual Studio安装项目,您可以控制​​默认设置的应用程序文件夹文件夹 DefaultLocation 属性,则文件系统编辑器。

In a Visual Studio Setup project, you control the default install path by setting the DefaultLocation property of the Application Folder folder, within the File System Editor.

这,反过来,因为你已经找到,默认为 [ProgramFilesFolder ] [生产企业] [产品名称] 。您可以完全取代这个属性(你应该保持 [ProgramFilesFolder] ,最起码虽然),也可以修改这些属性。

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] 是内置的,正确导致Program Files目录在目标机器上,无论怎样自定义窗口的设置是。另外两个属性是安装项目(请在Solution Explorer中安装项目,并检查Properties面板找到他们)的属性。这些默认为您安装Visual Studio,并设置项目的名称时提供的公司名称。

[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.