diff --git a/src/chocolatey/infrastructure.app/services/ChocolateyPackageService.cs b/src/chocolatey/infrastructure.app/services/ChocolateyPackageService.cs index 584ba591b3..43bf4eee56 100644 --- a/src/chocolatey/infrastructure.app/services/ChocolateyPackageService.cs +++ b/src/chocolatey/infrastructure.app/services/ChocolateyPackageService.cs @@ -386,7 +386,6 @@ public virtual void handle_package_result(PackageResult packageResult, Chocolate _filesService.ensure_compatible_file_attributes(packageResult, config); _configTransformService.run(packageResult, config); - //review: is this a Windows only kind of thing? pkgInfo.FilesSnapshot = _filesService.capture_package_files(packageResult, config); var is32Bit = !config.Information.Is64BitProcess || config.ForceX86; @@ -397,6 +396,11 @@ public virtual void handle_package_result(PackageResult packageResult, Chocolate else { if (config.Information.PlatformType != PlatformType.Windows) this.Log().Info(ChocolateyLoggers.Important, () => " Skipping Powershell and shimgen portions of the install due to non-Windows."); + if (packageResult.Success) + { + _configTransformService.run(packageResult, config); + pkgInfo.FilesSnapshot = _filesService.capture_package_files(packageResult, config); + } } if (packageResult.Success)