private static void createFileAssociation() { var appPath = Assembly.GetExecutingAssembly().Location; FileAssociation.CreateFileAssociation(".srt", "Sub", "Subtitle File", appPath ); }