Every time a new Docker Desktop comes out, I go to install the update and get:
fork/exec C:\Users\heaths\AppData\Local\Temp\DockerDesktopUpdates\Docker Desktop Installer (220185).exe: The requested operation requires elevation.
It’s entirely possible for you to elevate yourself. If you have a separate process that runs outside the installation folder so that you can update the app, use ShellExecuteEx with the “runas” verb. If you want more security and control, take a look at how the Windows Installer XML toolchain’s burn works. I helped on the elevation story there as well as subsequent hardening when a DLL injection attack was discovered in all LoadLibrary calls on Windows, but the version I worked on and know is older: GitHub - wixtoolset/wix3: WiX Toolset v3.x · GitHub.
It’s not difficult, but what is for most consumers is working around this problem when Docker Desktop is installed and run as a non-elevated user (which anyone should be!). Please do better.