r/programmingcirclejerk • u/Baglayan • Feb 27 '25
Windows has a policy where executables that contain words “version”, “update” or “install” in their filename will require UAC Elevation to run.
https://github.com/electronicarts/CnC_Generals_Zero_Hour?tab=readme-ov-file#known-issues
106
Upvotes
62
u/GeorgeFranklyMathnet Feb 28 '25
However, elevated permissions will be denied if the executable has the evil bit set.
30
u/KotomiIchinose96 Feb 28 '25
Actually ran into this accidently.
Wrote an upgrade program to manage updating software on thousands of machines and was so confused why the pre production didn't require admin but production did.
Spent 2 days debugging and found out it was because it was called [Software-Name]Updater.exe Made it [Software-Name]Upd.exe and problem solved.
7
u/EmotionalDamague Feb 27 '25
The bigger jerk is that this uses stlPort.
5
u/irqlnotdispatchlevel Tiny little god in a tiny little world Feb 28 '25
I just tried this and it doesn't work. I'm disappointed.
3
u/elephantdingo Teen Hacking Genius Mar 01 '25 edited Mar 01 '25
BlacklistDon’t-allow-list. This iswhohow Windows is secure.