Alcatel
Freshman Member
Posts: 89
OS: Windows 10 Enterprise LTSC IoT 2021
Theme: Windows 7 Aero
CPU: i9-8950HK
RAM: 32GB DDR4
GPU: Nvidia Quadro P3200
|
Post by Alcatel on Oct 15, 2022 19:11:25 GMT -8
I've wanted to get rid of the metro "This app can't run on your PC" dialog box for a long time and have tried a bunch of things but can't figure it out. Where is this stored? The kernel? In WinPE in Windows 10 it does not have this rather it shows a Win32 dialog box though it says the same thing, rather than %1 is not a valid Win32 application. Registry maybe? I checked a lot of MUIs in RH hoping it would help but nothing
|
|
|
Post by TechSalt on Oct 16, 2022 3:47:10 GMT -8
It's probably not stored in this file but renaming Windows.UI.Immersive.dll seems to get rid of the dialog entirely.
|
|
|
Post by TechSalt on Oct 16, 2022 3:55:15 GMT -8
Did some extra research: It seems the string is stored in the kernel32's MUI. My guess is that there is some wrapper that converts this to a metro msgbox but since WinPE doesn't have it it fallbacks to a Win32 msgbox.
|
|
|
Post by TechSalt on Oct 16, 2022 4:04:16 GMT -8
|
|
|
Post by TechSalt on Oct 16, 2022 4:08:53 GMT -8
This happens when you load a non Win32 executable with XP x64's shell32
|
|
|
Post by OrthodoxWin32 on Oct 16, 2022 4:52:03 GMT -8
I do not know if it can help, but during the execution of an incompatible program in the console or winfile, I get this window instead of the metro window :
|
|
Alcatel
Freshman Member
Posts: 89
OS: Windows 10 Enterprise LTSC IoT 2021
Theme: Windows 7 Aero
CPU: i9-8950HK
RAM: 32GB DDR4
GPU: Nvidia Quadro P3200
|
Post by Alcatel on Oct 16, 2022 14:15:50 GMT -8
Thank you for your replies guys I'll check this out when I get home. OrthodoxWin32, yeah, when you execute a program through the command prompt it gets executed a different way which avoids SOME of the metro prompts. Files also get executed in this alternate way through 7-zip. You can get the error "the image is valid but for a different machine type" like in Windows 7 when you execute files this way. Idk if it's possible to make files from explorer execute this way, I tried a bunch of things a while ago. I tried making exes execute with a batch file and a batch to exe converted exe by editing the exefile entry in HKCR but it didn't work. Also for a similar thing I tried making another file extension execute a vbs but Windows just refuses to open files with a vbs. However it still doesn't get rid of the metro dialog if you try and execute a 0-byte file or if you try and execute something with an MZ header but not supposed to be executed (like a dll or cpl). So this trick only works for things that would work that are 16 bit programs or files interpreted as such and like arm programs. I guess I will try renaming some dlls and replacing MUIs with "This app can't run on your PC" with "%1 is not a valid Win32 application." Idk if it would show the application name in the dialog box
|
|
Alcatel
Freshman Member
Posts: 89
OS: Windows 10 Enterprise LTSC IoT 2021
Theme: Windows 7 Aero
CPU: i9-8950HK
RAM: 32GB DDR4
GPU: Nvidia Quadro P3200
|
Post by Alcatel on Oct 16, 2022 17:01:49 GMT -8
Well, I tried renaming all Windows shell DLLs and replacing the shell32 with one from WinPE and still didn't work, I got rid of the metro box but it just shows nothing, no Win32 dialog. It must be a registry value
|
|
|
Post by ihatemetro on Oct 16, 2022 19:14:46 GMT -8
Did some extra research: It seems the string is stored in the kernel32's MUI. My guess is that there is some wrapper that converts this to a metro msgbox but since WinPE doesn't have it it fallbacks to a Win32 msgbox. Actually, it's stored in the last file, pcaui.dll.mui. Though I'm not sure if this information is helpful or not. The other files were there probably because they also contain "This app can't" in other strings.
|
|
|
Post by ihatemetro on Oct 16, 2022 19:20:49 GMT -8
Well, I tried renaming all Windows shell DLLs and replacing the shell32 with one from WinPE and still didn't work, I got rid of the metro box but it just shows nothing, no Win32 dialog. It must be a registry value Have you tried doing anything with pcaui.dll? If not, then try replacing it with the one from Windows PE. (Though I'm not sure if it'll do anything).
|
|
|
Post by TechSalt on Oct 16, 2022 21:00:12 GMT -8
Did some extra research: It seems the string is stored in the kernel32's MUI. My guess is that there is some wrapper that converts this to a metro msgbox but since WinPE doesn't have it it fallbacks to a Win32 msgbox. Actually, it's stored in the last file, pcaui.dll.mui. Though I'm not sure if this information is helpful or not. The other files were there probably because they also contain "This app can't" in other strings. It’s also stored there but removing it does nothing
|
|