private static RegExport CreateExport(InstallScope scope, OfficeRegisterKeyState keyState) { Console.WriteLine("ExcelConnect::CreateExport"); RegExport export = new RegExport(); export.Add("Software\\Microsoft\\Office\\Excel\\Addins\\ClientAddin.ExcelConnect", new RegExportValue[] { new RegExportValue("Value 1", Microsoft.Win32.RegistryValueKind.DWord, 144), new RegExportValue("Value 2", Microsoft.Win32.RegistryValueKind.QWord, 1433689), new RegExportValue("Value 3", Microsoft.Win32.RegistryValueKind.String,"Hello Excel"), new RegExportValue("Value 4", Microsoft.Win32.RegistryValueKind.ExpandString, "Hello World"), new RegExportValue("Value 5", Microsoft.Win32.RegistryValueKind.MultiString, new string[] { "Item 1","Item 2","Item 3"}), new RegExportValue("Value 6", Microsoft.Win32.RegistryValueKind.Binary,new byte[] { 1, 2, 3, 4, 0, 7, 15, 31, 127, 255}), }); IList<RegExportValue> settings = export.Add("Software\\Microsoft\\Office\\Excel\\Addins\\ClientAddin.ExcelConnect\\Settings"); settings.Add(new RegExportValue("", "I was here")); settings.Add(new RegExportValue("Setting 1", "Enabled")); settings.Add(new RegExportValue("Setting 2", "Disabled")); return export; }
private static RegExport CreateExport(InstallScope scope, OfficeRegisterKeyState keyState) { Console.WriteLine("ExcelConnect::CreateExport"); RegExport export = new RegExport(); export.Add("Software\\Microsoft\\Office\\Excel\\Addins\\ClientAddin.ExcelConnect", new RegExportValue[] { new RegExportValue("Value 1", Microsoft.Win32.RegistryValueKind.DWord, 144), new RegExportValue("Value 2", Microsoft.Win32.RegistryValueKind.QWord, 1433689), new RegExportValue("Value 3", Microsoft.Win32.RegistryValueKind.String, "Hello Excel"), new RegExportValue("Value 4", Microsoft.Win32.RegistryValueKind.ExpandString, "Hello World"), new RegExportValue("Value 5", Microsoft.Win32.RegistryValueKind.MultiString, new string[] { "Item 1", "Item 2", "Item 3" }), new RegExportValue("Value 6", Microsoft.Win32.RegistryValueKind.Binary, new byte[] { 1, 2, 3, 4, 0, 7, 15, 31, 127, 255 }), }); IList <RegExportValue> settings = export.Add("Software\\Microsoft\\Office\\Excel\\Addins\\ClientAddin.ExcelConnect\\Settings"); settings.Add(new RegExportValue("", "I was here")); settings.Add(new RegExportValue("Setting 1", "Enabled")); settings.Add(new RegExportValue("Setting 2", "Disabled")); return(export); }