如何设置默认安装使用Windows安装程序路径? [英] How do I set the default install path with a windows installer?

查看:400
本文介绍了如何设置默认安装使用Windows安装程序路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何设置部署使用Windows安装程序时默认安装路径。

How do I set the default install path when deploying a program using a windows installer.

推荐答案

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

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.

这篇关于如何设置默认安装使用Windows安装程序路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