Installation won't install on Windows
Asked by F?lix Larouche Thibault:

I know that question has already been ask but when I try to install SourceTree, the installation stop and this error pop up and I cant find the problem. Can somebody help me ?

```
2017-04-19 19:37:44> Program: Starting Squirrel Updater: --install .2017-04-19 19:37:44> Program: Starting install, writing to C:\Users\Felix\AppData\Local\SquirrelTemp2017-04-19 19:37:44> Program: About to install to: C:\Users\Felix\AppData\Local\SourceTree2017-04-19 19:37:44> Program: Install path C:\Users\Felix\AppData\Local\SourceTree already exists, burning it to the ground2017-04-19 19:37:45> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\Felix\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-A5AC73A3E38DA9464745C472A3463E606AE85ECE: System.NotSupportedException: Le format du chemin d'acc?s donn? n'est pas pris en charge.   ? System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)   ? 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)   ? System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)   ? Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)2017-04-19 19:37:45> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\Felix\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-A5AC73A3E38DA9464745C472A3463E606AE85ECE: System.NotSupportedException: Le format du chemin d'acc?s donn? n'est pas pris en charge.   ? System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)   ? 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)   ? System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)   ? Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)2017-04-19 19:37:45> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\Felix\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-A5AC73A3E38DA9464745C472A3463E606AE85ECE: System.NotSupportedException: Le format du chemin d'acc?s donn? n'est pas pris en charge.   ? System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)   ? 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)   ? System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)   ? Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)2017-04-19 19:37:46> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\Felix\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-A5AC73A3E38DA9464745C472A3463E606AE85ECE: System.NotSupportedException: Le format du chemin d'acc?s donn? n'est pas pris en charge.   ? System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)   ? 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)   ? System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)   ? Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)2017-04-19 19:37:46> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\Felix\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-A5AC73A3E38DA9464745C472A3463E606AE85ECE: System.NotSupportedException: Le format du chemin d'acc?s donn? n'est pas pris en charge.   ? System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)   ? 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)   ? System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)   ? Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)2017-04-19 19:37:46> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\Felix\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-A5AC73A3E38DA9464745C472A3463E606AE85ECE: System.NotSupportedException: Le format du chemin d'acc?s donn? n'est pas pris en charge.   ? System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)   ? 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)   ? System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)   ? Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)2017-04-19 19:37:46> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\Felix\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-A5AC73A3E38DA9464745C472A3463E606AE85ECE: System.NotSupportedException: Le format du chemin d'acc?s donn? n'est pas pris en charge.   ? System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)   ? 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)   ? System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)   ? Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)2017-04-19 19:37:47> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\Felix\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-A5AC73A3E38DA9464745C472A3463E606AE85ECE: System.NotSupportedException: Le format du chemin d'acc?s donn? n'est pas pris en charge.   ? System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)   ? 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)   ? System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)   ? Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)2017-04-19 19:37:47> Unhandled exception: System.AggregateException: Une ou plusieurs erreurs se sont produites. ---> System.Exception: Couldn't acquire lock, is another instance running   ? Squirrel.SingleGlobalInstance..ctor(String key, TimeSpan timeOut)   ? Squirrel.UpdateManager.<acquireUpdateLock>b__31_0()   ? System.Threading.Tasks.Task`1.InnerInvoke()   ? System.Threading.Tasks.Task.Execute()
```


Answers:
author: Harish Mahendramani
body: This is because the Windows is not allowing the application to access are create the folder in the destination in which application is trying to access.

**Solution:** Just goto the destination file mentioned in the error and give the permissions and if required create the folder in which the application is trying to install.

**Eg:** In this case -

```
2017-04-19 19:37:45> SingleGlobalInstance: Failed to grab lockfile, will retry: C:\Users\Felix\AppData\Local\Temp;C:\xampp\php\.squirrel-lock-
```

Goto the above destination folder, right click \> Properties \> Security \> Give permissions

Now try installing the application again, this worked for me !!


author: Ana Retamal
body: Hi F?lix! That's a Squirrel installer error rather than a SourceTree error itself. We had a user with a similar issue and he said that uninstalling .Net framework, and re-installing it again worked for him.

Otherwise, seems like other people have been having this problem too, you can check their answers in [this thread](https://community.atlassian.com/t5/SourceTree-questions/Can-t-re-install-SourceTree/qaq-p/598270).

Can you try that and let us know?

Cheers,

Ana


Tags: error

install

windows