Squirrel.windows: Couldn't write out staging user ID

Created on 18 May 2016  路  30Comments  路  Source: Squirrel/Squirrel.Windows

Hello. I've gone through the Getting Started guide and the setup and application works great on my own computer, but whenever I try it on someone else's computer (or in this case a VM) the Setup.exe will briefly run and then crash. It manages to do a few things, like creating the desktop icon and so on, but when I look at the log I get this error:

2016-05-18 20:51:53> 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\Test User\AppData\Local\MyProject\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()
2016-05-18 20:51:53> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Test User\AppData\Local\MyProject\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.d__3f.MoveNext()
2016-05-18 20:51:53> CheckForUpdateImpl: Reading RELEASES file from C:\Users\Test User\AppData\Local\SquirrelTemp
2016-05-18 20:51:53> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch

If anyone could tell me what this error means and possibly how I can fix it, I would very much appreciate it.

Most helpful comment

@albertsuchvi @paulcbetts Confirmed. I disabled the Antivirus (McAfee) and the extract worked like a charm.

All 30 comments

@TobLoef The staging message is just a warning, but in general it's a canary that this user's LocalAppData folder can't be written to, which is the Nr. 1 cause that Squirrel fails

@paulcbetts Ah, good to know. It appears that the folder in the LocalAppData folder is getting created and contains a lot of files, so it seems to be working. Since nothing happens after Setup.exe is done and I cannot launch the application, this is then likely to be a bug in my own code, right? If that's the case, sorry for wasting your time, I just noticed the stacktrace and thought that could be the reason.

Maybe? If you share the whole log we can tell

I'll just close the issue for now. Maybe I'll reopen it, but for now I'll just assume that my own code is at fault.

@paulcbetts I am getting a similar issue regarding this.

2016-05-22 23:34:33> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\patod\AppData\Local\electron-app\packages\RELEASES'.

2016-05-22 23:34:45> IEnableLogger: Failed to install package to app dir: System.AggregateException: One or more errors occurred. ---> System.IO.IOException: Access to the path 'resources' is denied.

Also I am unable to replicate this issue in any other system. I have tried it on 3 more windows 10 systems with admin / non admin accounts its working for them. Any idea what's going wrong here?

Target platform:
Windows 10 64bit

Build Platform:
Windows 8.1 64bit

Full log:

