AutoUpdater.NET icon indicating copy to clipboard operation
AutoUpdater.NET copied to clipboard

Can not run extract when main app run on Admin right

Open zaiplanet opened this issue 4 years ago • 1 comments

File app.manifest in main app is set as below: <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

if main app run normal without admin rights, everything works fine. if main app run as Admin right:

  • Check update and download complete.
  • But when extract file is freeze at Waiting for application to exit... and main app still running and main app do not exit Please check this

image

zaiplanet avatar Dec 11 '21 08:12 zaiplanet

I had a similar issue. Turned out I have a FormClosed & FormClosing event that cancelled the event. So it never shutdown. I solved it by unsubscribing from those events in the AutoUpdater.ApplicationExitEvent before calling Application.Exit().

mosoftwareenterprises avatar May 24 '22 13:05 mosoftwareenterprises

This can only happen if the app is unable to exit for some reason. You have to handle ApplicationExitEvent as shown here and make sure it exists properly.

ravibpatel avatar Sep 04 '22 10:09 ravibpatel