diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyInstallCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyInstallCommand.cs index 0e9b1a08f8..bd6bcf4de6 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyInstallCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyInstallCommand.cs @@ -150,6 +150,7 @@ public void noop(ChocolateyConfiguration configuration) public void run(ChocolateyConfiguration configuration) { + _packageService.ensure_source_app_installed(configuration); _packageService.install_run(configuration); } } diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs index 5a9917996b..c6efee70fa 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyListCommand.cs @@ -94,6 +94,7 @@ public void noop(ChocolateyConfiguration configuration) public void run(ChocolateyConfiguration configuration) { + _packageService.ensure_source_app_installed(configuration); _packageService.list_run(configuration, logResults: true); } } diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyUninstallCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyUninstallCommand.cs index b6c033a03e..8d9d517ec6 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyUninstallCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyUninstallCommand.cs @@ -109,6 +109,7 @@ public void noop(ChocolateyConfiguration configuration) public void run(ChocolateyConfiguration configuration) { + _packageService.ensure_source_app_installed(configuration); _packageService.uninstall_run(configuration); } } diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyUpgradeCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyUpgradeCommand.cs index 81d6168452..bbe741491a 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyUpgradeCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyUpgradeCommand.cs @@ -119,6 +119,7 @@ public void noop(ChocolateyConfiguration configuration) public void run(ChocolateyConfiguration configuration) { + _packageService.ensure_source_app_installed(configuration); _packageService.upgrade_run(configuration); } }