public void CreateAssociation() { AF_FileAssociator assoc = new AF_FileAssociator(".as3rsx"); FileInfo icon = new FileInfo(Path.Combine(PathHelper.AppDir, "rsx.ico")); Console.WriteLine("CreateAssociation " + icon.FullName); if (!icon.Exists) { object ico = LocaleHelper.GetResource("RSXPluginIcon"); Console.WriteLine("Trying to find an icon " + ico); Icon pluginIcon = (Icon)LocaleHelper.GetResource("RSXPluginIcon"); Console.WriteLine("Icon file found " + pluginIcon); pluginIcon.Save(File.Open(icon.FullName, FileMode.Create)); } assoc.Create("FlashDevelop", "Resource Project for AS3", new ProgramIcon(icon.FullName), new ExecApplication(Path.Combine(PathHelper.AppDir, "FlashDevelop.exe")), new OpenWithList(new string[] { "FlashDevelop" })); }