Exemplo n.º 1
0
 public virtual void Unregister(){
   NameValueCollection args = this.GetRegistrationScriptArguments();
   string script = this.GetRegistrationScript();
   PackageInstaller pi = new PackageInstaller();
   pi.Unregister(script, args); 
   if (this.CodeDomProvider != null) {
     pi.UnregisterCodeDomProvider(this.SourceFileExtension);
   }
 }
Exemplo n.º 2
0
 /// <summary>
 /// This method is purely for "dev use only".  Real product 
 /// registration goes through windows setup.
 /// The cool thing about this is that this "dev" code path is 
 /// using the same .rgs files that the windows setup uses.
 /// </summary>
 public virtual void Register(){
   NameValueCollection args = this.GetRegistrationScriptArguments();
   string script = this.GetRegistrationScript();
   PackageInstaller pi = new PackageInstaller();
   pi.Register(script, args);
   if (this.CodeDomProvider != null) {
     pi.RegisterCodeDomProvider(this.CodeDomProvider, this.SourceFileExtension, this.ASPExtensionAliases, this.ASPWarningLevel);
   }
 }        
Exemplo n.º 3
0
        public virtual void Unregister()
        {
            NameValueCollection args = this.GetRegistrationScriptArguments();
            string           script  = this.GetRegistrationScript();
            PackageInstaller pi      = new PackageInstaller();

            pi.Unregister(script, args);
            if (this.CodeDomProvider != null)
            {
                pi.UnregisterCodeDomProvider(this.SourceFileExtension);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// This method is purely for "dev use only".  Real product
        /// registration goes through windows setup.
        /// The cool thing about this is that this "dev" code path is
        /// using the same .rgs files that the windows setup uses.
        /// </summary>
        public virtual void Register()
        {
            NameValueCollection args = this.GetRegistrationScriptArguments();
            string           script  = this.GetRegistrationScript();
            PackageInstaller pi      = new PackageInstaller();

            pi.Register(script, args);
            if (this.CodeDomProvider != null)
            {
                pi.RegisterCodeDomProvider(this.CodeDomProvider, this.SourceFileExtension, this.ASPExtensionAliases, this.ASPWarningLevel);
            }
        }