Home > Enterprise >  Bypass windows file assignation reset
Bypass windows file assignation reset

Time:01-17

i am developing a music player in C# winforms. My program has code which sets the .mp3 files deafult app to my program.

The code works but everytime it runs, windows resets the app:

screenshot

(dont mind the extension in the image i got it from the internet cuz i wasnt able to screenshot it on my pc)

Is there a way to bypass this reset?

CodePudding user response:

Since Windows 10, you cannot change the default application of a file type programmatically. The user is meant to change by himself the default programs from and only from the OS.

You can see the "Important" note in the MS doc : https://learn.microsoft.com/en-US/windows/win32/shell/default-programs?redirectedfrom=MSDN

  • Related