2016-05-22 23:34:33> Program: Starting Squirrel Updater: --install .
2016-05-22 23:34:33> Program: Starting install, writing to C:\Users\patod\AppData\Local\SquirrelTemp
2016-05-22 23:34:33> Program: About to install to: C:\Users\patod\AppData\Local\electron-app
2016-05-22 23:34:33> 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\patod\AppData\Local\electron-app\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()
2016-05-22 23:34:33> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\patod\AppData\Local\electron-app\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__3f.MoveNext()
2016-05-22 23:34:33> CheckForUpdateImpl: Reading RELEASES file from C:\Users\patod\AppData\Local\SquirrelTemp
2016-05-22 23:34:33> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2016-05-22 23:34:33> ApplyReleasesImpl: Writing files to app directory: C:\Users\patod\AppData\Local\electron-app\app-0.5.12
2016-05-22 23:34:45> IEnableLogger: Failed to install package to app dir: System.AggregateException: One or more errors occurred. ---> System.IO.IOException: Access to the path 'resources' is denied.
   at System.IO.DirectoryInfo.MoveTo(String destDirName)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<>c__DisplayClassb3.<>c__DisplayClassb5.<installPackageToAppDir>b__ad(DirectoryInfo subdir)
   at Squirrel.Utility.<>c__DisplayClass18`1.<>c__DisplayClass1a.<ForEachAsync>b__17()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass1e`1.<>c__DisplayClass20.<<ForEachAsync>b__1d>d__22.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 Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<>c__DisplayClassb3.<installPackageToAppDir>b__ac(DirectoryInfo ld)
   at Squirrel.EnumerableExtensions.ForEach[TSource](IEnumerable`1 source, Action`1 onNext)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<<installPackageToAppDir>b__a9>d__b7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__50`1.MoveNext()
---> (Inner Exception #0) System.IO.IOException: Access to the path 'resources' is denied.
   at System.IO.DirectoryInfo.MoveTo(String destDirName)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<>c__DisplayClassb3.<>c__DisplayClassb5.<installPackageToAppDir>b__ad(DirectoryInfo subdir)
   at Squirrel.Utility.<>c__DisplayClass18`1.<>c__DisplayClass1a.<ForEachAsync>b__17()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass1e`1.<>c__DisplayClass20.<<ForEachAsync>b__1d>d__22.MoveNext()<---

2016-05-22 23:34:45> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.IO.IOException: Access to the path 'resources' is denied.
   at System.IO.DirectoryInfo.MoveTo(String destDirName)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<>c__DisplayClassb3.<>c__DisplayClassb5.<installPackageToAppDir>b__ad(DirectoryInfo subdir)
   at Squirrel.Utility.<>c__DisplayClass18`1.<>c__DisplayClass1a.<ForEachAsync>b__17()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass1e`1.<>c__DisplayClass20.<<ForEachAsync>b__1d>d__22.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 Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<>c__DisplayClassb3.<installPackageToAppDir>b__ac(DirectoryInfo ld)
   at Squirrel.EnumerableExtensions.ForEach[TSource](IEnumerable`1 source, Action`1 onNext)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<<installPackageToAppDir>b__a9>d__b7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__50`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<ApplyReleases>d__7b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.UpdateManager.<FullInstall>d__f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__38.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.AggregateException: One or more errors occurred. ---> System.IO.IOException: Access to the path 'resources' is denied.
   at System.IO.DirectoryInfo.MoveTo(String destDirName)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<>c__DisplayClassb3.<>c__DisplayClassb5.<installPackageToAppDir>b__ad(DirectoryInfo subdir)
   at Squirrel.Utility.<>c__DisplayClass18`1.<>c__DisplayClass1a.<ForEachAsync>b__17()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass1e`1.<>c__DisplayClass20.<<ForEachAsync>b__1d>d__22.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 Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<>c__DisplayClassb3.<installPackageToAppDir>b__ac(DirectoryInfo ld)
   at Squirrel.EnumerableExtensions.ForEach[TSource](IEnumerable`1 source, Action`1 onNext)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<<installPackageToAppDir>b__a9>d__b7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__50`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<ApplyReleases>d__7b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.UpdateManager.<FullInstall>d__f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Squirrel.Update.Program.<Install>d__38.MoveNext()
---> (Inner Exception #0) System.IO.IOException: Access to the path 'resources' is denied.
   at System.IO.DirectoryInfo.MoveTo(String destDirName)
   at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClassaf.<>c__DisplayClassb3.<>c__DisplayClassb5.<installPackageToAppDir>b__ad(DirectoryInfo subdir)
   at Squirrel.Utility.<>c__DisplayClass18`1.<>c__DisplayClass1a.<ForEachAsync>b__17()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<>c__DisplayClass1e`1.<>c__DisplayClass20.<<ForEachAsync>b__1d>d__22.MoveNext()<---
<---

Any help here? Can we re-open this issue?

I have been seeing the same issue when installing an app on a PC that has antivirus scan enabled, and I think I have an explanation for the problem:
In the process of unpacking the .nupkg, the contents of the dircetory under lib\net45 is moved up to the package directory. Now, if the virus scan is still scanning files and has some of the files under that directory open, the move fails (hence the System.IO.IOException: Access to the path 'resources' is denied error). My guess is that this conflict may happen for other reasons, but I have seen it with an antivirus (and I have been able to reproduce it by manually openning some of the files in teh directory to be moved)
I have implemented a 'fix': retrying the move operations after sleeping for a short time. (Of course, setting a max on the number of retrials...)
The fix is working for me. Let me know if you want a pull request....

@albertsuchvi Interesting, I'd actually rather just rig the unzip target paths, but can you show me your change anyways?

@albertsuchvi @paulcbetts Confirmed. I disabled the Antivirus (McAfee) and the extract worked like a charm.

Same issue here.

@albertsuchvi can you push the fix to a fork?

.@shoaibmerchant , I've been out of office for a few days, I need to do some other stuff and the reveiw the changes. In a couple of days I will be bale to push iy

Alright thanks!

This happens for me too (trying to install Slack); it's only because my work laptop came with the POS McAffee; uninstalled it and just deferring to Windows Defender solved it, so yeah, it does look like it's probably an I/O issue where the virus scanner jumps on the files.

This is currently closed, but it doesn't look like the core issue was addressed. Can we at least get a link to the workaround? Many of our users are on corporate networks and can't disable their virus protection without admin interventions. This defeats one of the purposes of using electron. Looks like there is just a delay in reading the directory needed?

There's no workaround for antivirus, other than proper signing

@paulcbetts we are facing to the same problem although the binaries are properly signed

@paulcbetts I'm speaking about this:

"In the process of unpacking the .nupkg, the contents of the dircetory under lib\net45 is moved up to the package directory. Now, if the virus scan is still scanning files and has some of the files under that directory open, the move fails (hence the System.IO.IOException: Access to the path 'resources' is denied error). My guess is that this conflict may happen for other reasons, but I have seen it with an antivirus (and I have been able to reproduce it by manually opening some of the files in teh directory to be moved)
I have implemented a 'fix': retrying the move operations after sleeping for a short time. (Of course, setting a max on the number of retrials...)
The fix is working for me. Let me know if you want a pull request...."

Digital signing probably wouldn't fix this issue if the issue is that the virus protector has locked some files.

cc @albertsuchvi

"In the process of unpacking the .nupkg, the contents of the dircetory under lib\net45 is moved up to the package directory. Now, if the virus scan is still scanning files and has some of the files under that directory open, the move fails

Ah, I fixed this awhile ago by eliminating the move altogether

Ahh...ok...I'll update to the latest version and see if it goes away.

I have a similar problem #885. I am using the latest NuGet release (1.4.4) but see reference to 1.4.5 in the source code. Does 1.4.5 fix this issue?

@hvassbotn Thanks for the link to this issue. Phil

I have this exact problem. In 2 cases, I asked our customers to delete our app's folder under LocalAppData and try again, and this worked for them. But other were not lucky.

Does updating to the latest, 1.5.0, fix this?

Still getting this issue

I am also getting the issue. Is there any other fix for this other than disabling the antivirus? (it worked, but it's not a very practical solution for some users)

@muhammetalay Thanks, I did the same and it install correctly.

@muhammetalay That worked for me too, thank you!!

Great!! It works after:

  1. disable Antivirus
  2. Delete %userprofile%\AppData\Local\postman & %userprofile%\AppData\Local\squirrel

the problem occur when include .gif
Squirrel --releasify Myapp.1.0.10.nupkg -g .\loading.gif

Hi I am getting this error. do you have any idea?

2018-06-29 08:27:46> Program: Starting Squirrel Updater: --install .
2018-06-29 08:27:46> Program: Starting install, writing to C:\Users\optimus\AppData\Local\SquirrelTemp
2018-06-29 08:27:46> Program: About to install to: C:\Users\optimus\AppData\Local\DIPS_Form_Designer
2018-06-29 08:27:46> Program: Install path C:\Users\optimus\AppData\Local\DIPS_Form_Designer already exists, burning it to the ground
2018-06-29 08:27:47> 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\optimus\AppData\Local\DIPS_Form_Designer\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()
2018-06-29 08:27:47> CheckForUpdateImpl: Failed to load local releases, starting from scratch: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\optimus\AppData\Local\DIPS_Form_Designer\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.d__2.MoveNext()
2018-06-29 08:27:47> CheckForUpdateImpl: Reading RELEASES file from C:\Users\optimus\AppData\Local\SquirrelTemp
2018-06-29 08:27:47> CheckForUpdateImpl: First run or local directory is corrupt, starting from scratch
2018-06-29 08:27:47> ApplyReleasesImpl: Writing files to app directory: C:\Users\optimus\AppData\Local\DIPS_Form_Designer\app-1.0.0
2018-06-29 08:27:48> LogHost: Rigging execution stub for DIPS.ArenaEhr.Designers.Wpf.Shell_ExecutionStub.exe to C:\Users\optimus\AppData\Local\DIPS_Form_Designer\DIPS.ArenaEhr.Designers.Wpf.Shell.exe
2018-06-29 08:27:50> ApplyReleasesImpl: Squirrel Enabled Apps: []
2018-06-29 08:27:50> ApplyReleasesImpl: No apps are marked as Squirrel-aware! Going to run them all
2018-06-29 08:27:50> ApplyReleasesImpl: About to create shortcuts for DIPS.ArenaEhr.Designers.Wpf.Shell.exe, rootAppDir C:\Users\optimus\AppData\Local\DIPS_Form_Designer
2018-06-29 08:27:50> ApplyReleasesImpl: Creating shortcut for DIPS.ArenaEhr.Designers.Wpf.Shell.exe => C:\Users\optimus\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\DIPS AS\DIPS EPJ/PAS.lnk
2018-06-29 08:27:51> IEnableLogger: Can't write shortcut: C:\Users\optimus\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\DIPS AS\DIPS EPJ/PAS.lnk: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\optimus\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\DIPS AS\DIPS EPJ\PAS.lnk'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass5_0.b__1()
at Squirrel.Utility.<>c__DisplayClass8_0.b__0()
at Squirrel.Utility.RetryT
at Squirrel.Utility.Retry(Action block, Int32 retries)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass5_0.b__0()
at Squirrel.Utility.LogIfThrows(IFullLogger This, LogLevel level, String message, Action block)
at Squirrel.UpdateManager.ApplyReleasesImpl.CreateShortcutsForExecutable(String exeName, ShortcutLocation locations, Boolean updateOnly, String programArguments, String icon)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass10_0.b__4(String x)
at System.Collections.Generic.List1.ForEach(Action1 action)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__42.MoveNext()
2018-06-29 08:27:51> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\optimus\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\DIPS AS\DIPS EPJ\PAS.lnk'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalDelete(String path, Boolean checkHost)
at System.IO.File.Delete(String path)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass5_0.b__1()
at Squirrel.Utility.<>c__DisplayClass8_0.b__0()
at Squirrel.Utility.RetryT
at Squirrel.UpdateManager.ApplyReleasesImpl.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.UpdateManager.ApplyReleasesImpl.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.UpdateManager.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at Squirrel.Update.Program.d__4.MoveNext()<---

I'm encountering the same issue, and it only happens if I replace the loading gif with a custom one.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

patrickklaeren picture patrickklaeren  路  4Comments

shiftkey picture shiftkey  路  4Comments

don-smith picture don-smith  路  5Comments

Andrew-Hanlon picture Andrew-Hanlon  路  6Comments

dennisameling picture dennisameling  路  3Comments