简体   繁体   English

VS安装程序应用程序文件夹的DefaultLocation

[英]VS Setup Project DefaultLocation for Application Folder

I am creating a Setup Project in VS 2008. The application needs to be supported on Windows 7 running UAC. 我正在VS 2008中创建安装项目。运行UAC的Windows 7需要支持该应用程序。 I have to install the app in the User's area of the machine. 我必须将应用程序安装在计算机的用户区域。 What do I set the DefaultLocation property of the Application Folder to in the Setup Project? 如何在安装项目中将“应用程序文件夹”的DefaultLocation属性设置为? It can't be set to ProgramFilesFolder. 不能将其设置为ProgramFilesFolder。

Its very simple you can set the default location to where ever you want, but the problem is that it can't be mandatory because using the browse button the end user can navigate to a location as he likes but surely you can set the default location. 您可以将默认位置设置为任意位置,这非常简单,但问题是它不是强制性的,因为最终用户可以使用浏览按钮随意浏览至所需位置,但是您可以设置默认位置。

  1. Right Click the Setup (Project) in the solution explorer. 右键单击解决方案资源管理器中的“设置”(项目)。
  2. Click View > Click FileSystem. 单击查看>单击文件系统。
  3. New Interface get opened. 新界面打开。
  4. Right Click Application Folder Click PropertyWindow. 右键单击“应用程序文件夹”,然后单击“ PropertyWindow”。
  5. Set DefaultLocation Property to ie c:\\Check. 将DefaultLocation属性设置为c:\\ Check。
  6. Build the Solution. 构建解决方案。
  7. You are Done. 你做完了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM