예제 #1
0
        public void CustomRegister(string targetdir)
        {
            string targetDirectory = targetdir;
            RegistrationHelper reg = new RegistrationHelper(targetDirectory);

            reg.LogLine("=============================================================");
            reg.LogLine("Razor Template Command - registration ");
            reg.LogLine("=============================================================");

            reg.LogLine(string.Format("Started at : {0}", DateTime.Now));

            if (reg.RegisterSnapIn())
                {
                reg.LogLine("registration complete");
                }
            else
                {
                reg.LogLine("Registration uncomplete");
                }
            reg.LogLine(string.Format("Finished at : {0}", DateTime.Now));
            reg.Save("Install.log");
        }
예제 #2
0
        public void CustomRegister(string targetdir)
        {
            string             targetDirectory = targetdir;
            RegistrationHelper reg             = new RegistrationHelper(targetDirectory);

            reg.LogLine("=============================================================");
            reg.LogLine("Razor Template Command - registration ");
            reg.LogLine("=============================================================");

            reg.LogLine(string.Format("Started at : {0}", DateTime.Now));

            if (reg.RegisterSnapIn())
            {
                reg.LogLine("registration complete");
            }
            else
            {
                reg.LogLine("Registration uncomplete");
            }
            reg.LogLine(string.Format("Finished at : {0}", DateTime.Now));
            reg.Save("Install.log");
        }