Ejemplo n.º 1
0
        private void AdminInstall()
        {
            var configpath = System.IO.Path.Combine(XJK.ENV.BaseDirectory, Env.GlobalSettingFileName);

            if (!File.Exists(configpath))
            {
                var setting = DataModel.DefaultSetting.GetGlobal();
                Util.Yaml.SaveYaml(configpath, setting);
            }
            Util.Reg.SetExePath(XJK.ENV.EntryLocation);
            Util.Reg.SetLogPath();
            Cmd.RunAsInvoker(Env.GetSrmPath(), "install ShellCommand.exe -codebase");
        }
Ejemplo n.º 2
0
 private void AdminUninstall()
 {
     Cmd.RunAsInvoker(Env.GetSrmPath(), "uninstall ShellCommand.exe");
     Util.Reg.DeleteSubKey();
 }