Search code examples
c#windowsfile-association

Associate File Extension with Application depending on OS version


Is there a universal (all windows OS) way to associate a custom extension to a new program for the current user on windows ? (coded in c#)

The closest solution I found is here: Associate File Extension with Application

but it does not seem to work for windows 8.1


Solution

  • I have put a solution here for windows 10: Associate File Extension with Application

    It can be easily adapted by creating missing node such as ApplicationAssociationToasts.