Added support for PDFs and Images

This commit is contained in:
2023-12-23 17:19:12 -05:00
parent 16a1c9a06f
commit 03e69393fc
8 changed files with 161 additions and 66 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ namespace PWAppUpdater2
private void button1_Click(object sender, EventArgs e)
{
Directory.SetCurrentDirectory("C:\\PWAPP");
label1.Text = "Updating.... Please wait.";
label1.Update();
progressBar1.Maximum = 8;
@@ -27,7 +28,7 @@ namespace PWAppUpdater2
button1.Enabled = false;
try
{
PWAppUpdater.Updater.Update("C:\\PWAPP\\App\\", progressBar1, StepInfo, "C:\\PWAPP\\Temp\\");
PWAppUpdater.Updater.Update("C:\\PWAPP\\App", progressBar1, StepInfo, "C:\\PWAPP\\Temp");
}
catch (NoAuthException)
{
-4
View File
@@ -38,10 +38,6 @@ namespace PWAppUpdater
progress.PerformStep();
stepInfo.Text = "Removing old installation...";
stepInfo.Update();
if (Directory.Exists(installPath))
{
Directory.Delete(installPath, true);
}
progress.PerformStep();
stepInfo.Text = "Creating new install directory...";
stepInfo.Update();