Skip to content

winget install errors out #927

@frogcrush

Description

@frogcrush

When installing via winget, install fails with the following build log:

Details

14104> 2024-05-29 15:19:22> Program: Starting Squirrel Updater: --install .
14104> 2024-05-29 15:19:22> Program: Starting install, writing to C:\Users\TylorPater\AppData\Local\SquirrelTemp
14104> 2024-05-29 15:19:22> Program: About to install to: C:\Users\TylorPater\AppData\Local\Discord
14104> 2024-05-29 15:19:22> SingleGlobalInstance: Grabbing lockfile with timeout of 00:00:10
14104> 2024-05-29 15:19:22> CheckForUpdateImpl: Reading RELEASES file from C:\Users\TylorPater\AppData\Local\SquirrelTemp
14104> 2024-05-29 15:19:22> CheckForUpdateImpl: Remote version 1.0.9147 differs from local 
14104> 2024-05-29 15:19:22> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
14104> 2024-05-29 15:19:22> ApplyReleasesImpl: Writing files to app directory: C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\app.ico to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\app.ico
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\chrome_200_percent.pak to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\chrome_200_percent.pak
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\chrome_100_percent.pak to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\chrome_100_percent.pak
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\d3dcompiler_47.dll to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\d3dcompiler_47.dll
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\Discord.exe to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\Discord.exe
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\Discord.exe.sig to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\Discord.exe.sig
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\ffmpeg.dll to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\ffmpeg.dll
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\icudtl.dat to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\icudtl.dat
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\installer.db to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\installer.db
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\libEGL.dll to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\libEGL.dll
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\libGLESv2.dll to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\libGLESv2.dll
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\snapshot_blob.bin to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\snapshot_blob.bin
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\updater.node to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\updater.node
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\v8_context_snapshot.bin to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\v8_context_snapshot.bin
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\resources.pak to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\resources.pak
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\vk_swiftshader_icd.json to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\vk_swiftshader_icd.json
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\vk_swiftshader.dll to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\vk_swiftshader.dll
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Moving file C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\lib\net45\vulkan-1.dll to C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\vulkan-1.dll
14104> 2024-05-29 15:19:24> ApplyReleasesImpl: Squirrel Enabled Apps: [C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\Discord.exe]
14104> 2024-05-29 15:19:25> Utility: Process Started: C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\Discord.exe --squirrel-install 1.0.9147, pid 2928
14104> 2024-05-29 15:19:26> Utility: Received exitcode 0 from process C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\Discord.exe
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: ran C:\Users\TylorPater\AppData\Local\Discord\app-1.0.9147\Discord.exe, pid 30660
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: Starting fixPinnedExecutables
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: fixPinnedExecutables: newCurrentFolder: app-1.0.9147
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: File 'C:\Users\TylorPater\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessibility\LiveCaptions.lnk' could not be converted into a valid ShellLink: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
   at Squirrel.Shell.ShellLink.IShellLinkW.Resolve(IntPtr hWnd, UInt32 fFlags)
   at Squirrel.Shell.ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<fixPinnedExecutables>b__11_0(FileInfo file)
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: File 'C:\Users\TylorPater\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessibility\Narrator.lnk' could not be converted into a valid ShellLink: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
   at Squirrel.Shell.ShellLink.IShellLinkW.Resolve(IntPtr hWnd, UInt32 fFlags)
   at Squirrel.Shell.ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<fixPinnedExecutables>b__11_0(FileInfo file)
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: File 'C:\Users\TylorPater\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessibility\On-Screen Keyboard.lnk' could not be converted into a valid ShellLink: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
   at Squirrel.Shell.ShellLink.IShellLinkW.Resolve(IntPtr hWnd, UInt32 fFlags)
   at Squirrel.Shell.ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<fixPinnedExecutables>b__11_0(FileInfo file)
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: File 'C:\Users\TylorPater\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessibility\VoiceAccess.lnk' could not be converted into a valid ShellLink: System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
   at Squirrel.Shell.ShellLink.IShellLinkW.Resolve(IntPtr hWnd, UInt32 fFlags)
   at Squirrel.Shell.ShellLink.Open(String linkFile, IntPtr hWnd, EShellLinkResolveFlags resolveFlags, UInt16 timeOut)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<fixPinnedExecutables>b__11_0(FileInfo file)
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: Updating shortcut C:\Users\TylorPater\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Discord Inc\Discord.lnk
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: Updating shortcut C:\Users\TylorPater\Desktop\Discord.lnk
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: Fixing up tray icons
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: cleanDeadVersions: for version 1.0.9147
14104> 2024-05-29 15:19:26> ApplyReleasesImpl: cleanDeadVersions: exclude current version folder app-1.0.9147
2024-06-17 09:54:08> Program: Starting Squirrel Updater: --install .
2024-06-17 09:54:08> Program: Starting install, writing to C:\Users\TylorPater\AppData\Local\SquirrelTemp
2024-06-17 09:54:08> Program: About to install to: C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer
2024-06-17 09:54:08> 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\TylorPater\AppData\Local\MSBuildStructuredLogViewer\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()
2024-06-17 09:54:08> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer\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()
2024-06-17 09:54:08> CheckForUpdateImpl: Reading RELEASES file from C:\Users\TylorPater\AppData\Local\SquirrelTemp
2024-06-17 09:54:08> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2024-06-17 09:54:08> ApplyReleasesImpl: Writing files to app directory: C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer\app-2.2.248
2024-06-17 09:54:09> ApplyReleasesImpl: Squirrel Enabled Apps: []
2024-06-17 09:54:09> ApplyReleasesImpl: No apps are marked as Squirrel-aware! Going to run them all
2024-06-17 09:54:09> ApplyReleasesImpl: About to create shortcuts for StructuredLogViewer.exe, rootAppDir C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer
2024-06-17 09:54:09> ApplyReleasesImpl: Creating shortcut for StructuredLogViewer.exe => C:\Users\TylorPater\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Microsoft\MSBuild Structured Log Viewer.lnk
2024-06-17 09:54:09> ApplyReleasesImpl: About to save shortcut: C:\Users\TylorPater\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Microsoft\MSBuild Structured Log Viewer.lnk (target C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer\Update.exe, workingDir C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer\app-2.2.248, args --processStart "StructuredLogViewer.exe")
2024-06-17 09:54:09> ApplyReleasesImpl: Creating shortcut for StructuredLogViewer.exe => C:\Users\TylorPater\Desktop\MSBuild Structured Log Viewer.lnk
2024-06-17 09:54:09> ApplyReleasesImpl: About to save shortcut: C:\Users\TylorPater\Desktop\MSBuild Structured Log Viewer.lnk (target C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer\Update.exe, workingDir C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer\app-2.2.248, args --processStart "StructuredLogViewer.exe")
2024-06-17 09:54:09> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2024-06-17 09:54:09> ApplyReleasesImpl: Examining Pin: Microsoft Edge.lnk
2024-06-17 09:54:09> ApplyReleasesImpl: About to create shortcuts for TaskRunner.exe, rootAppDir C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer
2024-06-17 09:54:09> ApplyReleasesImpl: Creating shortcut for TaskRunner.exe => C:\Users\TylorPater\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\TaskRunner\TaskRunner.lnk
2024-06-17 09:54:09> ApplyReleasesImpl: About to save shortcut: C:\Users\TylorPater\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\TaskRunner\TaskRunner.lnk (target C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer\Update.exe, workingDir C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer\app-2.2.248, args --processStart "TaskRunner.exe")
2024-06-17 09:54:09> ApplyReleasesImpl: Creating shortcut for TaskRunner.exe => C:\Users\TylorPater\Desktop\TaskRunner.lnk
2024-06-17 09:54:09> ApplyReleasesImpl: About to save shortcut: C:\Users\TylorPater\Desktop\TaskRunner.lnk (target C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer\Update.exe, workingDir C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer\app-2.2.248, args --processStart "TaskRunner.exe")
2024-06-17 09:54:09> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2024-06-17 09:54:09> ApplyReleasesImpl: Examining Pin: Microsoft Edge.lnk
2024-06-17 09:54:09> ApplyReleasesImpl: Starting fixPinnedExecutables
2024-06-17 09:54:09> ApplyReleasesImpl: Examining Pin: File Explorer.lnk
2024-06-17 09:54:09> ApplyReleasesImpl: Examining Pin: Microsoft Edge.lnk
2024-06-17 09:54:09> ApplyReleasesImpl: Fixing up tray icons
2024-06-17 09:54:09> ApplyReleasesImpl: cleanDeadVersions: for version 2.2.248
2024-06-17 09:54:09> ApplyReleasesImpl: cleanDeadVersions: exclude folder app-2.2.248
2026-02-02 13:15:11> Program: Starting Squirrel Updater: --install . --silent
2026-02-02 13:15:11> Program: Starting install, writing to C:\Users\TylorPater\AppData\Local\SquirrelTemp
2026-02-02 13:15:11> Program: About to install to: C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer
2026-02-02 13:15:11> Program: Install path C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer already exists, burning it to the ground
2026-02-02 13:15:11> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Squirrel.UnsafeUtility.<>c__DisplayClass0_0.<EnumerateProcesses>b__0(Int32 i)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Squirrel.UnsafeUtility.EnumerateProcesses()
   at Squirrel.UpdateManager.InstallHelperImpl.KillAllProcessesBelongingToPackage()
   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.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Squirrel.UnsafeUtility.<>c__DisplayClass0_0.<EnumerateProcesses>b__0(Int32 i)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Squirrel.UnsafeUtility.EnumerateProcesses()
   at Squirrel.UpdateManager.InstallHelperImpl.KillAllProcessesBelongingToPackage()
   at Squirrel.Update.Program.<Install>d__4.MoveNext()<---

2026-02-02 13:17:04> Program: Starting Squirrel Updater: --install . --silent
2026-02-02 13:17:04> Program: Starting install, writing to C:\Users\TylorPater\AppData\Local\SquirrelTemp
2026-02-02 13:17:04> Program: About to install to: C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer
2026-02-02 13:17:04> Program: Install path C:\Users\TylorPater\AppData\Local\MSBuildStructuredLogViewer already exists, burning it to the ground
2026-02-02 13:17:04> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Squirrel.UnsafeUtility.<>c__DisplayClass0_0.<EnumerateProcesses>b__0(Int32 i)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Squirrel.UnsafeUtility.EnumerateProcesses()
   at Squirrel.UpdateManager.InstallHelperImpl.KillAllProcessesBelongingToPackage()
   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.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Squirrel.UnsafeUtility.<>c__DisplayClass0_0.<EnumerateProcesses>b__0(Int32 i)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Squirrel.UnsafeUtility.EnumerateProcesses()
   at Squirrel.UpdateManager.InstallHelperImpl.KillAllProcessesBelongingToPackage()
   at Squirrel.Update.Program.<Install>d__4.MoveNext()<---


Seems to be trying to overwrite/update my Discord install?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions