Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update.exe is missing #386

Closed
joaomoreno opened this issue Jul 16, 2015 · 11 comments
Closed

Update.exe is missing #386

joaomoreno opened this issue Jul 16, 2015 · 11 comments

Comments

@joaomoreno
Copy link

From a VSCode user

I ran into this problem several times before tracking it down. Here's the sequence:

  • Uninstall VSCode
  • Without rebooting, install VSCode

Result: Everything seems fine. VSCode runs OK.
Sometime later reboot your machine.
Result: Update.exe gets deleted and you'll get the error:
'"C:\Users\Bret\AppData\Local\Code\bin..\Update.exe"' is not recognized as an internal or external command,
Note that that other files are still there. Just this one is gone.
That's problem # 1.

How does one get out of this situation? I attempted before, multiple times, by trying once again to reinstall VSCode. But at this point uninstalling VSCode fails completely (it just does nothing if you attempt to uninstall, while Update.exe is gone).
That's problem # 2.

The only way I could get it to reinstall before is by installing new, then uninstalling, the installing again. > That seemed to work for a while. But then the problem just repeated itself after the next reboot.

@marwanhilmi
Copy link

I am noticing this happen on some user's systems as well - it appears for whatever reason after a reboot, Update.exe disappears and desktop shortcuts pointing to it break. Is there any reason for Update.exe to just disappear - perhaps getting swept up by Windows Defender or something? I asked users to check their AV logs but it never appears to find/flag Update.exe, it simply disappears.

Any ideas - have you seen this behavior @paulcbetts ?

@anaisbetts
Copy link
Contributor

We've heard a few reports of this too and have never been able to track down why :(

@ionoy
Copy link
Contributor

ionoy commented Sep 9, 2015

Same problem here.
Created clean Windows 7 SP1 virtual machine and installed my app. After the reboot Update.exe is missing.

@thughes
Copy link
Contributor

thughes commented Sep 10, 2015

Just chiming in that I saw this once on a Windows 10 virtual machine after rebooting. The Update.exe file actually existed, but it was zero bytes.

@Thieum
Copy link
Contributor

Thieum commented Sep 15, 2015

👍 Happened to some of my users too on Windows 7 x86 - updates on network share. Nothing appears in antivirus.

@wballet
Copy link

wballet commented Oct 9, 2015

Hi @paulcbetts

I think this explains the mysterious disappearance of our update.exe. After I uninstall my application, the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations (https://technet.microsoft.com/en-us/library/cc960241.aspx) contains the following entries:

...
\??\C:\Users\<user>\AppData\Local\<app>\Update.exe

\??\C:\Users\<user>\AppData\Local\<app>

...

The entries in this registry key are renamed after rebooting, but an empty line after an entry will delete that entry.

Now, if I uninstall my application and subsequently reinstall it, these entries are not cleaned up and will effectively remove the update.exe on the next reboot.

Hope this helps...

@UVLabs
Copy link

UVLabs commented Oct 10, 2015

Yep...gets deleted...scared to go into production

@juturu
Copy link

juturu commented Oct 14, 2015

@paulcbetts, following is one scenario where i hit this bug.

Scenario:

  1. Install the app
  2. Uninstall the app in such a way uninstall fails with following errors
    2015-10-14 09:53:39> Utility: safeDeleteFileAtNextReboot: failed - %localappdata%\Foo\Update.exe - 5
    2015-10-14 09:53:39> Utility: safeDeleteFileAtNextReboot: failed - %localappdata%\Foo\app-0.x.x\content_resources_200_percent.pak - 5
  3. Install the app again
  4. Restart the machine

You will hit update.exe missing and the files for which safeDeleteFileAtNextReboot failed.
So, on reinstall of the app (step 3) we should undo the file deletion on next reboot.

@anaisbetts
Copy link
Contributor

Yeah, so, it sounds like if users incorrectly run Setup.exe as an Elevated UAC account, we'll end up actually succeeding at the MoveFile call, which causes Problems

@anaisbetts
Copy link
Contributor

This is fixed in #466 by removing the MoveFile call

@mgnslndh
Copy link

mgnslndh commented Jun 2, 2016

I've seen this issue with a missing update.exe using <package id="squirrel.windows" version="1.4.0" />

This was in production so I'm guessing the machine has not been rebooted since uninstall/install during last deployment, until today.

@Squirrel Squirrel deleted a comment from Helpbot643 Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants