Bitvise SH客户端安装错误. CreateDirectory()失败:Windows错误5:访问被拒绝 [英] Bitvise SH Client Installation error. CreateDirectory() failed: Windows error 5: Access is denied

查看:168
本文介绍了Bitvise SH客户端安装错误. CreateDirectory()失败:Windows错误5:访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装位VISE SSH客户端,但它没有安装并抛出异常.

I'm trying to install bit vise ssh client but its not installing and throwing an exception as this.

捕获到异常:

 Failed to create directory "C:\Program Files(x86)\Common Files\Bitvise"
 CreateDirectory() failed: windows error 5: Access is denied.

我的系统是64位的,我知道bitvise有一个同时支持64位和32位的版本.

My system is 64 bit, I know bitvise has one version which supports both 64 and 32bit.

我还尝试了以管理员身份运行",但仍然是一个例外.谁能告诉我正确安装程序的步骤!

I also tried "run as Administrator", still same exception. Could anyone tell me the procedure to install it properly !

推荐答案

记录 :始终创建 值3" 首先:

Logging: Always create an MSI log for debugging when encountering any deployment problems. See that link for hints on interpreting the log file content. Search for "value 3" first of all:

msiexec.exe /i C:\Path\Your.msi /L*vx! C:\Your.log


一般 :检查供应商的网站和/或用户论坛,以了解有关已知问题的详细信息.它可能是 紧急方法 :使用干净的虚拟机来运行软件.尝试不同的操作系统版本.仅在紧要关头心跳.或尝试其他人的计算机.显然可以,但是请尝试.

Emergency Approach: Use a clean virtual machine to get the software running. Try different OS-versions. Just for a heartbeat in a pinch. Or try someone else's computer. Obvious yes, but try it if you can.

首次检查 :有关部署问题的简化通用检查清单:

First Checks: A simplified, generic check-list for deployment issues:

  1. AD/组策略 :公司环境可能具有组策略和限制,根本无法安装任何东西.首先检查一下.

  1. AD / Group Policies: Corporate environments could have group policies and restrictions preventing the installation of anything at all. Check that first.

安装介质 :重新下载安装介质以确保其完整性.

