private void btnRegisterAssociation_Click(object sender, EventArgs e) { RegistrationHelper.RegisterFileAssociations( APP_ID, false, Windows7Taskbar.GetCurrentProcessAppId(), Assembly.GetExecutingAssembly().Location + " /doc:%1", ".rtf"); }
private void registerFileExtensionsToolStripMenuItem_Click(object sender, EventArgs e) { RegistrationHelper.RegisterFileAssociations( progId, false, //TODO: Access denied to HKCU\Software\Classes, check why Windows7Taskbar.GetCurrentProcessAppId(), Assembly.GetEntryAssembly().Location + " /doc:%1", ".txt"); }