Visual Studio安装程序项目设置安装位置 [英] Visual Studio Setup project set install location
问题描述
我正在使用Visual Studio安装程序项目扩展程序来构建我的应用程序的安装程序包.我已经删除了Install Location Select Interface
,而是应将应用程序安装到我预设的位置.目前,应用程序安装位置是由File system
UI中Application
文件夹中的Application
设置的,并将DefaultLocation
值设置为[ProgramFilesFolder][Manufacturer]\[ProductName]
.它正在安装到ProgramFiles(X86)
文件夹.
I am using visual studio setup project extension for build setup package for my application. I have removed the Install Location Select Interface
and instead application should be installed to the location i have preset. At the moment application install location is set by Right-click
on Application
Folder in File system
UI and set the DefaultLocation
value as [ProgramFilesFolder][Manufacturer]\[ProductName]
. It is installing to ProgramFiles(X86)
folder.
我想将应用程序安装在C:\Windows\SysWOW64
文件夹中.有谁知道如何将此文件夹结构设置为默认值.
I want to install the application inside C:\Windows\SysWOW64
folder. Is there anyone who knows how to set this folder structure as a default value.
推荐答案
在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] [Manufacturer] [ProductName].您可以完全替换此属性(至少应保留[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]是内置的,并且无论如何自定义Window的设置,都可以正确地引导到目标计算机上的Program Files目录.其他两个属性是安装程序项目的属性(在解决方案资源管理器中选择安装程序项目,然后检查属性网格以找到它们).这些默认设置为您在安装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.
这篇关于Visual Studio安装程序项目设置安装位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!