简体   繁体   English

Windows 10 上的 SourceTree 安装失败:“CheckForUpdateImpl:无法写出暂存用户 ID,此用户可能不应获得任何测试版:”

[英]SourceTree Installation Fail on Windows 10: "CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: "

I am trying to install SourceTree to my brand new Acer Laptop just arrived, the moment I run the installer downloaded from Atlassian "SourceTreeSetup-2.1.11.0", it flashed for a second then pop up error message:我正在尝试将 SourceTree 安装到我刚到的全新 Acer 笔记本电脑上,当我运行从 Atlassian 下载的安装程序“SourceTreeSetup-2.1.11.0”时,它闪烁了一秒钟然后弹出错误消息:

在此处输入图片说明

This is the full setup error log:这是完整的设置错误日志:

2017-09-02 11:11:32> Program: Starting Squirrel Updater: --install . --rerunningWithoutUAC
2017-09-02 11:11:32> Program: Starting install, writing to C:\Users\blackhatSolo\AppData\Local\SquirrelTemp
2017-09-02 11:11:32> Program: About to install to: C:\Users\blackhatSolo\AppData\Local\SourceTree
2017-09-02 11:11:32> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\blackhatSolo\AppData\Local\SourceTree\packages\.betaId'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
   at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()
2017-09-02 11:11:32> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\blackhatSolo\AppData\Local\SourceTree\packages\RELEASES'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Squirrel.Utility.LoadLocalReleases(String localReleaseFile)
   at Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext()
2017-09-02 11:11:32> CheckForUpdateImpl: Reading RELEASES file from C:\Users\blackhatSolo\AppData\Local\SquirrelTemp
2017-09-02 11:11:32> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2017-09-02 11:11:32> ApplyReleasesImpl: Writing files to app directory: C:\Users\blackhatSolo\AppData\Local\SourceTree\app-2.1.11
2017-09-02 11:11:36> LogHost: Rigging execution stub for SourceTree_ExecutionStub.exe to C:\Users\blackhatSolo\AppData\Local\SourceTree\SourceTree.exe
2017-09-02 11:11:38> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\blackhatSolo\AppData\Local\SourceTree\app-2.1.11\SourceTree.exe]
2017-09-02 11:11:41> ApplyReleasesImpl: Starting fixPinnedExecutables
2017-09-02 11:11:41> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2017-09-02 11:11:41> ApplyReleasesImpl: Examining Pin: Google Chrome.lnk
2017-09-02 11:11:41> ApplyReleasesImpl: Fixing up tray icons
2017-09-02 11:11:41> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Object reference not set to an instance of an object.
   at Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__13_0(RegistryView view)
2017-09-02 11:11:41> ApplyReleasesImpl: Couldn't rewrite shim RegKey, most likely no apps are shimmed: System.NullReferenceException: Object reference not set to an instance of an object.
   at Squirrel.UpdateManager.ApplyReleasesImpl.<unshimOurselves>b__13_0(RegistryView view)
2017-09-02 11:11:41> ApplyReleasesImpl: cleanDeadVersions: for version 2.1.11
2017-09-02 11:11:41> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-2.1.11
2017-09-02 14:10:34> Program: Starting Squirrel Updater: --install . --rerunningWithoutUAC
2017-09-02 14:10:34> Program: Starting install, writing to C:\Users\blackhatSolo\AppData\Local\SquirrelTemp
2017-09-02 14:10:34> Program: About to install to: C:\Users\blackhatSolo\AppData\Local\SourceTree
2017-09-02 14:10:34> Program: Install path C:\Users\blackhatSolo\AppData\Local\SourceTree already exists, burning it to the ground
2017-09-02 14:10:34> IEnableLogger: Failed to remove existing directory on full install, is the app still running???: System.UnauthorizedAccessException: Access to the path 'C:\Users\blackhatSolo\AppData\Local\SourceTree\app-2.1.11\tools\putty\plink.exe' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
   at Squirrel.Utility.<>c.<DeleteDirectory>b__19_0(String file)
   at Squirrel.Utility.<>c__DisplayClass12_1`1.<ForEachAsync>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__42.MoveNext()
2017-09-02 14:10:34> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.UnauthorizedAccessException: Access to the path 'C:\Users\blackhatSolo\AppData\Local\SourceTree\app-2.1.11\tools\putty\plink.exe' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
   at Squirrel.Utility.<>c.<DeleteDirectory>b__19_0(String file)
   at Squirrel.Utility.<>c__DisplayClass12_1`1.<ForEachAsync>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Squirrel.Update.Program.executeCommandLine(String[] args)
   at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #0) System.UnauthorizedAccessException: Access to the path 'C:\Users\blackhatSolo\AppData\Local\SourceTree\app-2.1.11\tools\putty\plink.exe' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.File.SetAttributes(String path, FileAttributes fileAttributes)
   at Squirrel.Utility.<>c.<DeleteDirectory>b__19_0(String file)
   at Squirrel.Utility.<>c__DisplayClass12_1`1.<ForEachAsync>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c.<<DeleteDirectory>b__19_1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass13_0`1.<<ForEachAsync>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<DeleteDirectory>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()<---

Anyone happen to know solution for this issue ??有人碰巧知道这个问题的解决方案吗??

I have resolved my issue thus providing the solution for my own issue:我已经解决了我的问题,从而为我自己的问题提供了解决方案:

