gioma 19 Posted December 14, 2022 Hello everyone, I have an application developed in Delphi 11.2, I changed the DPI Awareness by selecting the "MonitorV2" option, but the change has no effect on the exe generated in that specific folder. If instead I move in othrer folder the generated file then everything works fine. I believe it's the windows cache (in this case windows 11) not allowing to reload the manifest of the file. I tried restarting the OS, but that didn't work. Is there a way to solve this problem? Share this post Link to post
programmerdelphi2k 237 Posted December 14, 2022 maybe clearing "prefetch" infos? in "RUN" (Win+R) type "Prefetch" and see the folder with it 1 Share this post Link to post
gioma 19 Posted December 14, 2022 I just emptied the folder, kept only "Layout.ini" and "PfPre_a24c160c.mkd" but the behavior doesn't change. In that folder the program generated by Delphi doesn't seem to have the right manifest and therefore if I change the resolution it gets deformed. Share this post Link to post
programmerdelphi2k 237 Posted December 14, 2022 (edited) try use "output" project to a folder with privilegies for "any user", and necessary copy your "manifest manually" for test...run it... if ok, use your Project-Deployment to add your manifest and copy it for this folder (RemotePath = ..., ) Edited December 14, 2022 by programmerdelphi2k Share this post Link to post
gioma 19 Posted December 14, 2022 (edited) sorry, I was wrong to answer. Edited December 14, 2022 by gioma wrong thread Share this post Link to post
gioma 19 Posted December 14, 2022 I tried on "C:\" and it works. I tried on "C:\Users\MyUser\OneDrive\Desktop" and it works. i created and tried on "C:\TEST_FT" and it works. It doesn't work where the software was started with a different manifest! Share this post Link to post
David Heffernan 2353 Posted December 14, 2022 Why do you have a manifest file. It should be a linked resource. Delete the .manifest file. Share this post Link to post
gioma 19 Posted December 14, 2022 9 minutes ago, David Heffernan said: Why do you have a manifest file. It should be a linked resource. Delete the .manifest file. I modified the manifest file on the project options, but it is not a file external to the exe. Share this post Link to post
programmerdelphi2k 237 Posted December 14, 2022 (edited) look into your "EXE / RES", search for "manifest" ... see if any "condition" specific to folders in use? => Notepad++ is good for that! Edited December 14, 2022 by programmerdelphi2k Share this post Link to post
David Heffernan 2353 Posted December 14, 2022 (edited) 28 minutes ago, gioma said: I modified the manifest file on the project options, but it is not a file external to the exe I guess I misunderstood when the subject said file manifest. Details are quite important. Edited December 14, 2022 by David Heffernan 1 Share this post Link to post
gioma 19 Posted December 14, 2022 44 minutes ago, programmerdelphi2k said: look into your "EXE / RES", search for "manifest" ... see if any "condition" specific to folders in use? => Notepad++ is good for that! the settings appear to be correct: <asmv3:application> <asmv3:windowsSettings> <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware> <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness> </asmv3:windowsSettings> </asmv3:application> Share this post Link to post