Visual Studio Setup project set install location

有些话、适合烂在心里 提交于 2020-01-06 18:41:32

问题


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.

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.


回答1:


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.

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.



来源:https://stackoverflow.com/questions/36910565/visual-studio-setup-project-set-install-location

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!