Thanks for Microsoft's new crappy operating system Win 10, now applications by default cannot access to c:/user/[username]/AppData/ because the owner of that directory is belong to TrustedInstaller, I just spent 1/2 hr to solve this screwed up Windows 10 configuration by changing the owner of this directory and its sub-directories to myself .感谢微软新的蹩脚操作系统 Win 10,现在应用程序默认无法访问 c:/user/[username]/AppData/ 因为该目录的所有者属于 TrustedInstaller,我只花了 1/2 小时就解决了这个问题通过将此目录及其子目录的所有者更改为我自己来启动 Windows 10 配置。

Thank you Microsoft for making my work even harder !感谢微软让我的工作更加努力!

I have tried Edward Sun suggestion above - did not work - it's not about folder permissions.我已经尝试过上面 Edward Sun 的建议 - 没有奏效 - 这与文件夹权限无关。

This error occurs during app installations when the installer tried to update Sourcetree, probably to pull the new Git commit for this app.当安装程序尝试更新 Sourcetree 时,在应用程序安装期间发生此错误,可能是为了为该应用程序拉取新的 Git 提交。

A process can lock c:/user/[username]/AppData/Local/[relevant app dir] for some unclear reason.由于某些不清楚的原因,进程可以锁定c:/user/[username]/AppData/Local/[relevant app dir] Tracking down the locking process is futile.追踪锁定过程是徒劳的。

Workaround:解决方法:

  1. Restart windows 10 (normal restart. if it does not work, try Safe Mode restart).重启windows 10(正常重启。如果不行,试试安全模式重启)。
  2. Remove c:/user/[username]/AppData/Local/[relevant app dir]删除c:/user/[username]/AppData/Local/[relevant app dir]
  3. Run the installer for the app.运行应用程序的安装程序。

During the restart, the directory seems to be released again and the installer can write to it.在重新启动期间,该目录似乎再次被释放并且安装程序可以写入该目录。

Try to run the setup.exe file from PowerShell as administrator.尝试以管理员身份从 PowerShell 运行 setup.exe 文件。 It will resolve.它会解决。

When I tried install slack application I got similar error.当我尝试安装 slack 应用程序时,我遇到了类似的错误。 I resolved of one via disabling antivirus on moment installation.我通过在安装时禁用防病毒解决了一个问题。

I had a similar issue here, and i just updated the security information in the folder.我在这里遇到了类似的问题,我刚刚更新了文件夹中的安全信息。

2018-07-03 15:20:47> Program: Starting Squirrel Updater: --install .
2018-07-03 15:20:47> Program: Starting install, writing to C:\Users\[user]\AppData\Local\SquirrelTemp
2018-07-03 15:20:47> Program: About to install to: C:\Users\[user]\AppData\Local\GitHubDesktop
2018-07-03 15:20:47> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\[user]\AppData\Local\GitHubDesktop\packages\.betaId'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
   at System.IO.File.WriteAllText(String path, String contents, Encoding encoding)
   at Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId()

To change the properties in this case we follow the folder impacted ->在这种情况下,要更改属性,我们遵循受影响的文件夹 ->

C:\\Users[user]\\AppData\\Local\\GitHubDesktop C:\\Users[用户]\\AppData\\Local\\GitHubDesktop

Then right click in the folder of "GitHubDesktop" and follow the below Steps:然后右键单击“GitHubDesktop”文件夹并按照以下步骤操作:

  1. Right click on the file or directory.右键单击文件或目录。
  2. Click on “Properties” on the right click menu.单击右键菜单上的“属性”。
  3. Click on “Security” tab.单击“安全”选项卡。
  4. Click on “Advanced” button at the bottom.点击底部的“高级”按钮。
  5. In Advanced Security Dialog window, check “Replace all child object permission entries with inheritable permission entries from this object”在“高级安全对话框”窗口中,选中“用来自该对象的可继承权限条目替换所有子对象权限条目”
  6. Click on Apply.单击应用。
  7. Click on "Ok", and you will see a popup with a windows process where the modifications will be applied for the current folder.单击“确定”,您将看到一个带有 Windows 进程的弹出窗口,其中的修改将应用于当前文件夹。
  8. Click on "OK", and you already completed the process.单击“确定”,您已经完成了该过程。

This is following the suggestion of "Edward Sun" and is in order to have a guide of the steps what i follow to solve the issue.这是遵循“Edward Sun”的建议,是为了指导我解决问题所遵循的步骤。

Thanks, Edward!谢谢,爱德华!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows 10 在 SSD 上安装错误:“我们无法创建新分区……” - Windows 10 Installation on a SSD error: “ We couldn't create a new partition…” Windows Limited用户安装 - Windows Limited User Installation 在Windows 10 Universal App中获取用户电子邮件 - Get user email in windows 10 universal app 作为服务运行时,C ++中获取当前登录用户名不显示任何内容 - Get current logged in user name in C++ doesn't show anything when run as service 图片索引超出范围,但不应超出范围 - Image index out of Range, except it shouldn't be FFMPEG(Windows7)无法使输出视频显示超过10张JPG中的3张 - FFMPEG (windows7) can't get the output video to show more than 3 out of 10 jpgs MS Windows 上的 Django 安装,manage.py“无法导入 Django” - Django installation on MS Windows, manage.py “Couldn't import Django” 用户界面:是否可以在Windows 10中获得较旧的Windows外观? - User interface: Is it possible to get older Windows look and feel in Windows 10? 无法在 Windows 10 上将模型链接到“en_core_web_md” - Couldn’t link model to ‘en_core_web_md’ on a Windows 10 在 Windows 10 上安装 IIS 时出现错误 0x800f0922:“无法完成更改。” - Error 0x800f0922 when installing IIS on Windows 10: “The changes couldn't be completed.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM