trying to install SourceTreeSetup-3.0.12.exe on Windows 10
Asked by Steve Shireman:

2018-12-13 15:37:36\> Program: Starting Squirrel Updater: --install .  
2018-12-13 15:37:37\> Program: Starting install, writing to C:\\Users\\sshireman\\AppData\\Local\\SquirrelTemp  
2018-12-13 15:37:37\> Program: About to install to: C:\\Users\\sshireman\\AppData\\Local\\SourceTree  
2018-12-13 15:37:37\> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F: System.UnauthorizedAccessException: Access to the path 'C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F' is denied.  
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.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)  
2018-12-13 15:37:37\> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F: System.UnauthorizedAccessException: Access to the path 'C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F' is denied.  
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.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)  
2018-12-13 15:37:37\> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F: System.UnauthorizedAccessException: Access to the path 'C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F' is denied.  
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.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)  
2018-12-13 15:37:37\> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F: System.UnauthorizedAccessException: Access to the path 'C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F' is denied.  
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.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)  
2018-12-13 15:37:38\> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F: System.UnauthorizedAccessException: Access to the path 'C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F' is denied.  
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.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)  
2018-12-13 15:37:38\> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F: System.UnauthorizedAccessException: Access to the path 'C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F' is denied.  
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.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)  
2018-12-13 15:37:38\> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F: System.UnauthorizedAccessException: Access to the path 'C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F' is denied.  
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.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)  
2018-12-13 15:37:38\> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F: System.UnauthorizedAccessException: Access to the path 'C:\\Program Files\\Git\\tmp\\.squirrel-lock-C6809926F356F5023B1194285C1BA38231F2C58F' is denied.  
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.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)  
2018-12-13 15:37:39\> Unhandled exception: System.AggregateException: One or more errors occurred. ---\> System.Exception: Couldn't acquire lock, is another instance running  
at Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)  
at Squirrel.UpdateManager.\<acquireUpdateLock\>b__32_0()  
at System.Threading.Tasks.Task\`1.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) ...

<br />

a


Answers:
author: Ana Retamal
body: Hi Steve!

That looks like a Squirrel installer error rather than a SourceTree error itself. We had a user with a similar issue and he said that uninstalling the .Net framework, and re-installing it again worked for him.

Other than that it looks like Squirrel might not have sufficient permissions to access or write to the designated folder path. Does the user have enough permissions to install it?

Let us know!

Ana


Tags: upgrade

windows