public static void RemoveShellExtensions(DefinitionIdentity subId, AssemblyManifest appManifest, string productName) { foreach (FileAssociation fileAssociation in appManifest.FileAssociations) { ShellExposure.RemoveFileAssociation(fileAssociation, subId, productName); } NativeMethods.SHChangeNotify(134217728, 0U, IntPtr.Zero, IntPtr.Zero); }