<p dir="auto">Can it be possible for the User Access Control permission prompt to be bypassed if PowerToys is configured to auto-start start-up user login as administrator?  (I would do it myself, but my coding skills are a bit rusty.  :-( )</p>
<p dir="auto">WIndows 10 Pro N / 1909</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 18363.836
PowerToys version: v0.18.0
PowerToy module for which you are reporting the bug (if applicable): N/A"><pre class="notranslate"><code class="notranslate">Windows build number: 18363.836
PowerToys version: v0.18.0
PowerToy module for which you are reporting the bug (if applicable): N/A
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Have v0.17.0 installed, configured to "Always run as administrator" and "Run at startup", and running. -&gt; Download and run "PowerToysSetup-0.18.0-x64.msi". -&gt; Click next until it's done updating. -&gt;right-click/settings on corner icon -&gt; turn off the new stuff that's not FancyZones and wasn't previously existing for the update process to carry over -&gt; restart the computer -&gt; log-in -&gt; right away, UAC prompt for starting PowerToys</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Previously, PowerToys was starting itself as admin without triggering UAC</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">My hypothesis: the PowerToys folder in Task Scheduler being empty after the update suggests that the update process Uninstalled the previous version, and took the scheduled task with it that circumvents the UAC prompt for running as admin, and the new installer never puts it back, despite my settings warranting it being there (to avoid the annoyance of a UAC prompt every boot).</p>
<p dir="auto">What I did to fix it was: go to settings, turn off "Always run as admin" -&gt; turn off "Run at startup" -&gt; exit settings -&gt; exit program thru corner icon right-click -&gt; start program thru start menu -&gt; back to settings -&gt; restart as admin  -&gt; enable "Always run as admin" -&gt; enable "run at startup" -&gt; refresh Task Scheduler and wha-la, PowerToys has now replaced the Task that circumvents a UAC prompt, that it removed while updating, but failed to regenerate it upon install of both v0.18.0 and v0.18.1, despite it succeeding in bringing over my settings that schedule the task in the first place.</p>
<p dir="auto">Seems like you just need to either A) add a step to the end of the installer that checks for "always run as admin" &amp;&amp; "run at startup" being enabled in my settings it saves/copies from my previous install, and then regenerate the task. B) check for the task before running the uninstall and, if it was there, regenerate it anytime after the Uninstaller removes it.</p>
<p dir="auto">I assume the installer for the new version is just running the Uninstaller for the old one, so depending on your level of concern for "maximum lean-ness", you could also go deep for option C) that would build a flag into the Uninstall that would skip removing the existing task, if the Updater/Installer tells it to do so, after checking whether the task already exists (because, you know, maybe someone loves UAC prompts and removed it themselves and they'd be annoyed if you put it back after I removed it on purpose). I assume you know why just having the Uninstaller check would be no good (because it wouldn't know on it's own whether it's being run to forever-uninstall, or just as a means to clean reinstall).</p>
<p dir="auto">I haven't looked at your code to know anything about what you have going on, so this is all just conjecture and my relishing in the opportunity to talk programming logistics. Certainly, I'm not trying to insult your intelligence, if any of the suggestions where immediately obvious. Or, if a all-around better option is, I'd be interested to know what you end up doing (if this is even something you'll remember to fix by the time it gets priority).</p>
<p dir="auto">Alright, <g-emoji class="g-emoji" alias="v" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/270c.png">✌</g-emoji>.</p>
<p dir="auto">P.S. Thanks for making the program I've wanted for as far back as I can remember (FancyZones)!</p>
<p dir="auto">P.P.S. I'm not going to make a seperate thread for this but, you should know, if you don't already: before v0.18.0, dragging a window and then right-clicking to bring up the zone pop-up used to be smooooth as butter and happen instantly. After v0.18.0 though, the moment I press right-click while dragging, my entire beefy machine absolutely sh*ts the bed for like 2 whole seconds while PowerToys summons the zone overlays. That'd be cool if you ever fixed that.</p>
<p dir="auto">Also, please let me assign a key/combo while dragging/dropping on the zone overlays that will "cycle thru the layers" of zones I have set up that are overlapping each other where my mouse pointer is, so i can drop my window on the zone that is underneath the zone that's on top, which is the only one FancyZones will highlight as a drop target.</p>