示例#1
0
文件: Program.cs 项目: zooba/wix3
        static int Main(string[] args)
        {
            if (args.Length == 0)
            {
                Console.WriteLine("Must provide the path to the bundle to install then uninstall.");
                return -1;
            }

            BundleRunner runner = new BundleRunner(args[0]);
            runner.Error += Program.OnError;
            runner.Progress += Program.OnProgress;

            Console.WriteLine("Installing: {0}", runner.Path);
            int exitCode = runner.Run();
            if (0 == exitCode)
            {
                Console.WriteLine("\r\nUninstalling: {0}", runner.Path);
                exitCode = runner.Run("-uninstall");
            }

            return exitCode;
        }
示例#2
0
文件: Program.cs 项目: zhyifei/wix3
        static int Main(string[] args)
        {
            if (args.Length == 0)
            {
                Console.WriteLine("Must provide the path to the bundle to install then uninstall.");
                return(-1);
            }

            BundleRunner runner = new BundleRunner(args[0]);

            runner.Error    += Program.OnError;
            runner.Progress += Program.OnProgress;

            Console.WriteLine("Installing: {0}", runner.Path);
            int exitCode = runner.Run();

            if (0 == exitCode)
            {
                Console.WriteLine("\r\nUninstalling: {0}", runner.Path);
                exitCode = runner.Run("-uninstall");
            }

            return(exitCode);
        }