From 54a4d6f7dbdd00c96d29cb2426233c40c94165a6 Mon Sep 17 00:00:00 2001 From: Rob Reynolds Date: Fri, 5 Jun 2015 17:43:03 -0500 Subject: [PATCH] (GH-305) get full path to cache folder This will lengthen short 8.3 paths so that choco can work with them. --- .../services/AutomaticUninstallerService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chocolatey/infrastructure.app/services/AutomaticUninstallerService.cs b/src/chocolatey/infrastructure.app/services/AutomaticUninstallerService.cs index 285e68560a..5af7e8e4b0 100644 --- a/src/chocolatey/infrastructure.app/services/AutomaticUninstallerService.cs +++ b/src/chocolatey/infrastructure.app/services/AutomaticUninstallerService.cs @@ -128,12 +128,12 @@ public void run(PackageResult packageResult, ChocolateyConfiguration config) { //todo: ultimately we should merge keys uninstallArgs += " " + installer.build_uninstall_command_arguments(); - var logLocation = _fileSystem.combine_paths(config.CacheLocation, "chocolatey", pkgInfo.Package.Id, pkgInfo.Package.Version.to_string()); - _fileSystem.create_directory_if_not_exists(_fileSystem.get_directory_name(logLocation)); - - uninstallArgs = uninstallArgs.Replace(InstallTokens.PACKAGE_LOCATION, logLocation); } + var logLocation = _fileSystem.combine_paths(_fileSystem.get_full_path(config.CacheLocation), "chocolatey", pkgInfo.Package.Id, pkgInfo.Package.Version.to_string()); + _fileSystem.create_directory_if_not_exists(_fileSystem.get_directory_name(logLocation)); + uninstallArgs = uninstallArgs.Replace(InstallTokens.PACKAGE_LOCATION, logLocation); + this.Log().Debug(() => " Args are '{0}'".format_with(uninstallArgs)); if (!key.HasQuietUninstall && installer.GetType() == typeof(CustomInstaller))