Squirrel / Squirrel.Windows

An installation and update framework for Windows desktop apps
MIT License
7.36k stars 1.03k forks source link

Installing SourceTree SquirrelSetup crash #1064

Closed UnfatalError closed 7 years ago

UnfatalError commented 7 years ago

Hello, I have an issue since the morning. I can't use SourceTree or any other Git app since I've a crash when I try to install it. Here's the last log file I got.

2017-06-17 12:26:10> Program: Starting Squirrel Updater: --install . 2017-06-17 12:26:10> Program: Starting install, writing to C:\Users\admin\AppData\Local\SquirrelTemp 2017-06-17 12:26:10> Program: About to install to: C:\Users\admin\AppData\Local\SourceTree 2017-06-17 12:26:10> CheckForUpdateImpl: Couldn't write out staging user ID, this user probably shouldn't get beta anything: System.IO.DirectoryNotFoundException: Impossible de trouver une partie du chemin d'accès 'C:\Users\admin\AppData\Local\SourceTree\packages\.betaId'. à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) à 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, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) à System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) à System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) à System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) à System.IO.File.WriteAllText(String path, String contents, Encoding encoding) à Squirrel.UpdateManager.CheckForUpdateImpl.getOrCreateStagedUserId() 2017-06-17 12:26:10> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Impossible de trouver une partie du chemin d'accès 'C:\Users\admin\AppData\Local\SourceTree\packages\RELEASES'. à System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) à 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.Utility.LoadLocalReleases(String localReleaseFile) à Squirrel.UpdateManager.CheckForUpdateImpl.<CheckForUpdate>d__2.MoveNext() 2017-06-17 12:26:11> CheckForUpdateImpl: Reading RELEASES file from C:\Users\admin\AppData\Local\SquirrelTemp 2017-06-17 12:26:11> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch 2017-06-17 12:26:11> ApplyReleasesImpl: Writing files to app directory: C:\Users\admin\AppData\Local\SourceTree\app-2.1.2.5 2017-06-17 12:26:11> ApplyReleasesImpl: Squirrel Enabled Apps: [] 2017-06-17 12:26:11> ApplyReleasesImpl: No apps are marked as Squirrel-aware! Going to run them all 2017-06-17 12:26:11> ApplyReleasesImpl: About to create shortcuts for SourceTree.exe, rootAppDir C:\Users\admin\AppData\Local\SourceTree 2017-06-17 12:26:11> ApplyReleasesImpl: Creating shortcut for SourceTree.exe => C:\Users\admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Atlassian\SourceTree.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: About to save shortcut: C:\Users\admin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Atlassian\SourceTree.lnk (target C:\Users\admin\AppData\Local\SourceTree\Update.exe, workingDir C:\Users\admin\AppData\Local\SourceTree\app-2.1.2.5, args --processStart "SourceTree.exe") 2017-06-17 12:26:11> ApplyReleasesImpl: Creating shortcut for SourceTree.exe => e:\Users\admin\Desktop\SourceTree.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: About to save shortcut: e:\Users\admin\Desktop\SourceTree.lnk (target C:\Users\admin\AppData\Local\SourceTree\Update.exe, workingDir C:\Users\admin\AppData\Local\SourceTree\app-2.1.2.5, args --processStart "SourceTree.exe") 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Adobe Flash Professional CC.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Battle.net.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Google Chrome.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: League of Legends.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Maya 2016.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Mozilla Thunderbird.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Photoshop CS6.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Play League of Legends (2).lnk 2017-06-17 12:26:11> ApplyReleasesImpl: File 'C:\Users\admin\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Play League of Legends (2).lnk' could not be converted into a valid ShellLink: System.Runtime.InteropServices.COMException (0x80004005): Une erreur HRESULT E_FAIL a été retournée à partir d'un appel à un composant COM. à Squirrel.Shell.ShellLink.IPersistFile.Load(String pszFileName, UInt32 dwMode) à Squirrel.Shell.ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut) à Squirrel.UpdateManager.ApplyReleasesImpl.<fixPinnedExecutables>b__11_0(FileInfo file) 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Play League of Legends.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Skype.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Steam.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: TeamSpeak 3 Client.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Unity 5.5.0f3 (64-bit).lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Vegas Pro 12.0 (64-bit).lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Starting fixPinnedExecutables 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Adobe Flash Professional CC.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Battle.net.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Google Chrome.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: League of Legends.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Maya 2016.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Mozilla Thunderbird.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Photoshop CS6.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Play League of Legends (2).lnk 2017-06-17 12:26:11> ApplyReleasesImpl: File 'C:\Users\admin\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Play League of Legends (2).lnk' could not be converted into a valid ShellLink: System.Runtime.InteropServices.COMException (0x80004005): Une erreur HRESULT E_FAIL a été retournée à partir d'un appel à un composant COM. à Squirrel.Shell.ShellLink.IPersistFile.Load(String pszFileName, UInt32 dwMode) à Squirrel.Shell.ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut) à Squirrel.UpdateManager.ApplyReleasesImpl.<fixPinnedExecutables>b__11_0(FileInfo file) 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Play League of Legends.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Skype.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Steam.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: TeamSpeak 3 Client.lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Unity 5.5.0f3 (64-bit).lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Examining Pin: Vegas Pro 12.0 (64-bit).lnk 2017-06-17 12:26:11> ApplyReleasesImpl: Fixing up tray icons 2017-06-17 12:26:12> ApplyReleasesImpl: cleanDeadVersions: for version 2.1.2.5 2017-06-17 12:26:12> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-2.1.2.5

Does anyone know how to solve the problem please ? It would be very nice.

Thank you in advance

UnfatalError commented 7 years ago

The problem was the update to .NET Framework 4.7. Returned to 4.6.2 and everything works fine.