New
#1
Custom file extension not working on Windows 10
I added a custom file extension (".custom" for example) to HKEY_LOCAL_MACHINE\SOFTWARE\Classes, and set its value to "batfile", so it would run as a batch file. This works fine on all my machines, except the one running Windows 10. I get an error: "This app can't run on your PC", when I try to run anything with my custom extension ("file.custom" for example). The solutions online say to disable Windows SmartScreen or enable App Side-loading in the settings, but I do not have a Windows SmartScreen option available and App Side-loading is already enabled. One solution said that if you don't have the Windows SmartScreen option in Settings, then disable it in Windows Defender, but my Windows Defender is already disabled.
I tried changing it's value to "txtfile" and it worked, but I couldn't change it back. Now, any time I make a new file extension, they all open as a text file regardless of what their value is. I've tried restarting the computer. I don't understand what is going on. Can anyone help me solve this issue?