private void CheckForDownloadedUpdates()
        {
            string dir = AppDomain.CurrentDomain.BaseDirectory;

            UpdateDownloader.CreateTempDirectory();
            bool updateZipExists = Directory.GetFiles(UpdateDownloader.DownloadLocation, "update-*.zip").Length > 0;

            string[] updateExeFiles  = Directory.GetFiles(UpdateDownloader.DownloadLocation, "update-*.exe");
            bool     updateExeExists = updateExeFiles.Length > 0;

            string updaterPath = Path.Join(dir, "PixiEditor.UpdateInstaller.exe");

            if (updateZipExists || updateExeExists)
            {
                ViewModelMain.Current.UpdateSubViewModel.UpdateReadyToInstall = true;
                var result = ConfirmationDialog.Show("Update is ready to install. Do you want to install it now?");
                if (result == Models.Enums.ConfirmationType.Yes)
                {
                    if (updateZipExists && File.Exists(updaterPath))
                    {
                        InstallHeadless(updaterPath);
                    }
                    else if (updateExeExists)
                    {
                        OpenExeInstaller(updateExeFiles[0]);
                    }
                }
            }
        }