Squirrel / Squirrel.Windows

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

System.InvalidOperationException #1877

Open QWXL opened 8 months ago

QWXL commented 8 months ago

Squirrel version(s) 2.0.0

Description

[15/03/24 23:59:48] info: Program: Starting Squirrel Updater: --install .
[15/03/24 23:59:48] info: Program: Starting install, writing to C:\Users\86150\AppData\Local\SquirrelTemp
[15/03/24 23:59:48] fatal: Finished with unhandled exception: System.AggregateException: 发生一个或多个错误。 ---> System.InvalidOperationException: 序列不包含任何元素
   在 System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   在 Squirrel.Update.Program.<Install>d__4.MoveNext()
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   在 System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   在 Squirrel.Update.Program.executeCommandLine(String[] args)
   在 Squirrel.Update.Program.main(String[] args)
---> (内部异常 #0) System.InvalidOperationException: 序列不包含任何元素
   在 System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   在 Squirrel.Update.Program.<Install>d__4.MoveNext()<---

Steps to recreate

  1. I just distributed my packaged application to my users.

Expected behavior The application should complete the installation without any problems

Actual behavior The first moment you run the installer, an error pops up!

Additional information i use Electron forge , but I didn't succeed in reproducing the problem