使用提升的凭据安装 Tortoise SVN

发布于 2024-07-19 16:08:43 字数 502 浏览 4 评论 0原文

我正在尝试在用户不是管理员的 Windows PC 上安装 TortoiseSVN(版本:1.6.1.16129)。

安装程序是一个 msi 文件,默认情况下,它没有“运行方式”选项。

我已经尝试过:

msiexec /a "{PATH}\TortoiseSVN-1.6.1.16129-win32-svn-1.6.1.msi"

并且

runas /user:username "msiexec /a {PATH}\TortoiseSVN-1.6.1.16129-win32-svn-1.6.1.msi"

运行上述任一结果都会导致安装程序启动,然后第一个对话框会出现神秘消息: “请指定 Tortoise SVN 1.6 的服务器映像的网络位置...”

当管理员用户运行相同的 msi 文件时,安装程​​序将按预期进行。

有没有其他人有这个问题? 您找到解决方法了吗?

I'm trying to install TortoiseSVN (Ver: 1.6.1.16129) on Windows PC's where the user is not an administrator.

The installer is an msi file and by default, there is no "Run As" option for it.

I've tried both:

msiexec /a "{PATH}\TortoiseSVN-1.6.1.16129-win32-svn-1.6.1.msi"

and

runas /user:username "msiexec /a {PATH}\TortoiseSVN-1.6.1.16129-win32-svn-1.6.1.msi"

Running either of the above results in the installer starting then the first dialog has the cryptic message:
"Please specify a network location for the server image of Tortoise SVN 1.6...."

When the same msi file is run by a user who is an administrator, the installer proceeds as expected.

Has anyone else had this problem? Did you find a fix for it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

舂唻埖巳落 2024-07-26 16:08:43

打开任务管理器并终止 TSVNCache.exe 进程。 然后再次尝试安装。

来源:
http://dandar3.blogspot.fr/2012/04/tortoisesvn-installation - 不足.html

Open task manager and kill the TSVNCache.exe process. Then try to install again.

Source:
http://dandar3.blogspot.fr/2012/04/tortoisesvn-installation-insufficient.html

嘿咻 2024-07-26 16:08:43

浏览到 windows\system32 目录 - 右键单击​​ cmd.exe 并选择“以管理员身份运行”。 您将获得一个提升的命令 shell。 现在从命令 shell 运行您的 msi。

Browse to the windows\system32 directory - right click on cmd.exe and choose "run as administrator". You get an elevated command shell. Now run your msi from the command shell.

合约呢 2024-07-26 16:08:43

可能会有所帮助。

This might help.

莳間冲淡了誓言ζ 2024-07-26 16:08:43

抱歉添加到旧帖子。 不过,我今天遇到了这个问题并找到了解决方案。 我在 CMD.exe 上使用 Runas 来获取提升的命令提示符。 然后我运行:

msiexec /i "{PATH}\TortoiseSVN-1.6.1.16129-win32-svn-1.6.1.msi"

注意:我将OP帖子中的“/a”替换为“/i”。 一旦我改变了这一点,安装过程中就不再询问网络提示了。

Sorry to add to an old post. However, I ran into this today and found a solution. I used Runas on CMD.exe to get the elevated command prompt. I then ran:

msiexec /i "{PATH}\TortoiseSVN-1.6.1.16129-win32-svn-1.6.1.msi"

Note: I replaced "/a" in the OP's post with "/i". Once I changed that, then the network prompt was no longer asked during the installation.

风情万种。 2024-07-26 16:08:43

我今天在更新 Tortois 时遇到了这个问题,根本原因是 C:\Program Files\TortoiseSVN 目录在清空了以前版本的文件后以某种方式被标记为只读。 这可能与第一次更新尝试告诉我 Windows Explore、Tortoise svn shell 和 google chrome 在继续之前需要关闭有关,我选择了稍后重新启动而不是关闭的选项。 它再次提示同样的事情,然后声称它没有该目录的权限。

所以先检查简单的东西。 即使以管理员身份运行也无法克服只读目录标志。

如果您查看 msiexec 的帮助(使用 /h),它显示 /a 是以管理员网络安装身份运行的。 所以它只是假设您指的是网络/远程位置。 我没有问题,只需将其指向本地 c: 驱动器进行安装并正常进行即可。

I ran into this problem today while updating Tortois and the root cause was that the C:\Program Files\TortoiseSVN directory had somehow become marked read-only AFTER it had been emptied of the previous version's files. This might have something to do with the first attempt at updating tried to tell me that windows explore, tortoise svn shell and google chrome needed to be closed before continuing, and I selected the option to reboot later instead of closing. It prompted the same thing again before claiming it didn't have permissions to the directory.

So check the simple stuff first. Not even running as administrator can overcome a read-only directory flag.

If you look at the help for msiexec (using /h), it shows that /a is run as administrator network install. So it's just assuming you meant a network/remote location. I had no problem just pointing it to the local c: drive for installation and proceeding as normal.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文