mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Merge pull request #109 from mwcampbell/fix-update-uninstaller
Include the --uninstall option in the uninstaller command line by default
This commit is contained in:
@@ -105,7 +105,7 @@ namespace Squirrel
|
||||
public Task<RegistryKey> CreateUninstallerRegistryEntry()
|
||||
{
|
||||
var updateDotExe = Path.Combine(rootAppDirectory, "Update.exe");
|
||||
return CreateUninstallerRegistryEntry(updateDotExe, "-s");
|
||||
return CreateUninstallerRegistryEntry(String.Format("{0} --uninstall", updateDotExe), "-s");
|
||||
}
|
||||
|
||||
public void RemoveUninstallerRegistryEntry()
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace Squirrel.Update
|
||||
"Failed to copy Update.exe to " + updateTarget);
|
||||
|
||||
await this.ErrorIfThrows(() =>
|
||||
mgr.CreateUninstallerRegistryEntry(String.Format("{0} --uninstall", updateTarget), "-s"),
|
||||
mgr.CreateUninstallerRegistryEntry(),
|
||||
"Failed to create uninstaller registry entry");
|
||||
}
|
||||
}
|
||||
@@ -190,7 +190,7 @@ namespace Squirrel.Update
|
||||
var updateTarget = Path.Combine(mgr.RootAppDirectory, "Update.exe");
|
||||
|
||||
await this.ErrorIfThrows(() =>
|
||||
mgr.CreateUninstallerRegistryEntry(String.Format("{0} --uninstall", updateTarget), "-s"),
|
||||
mgr.CreateUninstallerRegistryEntry(),
|
||||
"Failed to create uninstaller registry entry");
|
||||
}
|
||||
}
|
||||
@@ -574,4 +574,4 @@ namespace Squirrel.Update
|
||||
lock(gate) inner.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user