Added support for PDFs and Images
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user