Installation Media: Re-download installation media to ensure its integrity.

  • Corrupted by malware: Note that malware or other factors can corrupt downloaded files, but more commonly they are destroyed in-transit.
  • Corrupted by scanners: Security suites, firewalls, corporate blocks and the likes can cause problems (separate issue below - not sure if anti-virus programs try to clean binaries anymore? Block they certainly do).
  • Incomplete download: Launching before download is fully finished (premature launch) is a classic weirdness - error messages are generally ok, but can be misleading. Remember to allow anti-virus scanners to complete their post-download scan. This can take much longer than you think (they hash the file, check their site, etc...).
  • Download mirror issue: Sometimes the download comes from a number of download servers, some of which could be corrupted or contain faulty media or be misconfigured. Download again - check with virustotal.com and repeat a few times to verify. Have your colleague in another office download? Different mirror likely (automatic load-balancing - when you can't pick another server yourself).
  • Network Problems (LAN): When you have problems, try to copy installation files to a local location (the desktop will do) to eliminate any LAN network issues as the source of your deployment problem. If there are network problems file copy might fail with a proper warning message? Network related fallacies. More towards bottom.

缺少运行时 :少数非常核心的运行时会使安装程序崩溃.这在新鲜的"虚拟机上特别常见.和基本的.

Missing Runtimes: A few, very core-runtimes can make setups fall over. This is particularly common on virtual machines that are "fresh" and basic.

  • 示例包括: VCRedist (特别是), .NET Powershell ,等等...
  • 缺少和更高级的组件,例如 IIS MSSQL .NET Core Java ,等等...也会使某些创作不当的设置崩溃.

管理员权限 :确保您在相关框中具有实际管理员权限.换句话说,您使用真实的管理员帐户登录.如果您看不清楚,请避免使用 "run-as" .尝试进行真正的登录.

Admin Rights: Ensure you have real admin rights on the box in question. In other words you are logged on using a real administrator account. Avoid "run-as" if you have a failure to look at. Try a real login.

重新启动 :只尝试尝试一下即可.确保此后没有任何待处理的Windows更新.

Reboot: Just to try the obvious. Ensure there are no pending Windows Updates afterwards.

清洁平板电脑 :在运行安装程序之前,请关闭所有应用程序.这样可以解决各种锁定和阻塞事件.最好先重新引导,然后在再次备份计算机时首先执行设置.给机器足够的时间使其空闲-一切都已启动(服务等).

Clean Slate: Close down all applications before running your setup. This sorts out various locks and blocking happenstances. Preferably reboot first and run the setup the first thing you do when the machine is back up again. Give the machine enough time to be idle - everything started (services and such).

磁盘空间和完整性 :确保可用的可用磁盘空间,并且磁盘上没有错误.

Disk Space & Integrity: Ensure available free disk space AND that there are no errors on disk.

不同的用户 :尝试以不同真实的管理员用户身份进行安装.这里重要的是,这是一个比您初次尝试的管理员帐户(strong)不同的管理员帐户(用户帐户配置文件问题). So, in other words log in as a real admin user and don't just use "run as" .一个问题的例子可能是有人弄乱了用户配置文件的shell文件夹设置,从而使MSI的目录表解析失败.另一个用户个人资料通常不会受到影响,但仍然可以正常工作.

Different user: Try installing as a different and real admin user. The important thing here is that this is a different admin account than you first tried (user account profile issues). So, in other words log in as a real admin user and don't just use "run as". An example of a problem could be someone who has messed up their user profile shell folder settings so that the directory table resolution of MSI fails. Another user profile would normally be unaffected and still work OK.

ACL-访问控制 :很多时候,访问被拒绝可能与错误的自定义NTFS ACL配置有关.这导致意外访问被拒绝. Windows Updates加强了安全性或修复了安全漏洞甚至是恶意软件,也可能发生这种情况.

ACL - Access Control: Very often access denied can be related to custom NTFS ACL configration that is erroneous. This leads to unexpected access denied. This can also occur from Windows Updates tightening security or fixing security holes or even malware.

恶意软件检查 :运行防病毒软件或Windows Defender来验证您的包装盒上没有恶意软件问题. 另外使用 https://www.virustotal.com/检查安装媒体,以确保它是不是恶意软件本身!(setup.exe可能已被感染,或者整个产品可能完全是恶意软件-永远不会知道).

Malware check: Run anti-virus or Windows Defender to verify that you don't have a malware issue on your box. Additionally check the installation media with https://www.virustotal.com/ to ensure it is not malware itself! (the setup.exe could be infected, or the whole product could be malware outright - never know).

安全软件干扰 :Anti-virusfirewallsscanners and other security products可能过于活跃,会阻止对文件夹或资源的访问,因此看起来就像是ACL权限问题一样.如有必要,暂时禁用.防病毒软件是否仍在尝试修复数字证书时代的二进制文件?我不知道.始终使用 virustotal.com 检查安装文件.

Security Software Interference: Anti-virus, firewalls, scanners and other security products can be overactive and block access to a folder or a resource so it looks like it is an ACL permission issue. Disable temporarily if possible when required. Do anti-virus software still try to fix binaries in the age of digital certificates? I am not sure. Always check installation file using virustotal.com.

本地化设置 :有时,针对英语以外的其他语言(或除原始设置之外的其他语言(可以是任何一种语言)进行的设置)在系统上失败并已安装并正在使用其他语言.尝试使用设置预期的语言"在干净的虚拟环境中进行测试.此类问题表明设置设置非常错误( hard coded localized paths incorrect server paths or addresses due to translation errors etc...)-但是由于存在质量检查资源,它们是并不少见.本质上,通常在几乎所有情况下,主要语言版本都经过了更好的测试.

Localized Setups: Sometimes setups made for other languages than English - or rather another language than the original setup (could be any language) - fail on systems with other languages installed and in use. Try on a clean virtual with the "setup-expected language". Problems like these indicate VERY bad setup design (hard coded localized paths, incorrect server paths or addresses due to translation errors, etc...) - but due to QA resources they are not uncommon. In essence the main-language version is generally (in almost all cases) put through better testing.

安装点 :某些磁盘已在文件夹中安装了驱动器,诸如此类-这可能会引起一些严重的怪异问题.尝试干净的虚拟环境,没有任何戏剧性的设置.

Mount Points: Some disks have mounted drives in folders and such things - this can cause some seriously weird problems. Try on a clean virtual with no drama-settings.

NTFS/FAT32 :(有些偏斜).不再可能在FAT32驱动器上安装Windows 10-存在一些局限性(没有ACL权限,最大4gb文件,没有日志记录等.但是,该安装程序可以重定向到非系统FAT32分区或其他一些分区磁盘格式.这可能会引发安全性问题(无ACL权限),但通常不应创建任何访问被拒绝的问题-禁止尝试应用ACL权限的任何自定义操作都会失败(目前,这可能会正常降低,我现在还没有),但是FAT32磁盘(4gb)中存在文件大小限制,这些天实际上可能会因庞大的设置(游戏,视频文件等)触发错误.请注意,下游Windows操作系统可能仍允许FAT32最后,也是很重要的一点-FAT32不是日志文件系统,这很重要,这意味着数据损坏很容易在没有自我更正的情况下发生.

NTFS / FAT32: (Somewhat edge-case). It is no longer possible to install Windows 10 on a FAT32 drive - with the limitations that strike (no ACL permissions, max 4gb files, no journaling and such. However, the setup could be redirected to a non-system FAT32 partition or some other disk format. This could trigger security problems (no ACL permissions), but should not generally create any access denied issues - barring any custom actions trying to apply ACL permissions and failing (this might degrade gracefully by now, I don't know). However there are file size limitations in FAT32 disks (4gb) that might actually trigger errors these days for huge setups (games, video files, etc...). Note that downstream Windows OSs might still allow FAT32 system partitions. And finally - and importantly - FAT32 is not a journaling file system. This means data corruption can easily happen without self-correction.

下载的文件出现问题 :在Windows的较新版本中,下载的文件被标记为"此文件来自另一台计算机,并且可能被阻止帮助保护此计算机".请参见下面的屏幕截图. 在此处阅读有关此功能的更多详细信息

Flagged Downloaded File: In newer versions of Windows downloaded files are flagged as "This file came from another computer and might be blocked to help protect this computer". See screenshot below. Read more details about the feature here and Digital signatures, false positives, tagged downloaded file. Just make sure your file does NOT have this flag (I do not have a complete overview of all problems that can result from this):

奇异之处 :还有诸如 setups being to old to install properly 之类的东西(它们不能很好地处理现代Windows功能-您可以通过在属性页中为setup.exe文件本身启用此功能)和 older Installshield setups had lots of DCOM-based installscript engine issues 等来尝试以兼容模式运行安装程序.其他设置供应商也有自己的问题-在某些情况下也有许多问题.

Odds and Ends: There are additional things such as setups being to old to install properly (they don't handle modern Windows features well - you can try to run the setup in compatibility mode by enabling this in the property page for the setup.exe file itself) and older Installshield setups had lots of DCOM-based installscript engine issues and such things. Other setup vendors have their own problems - many of them too in some cases.

网络问题(LAN) :上面在" 安装介质 中提到了此问题"部分.您可以在本地复制文件,以消除作为问题根源的LAN网络问题(SAMBA问题,网络过载和数据包丢失,扫描仪受到干扰,超时等).如果您尝试复制本地,则可能会收到真正的错误消息.尝试将文件直接从Internet供应商站点下载到桌面作为测试. 与网络相关的谬论.


  • 完整检查清单 :.
  • .
  • 智能屏幕问题 :数字签名,误报,带标签的下载文件

    • Full Check List: See Section "Generic Tricks? in this answer for more.
    • Smartscreen issues: Digital signatures, false positives, tagged downloaded file
    • 这篇关于Bitvise SH客户端安装错误. CreateDirectory()失败:Windows错误5:访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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