Skip to content

Commit 7f937b0

Browse files
authored
Update clickonce.mdx (#37)
Uninstall will only run when it can't be found
1 parent ce88d1d commit 7f937b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/migrating/clickonce.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ We will need to start by publishing your first Velopack release.
2626
.WithAfterInstallFastCallback((appVersion) =>
2727
{
2828
var uninstallInfo = UninstallInfo.Find("Application Name");
29-
if (uninstallInfo == null)
29+
if (uninstallInfo != null)
3030
{
3131
var uninstaller = new Uninstaller();
3232
uninstaller.Uninstall(uninstallInfo);

0 commit comments

Comments
 (0)