"Program may need admin permissions" lazarus / 67-Windows ---------------------------------------------------------------------- Ñuño_Martínez · 2017-01-11 12:56 Actually I'm not sure it is a problem with FPC but I need to find the culprit. I've found some programs I made works perfectly on Windows 7 64bit, but when I close them a window appear saying that "This program may need administrator privileges."* allowing me to restart the application as administrator or label that program with a "This program works perfectly". AFAIK the programs are compiled with FPC 3.0.0 as 32bit (I tried to build 64bit applications but it was impossible, is it?).  May be a newer compiler would fix this?  Or may be it is because they're running in 32bit? May be the origin of the problem is the Allegro library I'm using? _____________________________ * I'm Spanish so the message in English may be different than my translation. ---------------------------------------------------------------------- Thaddy · 2017-01-11 13:00 No. Your problem is that you have to add a manifest resource. ---------------------------------------------------------------------- Ñuño_Martínez · 2017-01-11 13:04 That's new for me.  Is there a way to do it easily from command line (e.g. makefile)?  I should investigate.  Is there a wiki page or something?  A few searching doesn't find something useful (yet)... ---------------------------------------------------------------------- Thaddy · 2017-01-11 13:06 Quote from: Ñuño_Martínez on January 11, 2017, 02:04:22 pmThat's new for me.  Is there a way to do it easily from command line (e.g. makefile)?  I should investigate.  Is there a wiki page or something?  A few searching doesn't find something useful (yet)... Windows 7 and up and forced on windows 10: Code: XML  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i         Executable                                                                                         See here for instructions: http://stackoverflow.com/questions/14703013/adding-manifest-for-admin- rights-request ---------------------------------------------------------------------- lainz · 2017-01-11 13:26 You must also add HighDPI stuff in the manifest if you don't want your visual (Allegro) application look blurry on HighDPI settings. And optional compatibility for each Windows OS. manifest.xml Code: XML  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i                                                                                                                   true                        manifest.rc Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i 1 24 "manifest.xml" ---------------------------------------------------------------------- Thaddy · 2017-01-11 13:40 Tnx for the addition and I should have stressed forced for windows 10.X.. For newly installed software only, for some reason. It leaves existing programs to work after upgrading. BTW: Your manifest should use AsInvoker..... That means that the application has the same rights as the user that started it. I ---------------------------------------------------------------------- Ñuño_Martínez · 2017-01-11 15:54 Thank you. After some testing (lainz manifest requests for administrator privileges when executing), I have this manifest: Code: XML  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i         Executable                                                                                                                                                              true