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:
Paul Betts
2014-10-28 08:55:50 -07:00
2 changed files with 4 additions and 4 deletions

View File

@@ -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()

View File

@@ -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();
}
}
}
}