git 如何在没有管理员权限的情况下安装 TortoiseGit?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17289734/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 08:40:36  来源:igfitidea点击:

How to install TortoiseGit without admin rights?

gittortoisegit

提问by Cherry

I work on virtual machine with restricted rights. I caninstall any program that do not require admin rights during the installation process. But installing TortoiseGit requires the rights because it integrates with explorer. Is it possible to install TortoiseGit without admin rights? May be without explorer integration.

我在权限受限的虚拟机上工作。我可以在安装过程中安装任何不需要管理员权限的程序。但是安装 TortoiseGit 需要权限,因为它与资源管理器集成。是否可以在没有管理员权限的情况下安装 TortoiseGit?可能没有资源管理器集成。

My system is Windows 7 x64, TortoiseGit version is 1.8.3.0

我的系统是 Windows 7 x64,TortoiseGit 版本是 1.8.3.0

采纳答案by VonC

Not yet: bug 726is still opened.
This installation with reduced features has been done for mercurial (portable TortoiseHg), but not for TortoiseGit yet.

还没有:bug 726仍然打开。
已经为 mercurial(便携式 TortoiseHg)完成了这个功能减少的安装,但还没有为 TortoiseGit 完成。

The only workaround, mentioned in this commentis to install it once (with elevated privileges), zip the installation directory, and use that archive on other machine.
Obviously the all menu integration in the Windows Explorer wouldn't be present.

此评论中提到的唯一解决方法是安装一次(使用提升的权限),压缩安装目录,然后在其他机器上使用该存档。
显然,Windows 资源管理器中的所有菜单集成将不存在。

That requires a Microsoft Visual C++ Redistributable version though(also mentioned here):

不过,这需要Microsoft Visual C++ Redistributable 版本此处提到):

If you run a application and got the error message

如果您运行应用程序并收到错误消息

The program can't start because MSVCR110.dll is missing from your computer.

then the Microsoft Visual C++ Redistributable is missing on the current computer.

This error appears when you wish to run a software which require the Microsoft Visual C++ Redistributable 2012.
The redistributable can easily be downloaded on the Microsoft website as x86 or x64 edition.

Depending on the software you wish to install you need to install either the 32 bit or the 64 bit version.
If you do not know which version you need to install, start to install the 32 bit version and if you still got the error install then the 64 bit version.
On a 32 bit OS you can install only the 32 bit redistributable.

You need to install the correct Microsoft Visual C++ Redistributable. If the software you wish to run require the 2012 DLLs it will not start with the 2010 ones.

You can install both versions on the same computer at the same time (if this is a 64bit OS).

那么当前计算机上缺少 Microsoft Visual C++ Redistributable

当您希望运行需要 Microsoft Visual C++ Redistributable 2012
的软件时,会出现此错误。可在 Microsoft 网站上轻松下载 x86 或 x64 版本的可再发行组件。

根据您要安装的软件,您需要安装 32 位或 64 位版本。
如果您不知道需要安装哪个版本,请开始安装 32 位版本,如果仍然出现错误,则安装 64 位版本。
在 32 位操作系统上,您只能安装 32 位可再发行组件。

您需要安装正确的 Microsoft Visual C++ Redistributable。如果您希望运行的软件需要 2012 DLL,它不会从 2010 的 DLL 开始。

您可以在同一台计算机上同时安装这两个版本(如果这是 64 位操作系统)。



Mark Chadds in the comment:

Mark Ch在评论中补充道:

Once done, you can run it as:

完成后,您可以将其运行为:

c:\[full path]\TortoiseGitProc.exe /command:log 

from your workspace folder using a command prompt or a shortcut.
This brings up the log window, from which it is possible to get to virtually every other function.

使用命令提示符或快捷方式从您的工作区文件夹。
这会打开日志窗口,从中可以访问几乎所有其他功能。

回答by 1615903

It is not possible. See Issue 726on TortoiseGit homepage.

这不可能。请参阅TortoiseGit 主页上的问题 726