Example #1
0
        public void StartUpdater(CoreUpdaterInfo coreUpdaterInfo, ExecutionType executonType = ExecutionType.Default)
        {
            var assemblyName = Path.GetFileName(Assembly.GetEntryAssembly().Location);
            var srcDir       = Path.GetFullPath(coreUpdaterInfo.GetNewVersionDir());
            var dstDir       = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
            var processId    = Process.GetCurrentProcess().Id.ToString();

            StartUpdater(assemblyName, srcDir, dstDir, processId, executonType);
        }