使用提升的凭据安装 Tortoise SVN
我正在尝试在用户不是管理员的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
打开任务管理器并终止 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
浏览到 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.
这可能会有所帮助。
This might help.
抱歉添加到旧帖子。 不过,我今天遇到了这个问题并找到了解决方案。 我在 CMD.exe 上使用 Runas 来获取提升的命令提示符。 然后我运行:
注意:我将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:
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.
我今天在更新 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.