question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Squirrel.Windows not creating temporary directories when extracting nupkg files

See original GitHub issue
  • Version: 19.45.1
  • Target: squirrel

I am getting the following error when using Squirrel.Windows to extract existing nupkg files to the SQUIRREL_TEMP directory.

Utility: Failed to extract file E:\a1\EMRC-ELECTRON99-BW\dist\squirrel-windows-ia32\EMRConnect-1.5.0-full.nupkg to E:\SquirrelTemp\tempa The system cannot find the file specified

Why doesn’t the tempa folder get created by Squirrel.Windows automatically? Even if I manually add the folder it complains about folder tempb not existing.

I have SQUIRREL_TEMP set to E:\SquirrelTemp with configuration: "win": { "target": [ { "target": "squirrel", "arch": "ia32" } ], "icon": "build/assets/img/main.ico" }, "squirrelWindows": { "iconUrl": "<url>", "loadingGif": "build/assets/img/install-spinner.gif", "remoteReleases": "<url>" }

Full stacktrace: `

07-Nov-2017 10:56:07 2017-11-06T21:56:07.622Z electron-builder Executing C:\Users\build\AppData\Local\Temp\electron-builder-cache\Squirrel.Windows\Squirrel.Windows-1.7.8\WriteZipToSetup.exe --copy-stub-resources E:\a1\EMRC-ELECTRON99-BW\dist\win-ia32-unpacked\EMR Connect.exe C:\Users\build\AppData\Local\Temp\temp-files-hLra1Q\1-stub.exe
07-Nov-2017 10:57:04 2017-11-06T21:57:04.895Z electron-builder Executing C:\Users\build\AppData\Local\Temp\electron-builder-cache\Squirrel.Windows\Squirrel.Windows-1.7.8\Update.com --releasify E:\a1\EMRC-ELECTRON99-BW\dist\squirrel-windows-ia32\emrc-desktop-app-1.5.1-full.nupkg --releaseDir E:\a1\EMRC-ELECTRON99-BW\dist\squirrel-windows-ia32
07-Nov-2017 10:57:05 2017-11-06T21:57:05.519Z electron-builder Async task error: Error: Exit code: 4294967295. Command failed: C:\Users\build\AppData\Local\Temp\electron-builder-cache\Squirrel.Windows\Squirrel.Windows-1.7.8\Update.com --releasify E:\a1\EMRC-ELECTRON99-BW\dist\squirrel-windows-ia32\emrc-desktop-app-1.5.1-full.nupkg --releaseDir E:\a1\EMRC-ELECTRON99-BW\dist\squirrel-windows-ia32
07-Nov-2017 10:57:05 2017-11-07 10:57:05> Utility: Failed to extract file E:\a1\EMRC-ELECTRON99-BW\dist\squirrel-windows-ia32\EMRConnect-1.5.0-full.nupkg to E:\SquirrelTemp\tempa
07-Nov-2017 10:57:05 The system cannot find the file specified
07-Nov-2017 10:57:05 2017-11-07 10:57:05> Unhandled exception: System.AggregateException: One or more errors occurred. —> System.ComponentModel.Win32Exception: The system cannot find the file specified
07-Nov-2017 10:57:05 at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
07-Nov-2017 10:57:05 at System.Diagnostics.Process.Start()
07-Nov-2017 10:57:05 at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
07-Nov-2017 10:57:05 at Squirrel.Utility.<InvokeProcessAsync>d__11.MoveNext()
07-Nov-2017 10:57:05 — End of stack trace from previous location where exception was thrown —
07-Nov-2017 10:57:05 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
07-Nov-2017 10:57:05 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
07-Nov-2017 10:57:05 at Squirrel.Utility.<ExtractZipToDirectory>d__22.MoveNext()
07-Nov-2017 10:57:05 — End of inner exception stack trace —
07-Nov-2017 10:57:05 at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
07-Nov-2017 10:57:05 at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
07-Nov-2017 10:57:05 at Squirrel.DeltaPackageBuilder.CreateDeltaPackage(ReleasePackage basePackage, ReleasePackage newPackage, String outputFile)
07-Nov-2017 10:57:05 at Squirrel.Update.Program.ReleasifyElectron(String package, String targetDir, String baseUrl)
07-Nov-2017 10:57:05 at Squirrel.Update.Program.executeCommandLine(String[] args)
07-Nov-2017 10:57:05 at Squirrel.Update.Program.main(String[] args)
07-Nov-2017 10:57:05 —> (Inner Exception #0) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
07-Nov-2017 10:57:05 at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
07-Nov-2017 10:57:05 at System.Diagnostics.Process.Start()
07-Nov-2017 10:57:05 at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
07-Nov-2017 10:57:05 at Squirrel.Utility.<InvokeProcessAsync>d__11.MoveNext()
07-Nov-2017 10:57:05 — End of stack trace from previous location where exception was thrown —
07-Nov-2017 10:57:05 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
07-Nov-2017 10:57:05 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
07-Nov-2017 10:57:05 at Squirrel.Utility.<ExtractZipToDirectory>d__22.MoveNext()<—
`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
wmnndcommented, Nov 14, 2017

I am getting the same error. Here is the full debug log: https://gist.github.com/wmnnd/645392242b64ef635006614971c1ec81

I was also unable to manually call Update.com --releasify with any success:. Update.com --releasify simply creates a new RELEASES file but now delta package even if the previous -full package and RELEASES file are available.

This is happening with electron-builder 19.45.7 and Squirrel.Windows 1.7.8.

Edit:

I have downgraded electron-builder-squirrel-windows to 19.42.0 and now delta images are created correctly. This seems to be a regression in newer versions.

0reactions
stale[bot]commented, Jul 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Squirrel Powershell file is not creating the Setup.exe
It runs and it creates only a nupkg in the .\Releases folder. If I run the same --releasify command in the Visual Studio...
Read more >
NuGet Install-Package PowerShell Reference | Microsoft Learn
Reference for Install-Package PowerShell command in the NuGet Package Manager Console in Visual Studio.
Read more >
electron-builder-squirrel-windows | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Squirrel - Bountysource
So, I was wondering why not implement something like this inside Squirrel for ... way Squirrel works (creating a different folder per version),...
Read more >
Automated Malware Analysis Executive Report for exodus-windows ...
Found dropped PE file which has not been started or loaded ... File created: C:\Users\user\AppData\Local\Temp\.squirrel-lock- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found