Windows 11 is complaining about unknown publisher - SOLVED lazarus / 34-Windows ---------------------------------------------------------------------- Knipfty · 2022-02-22 20:21 Hi I downloaded and installed latest version of Lazarus 2.2.0 and FPC along with it 3.2.2.  Win 64 When I dbl click on the exe fil, Windows pops up asking "Do you want to allow this app from an unknown publisher to make changes to your device?" The app does nothing at this point.  It contains some menu items and none of them have any events attached to them.  The app runs and then I can click the little "x" in the upper right-hand corner.  That's it. I can make the pop up go away by disabling User Account Controls, but that seems silly to have to do this. What Am I missing? Edit: I have also tried changing the properties of the .exe file to run as administrator.  Did not help. SOLVED: Combination of two things. 1. Martin_FR suggestion about execution level.  Changing it to invoker. 2. Moving the project off OneDrive to Drive C under my User directory. Thanks! ---------------------------------------------------------------------- winni · 2022-02-22 22:22 Quote from: Knipfty on February 22, 2022, 09:21:03 pm What Am I missing? Hi! You are not missing anything. That is a Windows desease since Win2000 You can disable this Popup with the checkbox "Don't ask me again" in the Popup. Winni ---------------------------------------------------------------------- wp · 2022-02-22 22:24 I've never seen this. ---------------------------------------------------------------------- dsiders · 2022-02-22 23:02 Quote from: wp on February 22, 2022, 11:24:56 pmI've never seen this. I get it for any file downloaded from SourceForge. I use File > Properties > Security > Unblock. ---------------------------------------------------------------------- egsuh · 2022-02-22 23:23 Isn’t it one of Windows securiy policies? There serm authorized publishers like Microsoft Appstore, etc. ---------------------------------------------------------------------- Knipfty · 2022-02-23 00:38 QuoteI use File > Properties > Security > Unblock. I don't see this option.  Using Win 11. Security only shows Full ControlModifyRead & executeReadWriteSpecial permissionsAll are checked except Special.  I played with that one and don't see anything related to unblock. Further, this also prevents the debugger from running as that returns error 740. I don't see how I can use this product given this limitation.  I can't be the only person to suffer from this. ---------------------------------------------------------------------- dseligo · 2022-02-23 03:01 Try to create new project and try to run it. I attached empty project (only a button on a form), you can try this one too. Maybe you messed something in the options of the project. I tried to run this one from Lazarus and from Windows Explorer. Where is your exe located (which directory)? ---------------------------------------------------------------------- dsiders · 2022-02-23 03:11 Quote from: Knipfty on February 23, 2022, 01:38:23 amQuoteI use File > Properties > Security > Unblock. I don't see this option.  Using Win 11. Security only shows Full ControlModifyRead & executeReadWriteSpecial permissionsAll are checked except Special.  I played with that one and don't see anything related to unblock. Further, this also prevents the debugger from running as that returns error 740. I don't see how I can use this product given this limitation.  I can't be the only person to suffer from this. I don't have Win11, but on Win8 the option I speak of is on the General tab at the bottom of the dialog. ---------------------------------------------------------------------- dbannon · 2022-02-23 04:49 I get that question about unknown publisher during install but once installed, its fine. Maybe the installer does something to reassure Windows its OK ? Davo ---------------------------------------------------------------------- winni · 2022-02-23 08:40 Hi! There is some kind of digital signature inside the apps. This enshures Windows that the app is ok. If this signature is missing you get this anoying popup. Sometimes even Microsoft forgets to sign its own apps. Winni ---------------------------------------------------------------------- wp · 2022-02-23 09:14 Quote from: Knipfty on February 22, 2022, 09:21:03 pmI downloaded and installed latest version of Lazarus 2.2.0 and FPC along with it 3.2.2.  Win 64 When I dbl click on the exe fil, Windows pops up asking "Do you want to allow this app from an unknown publisher to make changes to your device?" The app does nothing at this point.  It contains some menu items and none of them have any events attached to them.  The app runs and then I can click the little "x" in the upper right-hand corner.  That's it. What app/exe are you talking about? The installer? Well, you say you "installed" Lazarus - so probably not the installer. The lazarus.exe? But none of the menu items "have any events attached to them" - so probably no again. It must be your own application - right? What is you antivirus setup? Which antivirus scanner are you using? From a Lazarus/FPC developer's point of view these programs are almost as bad as the viruses themselves. Always put your Lazarus, fpc and project directories into folders which are on the antivirus white- list. ---------------------------------------------------------------------- egsuh · 2022-02-23 09:17 I think he experienced it at INSTALLATION. It is asked at many installations, probably since Windows 10. ---------------------------------------------------------------------- wp · 2022-02-23 09:46 If he sees this message at installation then it cannot be avoided in a reasonable way. The only way to avoid it is to turn off UAC - but this is not "reasonable". ---------------------------------------------------------------------- mike_p · 2022-02-23 10:27 Might this be because (from the screenshot in post#5) it seems the OP is using his OneDrive folder? ---------------------------------------------------------------------- Martin_fr · 2022-02-23 10:28 Quote from: Knipfty on February 22, 2022, 09:21:03 pmI downloaded and installed latest version of Lazarus 2.2.0 and FPC along with it 3.2.2.  Win 64 When I dbl click on the exe fil, Windows pops up asking "Do you want to allow this app from an unknown publisher to make changes to your device?" The app does nothing at this point.  It contains some menu items and none of them have any events attached to them.  The app runs and then I can click the little "x" in the upper right-hand corner.  That's it. This is your own application?  An empty "Form1" / project1.exe ? => The downloaded lazarus installer will ask this question => because it needs admin rights, for some of the install parts (if you choose to install qt5 or ssleay system wide). But your own app usually does not. Before compiling your app, check: - Menu: Project > Project Options - Page Application: "use manifest" => drop-down "Execution level". * It should be "as invoker" * If it is "highest" or "admin" you will get that question. The question has 2 parts: QuoteDo you want to allow this app from an unknown publisher to make changes to your device? 1) unknown publisher This is because the app is not signed. If you download from big companies, it will say "from company name". But for that you need to buy a certificate for your name. 2) make changes to your device This is because it requires admin rights. Independent of this (at least for unsigned / not sure about signed), if you upload your app, and the download it => Windows will ask, if you want to execute the app, because it comes from another computer. ---------------------------------------------------------------------- Martin_fr · 2022-02-23 10:44 Quote from: Martin_fr on February 23, 2022, 11:28:16 amQuote from: Knipfty on February 22, 2022, 09:21:03 pmI downloaded and installed latest version of Lazarus 2.2.0 and FPC along with it 3.2.2.  Win 64 When I dbl click on the exe fil, Windows pops up asking "Do you want to allow this app from an unknown publisher to make changes to your device?" The app does nothing at this point.  It contains some menu items and none of them have any events attached to them.  The app runs and then I can click the little "x" in the upper right-hand corner.  That's it. This is your own application?  An empty "Form1" / project1.exe ? One of your screen shots indicates it's an installer => so not an "the app does nothing". Note, the question is not (necessarily) about what the app does in that very moment. It is about what the app will do while running. Actually "will be able to do". An app can be "marked" as "this app will do stuff that requires privileges". And then Windows asks when the app is started. The app may then use those privileges or may not use them.... "asks when the app is started" => some installers will ask at a later time, while they are running. If you build this installer yourself, then check the software you use for the installer. It likely has an option to control the required privileges. ---------------------------------------------------------------------- SymbolicFrank · 2022-02-23 10:56 If you're not using an expensive Microsoft SmartScreen compliant certificate to sign an application, Windows won't run it if it comes from the internet or a network share, unless it's very popular. https://www.howtogeek.com/thumbcache/2/200/ef9dff4184c069c971dd503114d e11f2/wp-content/uploads/2017/05/img_59127adff18fb.png (Or something like that, depending on your Windows version and settings.) Is that the problem?