using System.Configuration; using System.Web.Security; using System.ComponentModel; using System.Diagnostics; using System.Configuration.Install; using Microsoft.Win32; namespace Install.NameSpace { [RunInstaller(true)] public class InstallHelper : Installer { #region Public Static Methods public static void SaveLocalRoot(String value) { try { RegistryKey key = Registry .LocalMachine.OpenSubKey(ConfigurationManager .AppSettings["LocalRootRegKey"] .ToString(), true); if (key == null) Registry.LocalMachine.CreateSubKey(ConfigurationManager .AppSettings["LocalRootRegKey"].ToString()); key.SetValue("DefaultLocalRoot", value); } catch (Exception e) { throw e; } } #endregion } }
Thursday, November 29, 2007
Reading and writing to Windows.Registry.
Subscribe to:
Post Comments (Atom)
Azure Storage Account Types
Defferent Types of Blobs Block blobs store text and binary data. Block blobs are made up of blocks of data that can be managed individually...
-
Demo: I was thinking a way to show images before actually uploading them to server. I would say to preview images using javascript. Obv...
-
Demo : I am using asp.net UpdatePanel control to partial page update. As there is no keyup event for the asp.net TextBox control, I add an ...
No comments:
Post a Comment