如何从VS 2010部署安装项目安装到公共目录在Windows 7 [英] How to install to the Public directory in Windows 7 from the VS 2010 deployment Setup Project

查看:116
本文介绍了如何从VS 2010部署安装项目安装到公共目录在Windows 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些文件,我想安装(使用安装项目)到Windows 7系统,这是每个人都可以访问。这些文件不应该被隐藏。他们应该是可见的所有用户双击。我相信这样做的最好的地方是C:\用户\公用或C:\用户\公用\文件。

I have some documents I want to install (using the Setup project) onto a Windows 7 system which is accessible by everyone. These documents should not be hidden. They should be visible for all users to double click on. I believe the best place for this is C:\Users\Public or C:\Users\Public\Documents.

由于没有对无论是在安装项目中的这些文件夹的特殊文件夹,我已经发现迄今唯一的方法是创建一个自定义文件夹,并设置DefaultLocation为[%公众] [生产企业] [产品名称]等等。

Since there isn't a special folder for either of these folders in the Setup project, the only way I have found so far is to create a custom folder and set the DefaultLocation to [%public][Manufacturer][ProductName] etc.

(见 http://community.flexerasoftware.com/archive/的index.php?T-164246.html

不过,这似乎很脆;如果有人删除了环境变量公开?此外,将这项工作在Windows 7上的不同语言版本?有没有更好的方式来定义DefaultLocation到公共文件夹在Windows 7安装?

However, this seems very brittle; what if someone deletes the environment variable for public? Also, would this work on a different language version of Windows 7? Is there a better way to define the DefaultLocation to the Public folder for a Windows 7 install?

推荐答案

公用文件夹不存储在一个标准的环境变量(系统 - >高级 - >环境变量),所以我认为这是不太可能太多人这样做,但我明白,需要建立一个强大的安装程序。

The public folder isn't stored in a standard environment variable (System -> Advanced -> Environment Variables) so I think it is very unlikely too many people are doing this, but I understand the need to create a robust installer.

这<一href="http://social.answers.microsoft.com/Forums/en-US/w7files/thread/924138a5-bdb2-4ab4-870b-57b3a8b8ff44"相对=nofollow>页面对改变公共文件夹的位置说明。接受的解决方案是相当复杂的,需要命令行工作。通过Luviana的建议是要简单得多。我想测试他们,看看他们是否打破%的公众%捷径。我的猜测是,他们不会。我最好的建议是要看看自己,如果它仍然有效,那么你可以在事实计数的%的公众%可用。

This page has instructions on changing the location of the public folder. The accepted solution is quite involved and requires command line work. The suggestion by Luviana is much simpler. I would test them out and see if they break the %public% shortcut. My guess is that they will not. My best advice is to check it out for yourself and if it still works then you can count on the fact that %public% will be available.

这篇关于如何从VS 2010部署安装项目安装到公共目录在Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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