如何在安装过程中安装符号链接(VS2010) [英] How to install a symbolic link during installation (VS2010)

查看:111
本文介绍了如何在安装过程中安装符号链接(VS2010)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的ac#工具需要在目标机器的根驱动器上有一些符号链接。



用我的工具包含这些符号链接的最佳方法是什么安装?



我正在第一次运行工具时安装这些符号链接(运行一次并忘记);但是,这要求用户在第一次运行期间拥有管理员权限,我想避免这种情况。



任何想法?

I have a c# tool that requires a few symbolic links on the root drive of the target machine.

What's the best way to include these symlinks with my tool installation?

I am currently installing these symlinks during the first run of the tool (run once and forget); however, this requires the user to have admin rights during that first run and I want to avoid this.

Any ideas?

推荐答案

请在我对该问题的评论中查看我的问题。简而言之:没有办法绕过许可系统。 (试想一下:有可能创建一些忽略权限限制的软件,它等同于根本没有权限系统;那么谁需要权限系统?)你所能做的只是请求权限在安装开始时从一开始就提升。因为这是最常用的选项(通常,安装时需要这样的高度,如果没有,可能不需要安装),所有非废话工具集都包括它。



-SA
Please see my question in my comment to the question. In brief: there is no a way to circumvent the permission system. (Just think about it: it it was possible to create some software which ignores permission limitations, it would be equivalent to not having the permission system at all; who would need the permission system then?) All you can do is the request the privilege elevation from the very beginning, at the start of installation. As this is the most used option (usually, such elevation is needed for installation, and, where it is not, maybe the installation itself is not needed), all non-nonsense toolsets include it.

—SA


这篇关于如何在安装过程中安装符号链接(VS2010)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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