public void uninstall(INSTALLED soft)
        {
            string batch = "start \"\" \"" + version + "\"  \"" + soft.path + "\" /D /S";

            cmd.ExecuteCommand(batch);
            var reg = new registry();

            reg.delete(soft.regkey);
        }
Example #2
0
        public void uninstall(INSTALLED soft)
        {
            string batch;

            if (soft.path.Contains("MsiExec"))
            {
                soft.path = soft.path.Replace("/I", "/X");
                batch     = soft.path + " /qn /norestart";
            }
            else
            {
                soft.path = soft.path.Replace(@"\\", @"\");
                batch     = "start \"\" \"" + version + "\"  \"" + soft.path + "\" /D /S";
                var reg = new registry();
                reg.delete(soft.regkey);
            }
            //Console.WriteLine(batch);
            //Console.WriteLine(soft.regkey);
            cmd.ExecuteCommand(batch);
        }