choco
choco copied to clipboard
Unable to list template information for the NewFileInstaller template
Checklist
- [x] I confirm there are no unresolved issues reported on the Chocolatey Status page.
- [x] I have verified this is the correct repository for opening this issue.
- [x] I have verified no other issues exist related to my problem.
- [x] I have verified this is not an issue for a specific package.
- [x] I have verified this issue is not security related.
- [x] I confirm I am using official, and not unofficial, or modified, Chocolatey products.
What You Are Seeing?
When attempting to get information about the installed NewFileInstaller template, an error output is shown saying that the template cannot be found.
If I change the name of the template folder from NewFileInstaller to newfileinstaller it is found correctly:
What is Expected?
The installed template should be found, without the need to change the casing of the name of the folder
How Did You Get This To Happen?
- With CLE installed, run the following command
choco new --file <path-to-any-exe> - This will generate a new
NewFileInstallerfolder in thec:/programdata/chocolatey/templatesfolder - Run
choco template list - You will see the
NewFileInstallertemplate listed as being available - Run
choco template info --name NewFileInstaller - You will get an error stating
Unable to find requested template 'newfileinstaller'
System Details
- Operating System: Windows 11
- Windows PowerShell version: 7.5.1
- Chocolatey CLI Version: 2.4.3
- Chocolatey Licensed Extension version: 6.3.1
- Chocolatey License type: Business
- Terminal/Emulator: Windows Terminal
Installed Packages
N/A
Output Log
2025-06-11 10:46:49,961 24092 [INFO ] - ============================================================
2025-06-11 10:46:50,014 24092 [DEBUG] - User may be subject to UAC, checking for a split token (not 100%
effective).
2025-06-11 10:46:50,209 24092 [INFO ] - Chocolatey v2.4.3 Business
2025-06-11 10:46:50,212 24092 [DEBUG] - Chocolatey is running on Windows v 10.0.26100.0
2025-06-11 10:46:50,217 24092 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2025-06-11 10:46:50,218 24092 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2025-06-11 10:46:50,229 24092 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" template info --name NewFileInstaller
2025-06-11 10:46:50,230 24092 [DEBUG] - Received arguments: template info --name NewFileInstaller
2025-06-11 10:46:50,255 24092 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2025-06-11 10:46:50,258 24092 [DEBUG] - CountdownTask is now ready and waiting for PostRunMessage.
2025-06-11 10:46:50,261 24092 [DEBUG] - Terminal services setup not necessary for this session.
2025-06-11 10:46:50,275 24092 [DEBUG] - [Synchronize] Synchronize detected non-elevated run with default install, so synchronize is disabled. If background mode, synchronize will occur from background task.
2025-06-11 10:46:50,277 24092 [DEBUG] - [Programs & Features Package Sync] Detected non-elevated run with default install, so Packages in Programs & Features Sync is disabled. If in background mode, it will occur from background task.
2025-06-11 10:46:50,283 24092 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2025-06-11 10:46:50,288 24092 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2025-06-11 10:46:50,308 24092 [DEBUG] - Performing validation checks.
2025-06-11 10:46:50,310 24092 [DEBUG] - Global Configuration Validation Checks:
2025-06-11 10:46:50,313 24092 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
2025-06-11 10:46:50,314 24092 [DEBUG] - System State Validation Checks:
2025-06-11 10:46:50,317 24092 [DEBUG] - Reboot Requirement Checks:
2025-06-11 10:46:50,318 24092 [DEBUG] - - Pending Computer Rename = Checked
2025-06-11 10:46:50,320 24092 [DEBUG] - - Pending Component Based Servicing = Flagged
2025-06-11 10:46:50,322 24092 [DEBUG] - Cache Folder Lockdown Checks:
2025-06-11 10:46:50,323 24092 [DEBUG] - - Elevated State = Failed
2025-06-11 10:46:50,326 24092 [INFO ] - 3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).
2025-06-11 10:46:50,328 24092 [INFO ] -
2025-06-11 10:46:50,329 24092 [WARN ] - Validation Warnings:
2025-06-11 10:46:50,330 24092 [WARN ] - - A pending system reboot request has been detected, however, this is
being ignored due to the current command 'template' being used.
It is recommended that you reboot at your earliest convenience.
2025-06-11 10:46:50,338 24092 [DEBUG] - The source 'https://licensedpackages.chocolatey.org/api/v2/;https://community.chocolatey.org/api/v2/; evaluated to a 'normal' source type
2025-06-11 10:46:50,526 24092 [DEBUG] -
NOTE: Hiding sensitive configuration data! Please double and triple
check to be sure no sensitive data is shown, especially if copying
output to a gist for review.
2025-06-11 10:46:50,533 24092 [DEBUG] - Configuration: MaximumDownloadRateBitsPerSecond='0'|
MaximumDownloadRateBitsPerSecondAutoSet='False'|
LicensedInformation.LicenseType='Business'|
LicensedInformation.LicenseIsValid='True'|
LicensedInformation.LicenseIsTrial='False'|
LicensedInformation.PauseInTrial='False'|
LicensedInformation.LicenseUserName='Chocolatey Software, Inc. [100] (software[at REDACTED])'|
LicensedInformation.LicenseExpirationDate='30/09/2026 00:00:00'|
LicensedInformation.LicenseNodeCount='100'|
LicensedInformation.LicensedVersion='6.3.1.0'|
LicensedInformation.LicensedProductVersion='6.3.1'|
ChocolateyVersion.Version='2.4.3.0'|
ChocolateyVersion.IsLegacyVersion='False'|
ChocolateyVersion.Revision='0'|ChocolateyVersion.IsSemVer2='False'|
ChocolateyVersion.OriginalVersion='2.4.3.0'|
ChocolateyVersion.Major='2'|
ChocolateyVersion.Minor='4'|ChocolateyVersion.Patch='3'|
ChocolateyVersion.IsPrerelease='False'|
ChocolateyVersion.HasMetadata='False'|
LicensedFeatures.UseDownloadCache='True'|
LicensedFeatures.AllowSynchronization='True'|
LicensedFeatures.AllowBackgroundServiceOverride='False'|
LicensedFeatures.UseBackgroundService='True'|
LicensedFeatures.UseBackgroundServiceWithSelfServiceSourcesOnly='True'|
LicensedFeatures.UseBackgroundServiceWithNonAdministratorsOnly='True'|
LicensedFeatures.UseBackgroundServiceInteractively='False'|
LicensedFeatures.UseBackgroundServiceWithEmptySessions='True'|
LicensedFeatures.AllowBackgroundServiceUninstallsFromUserInstallsOnly='True'|
LicensedFeatures.AllowPreviewFeatures='True'|
LicensedFeatures.ShowAllPackagesInProgramsAndFeatures='False'|
LicensedFeatures.AdminOnlyExecutionForAllChocolateyCommands='False'|
LicensedFeatures.AdminOnlyExecutionForNewCommand='False'|
LicensedFeatures.AdminOnlyExecutionForDownloadCommand='False'|
LicensedFeatures.ReduceInstalledPackageSize='True'|
LicensedFeatures.ReduceOnlyNupkgSize='False'|
LicensedFeatures.UseLocalSystemForServiceInstalls='True'|
LicensedFeatures.WarnOnUpcomingLicenseExpiration='True'|
LicensedFeatures.UseChocolateyCentralManagement='True'|
LicensedFeatures.UseChocolateyCentralManagementDeployments='True'|
LicensedFeatures.UseLogRetentionPolicy='True'|
LicensedFeatures.ExcludeChocolateyPackagesDuringUpgradeAll='False'|
LicensedNewCommand.UseOriginalFilesLocation='False'|
LicensedNewCommand.PauseOnError='False'|
LicensedNewCommand.BuildPackage='False'|
LicensedNewCommand.GeneratePackagesFromSoftwareInstalls='False'|
LicensedNewCommand.IncludeArchitectureInPackageId='False'|
LicensedDownloadCommand.Internalize='False'|
LicensedDownloadCommand.AppendUseOriginalLocation='True'|
LicensedDownloadCommand.InternalizeAnyUrlFound='False'|
LicensedDownloadCommand.DownloadInstalledPackages='False'|
LicensedDownloadCommand.IgnoreUnfoundPackages='False'|
LicensedConvertCommand.IncludeAll='False'|
LicensedConvertCommand.IncludeDependencies='False'|
LicensedPushCommand.IntuneAuthenticationUrl='https://login.microsoftonline.com'|
LicensedPushCommand.IntuneApiUrl='https://graph.microsoft.com'|
LicensedPushCommand.IntuneRetryIntervalInSeconds='5'|
LicensedPushCommand.IntuneUploadTimeoutInSeconds='600'|
LicensedPushCommand.IntuneUploadChunkSizeInMegabytes='10'|
LicensedPushCommand.SkipCleanup='False'|
LicensedListCommand.ShowAuditInformation='False'|
LicensedListCommand.ShowDisplayVersion='False'|
LicensedUninstallCommand.FromProgramsAndFeatures='False'|
VirusConfiguration.VirusCheckMinimumPositives='4'|
VirusConfiguration.VirusScannerType='Generic'|
VirusConfiguration.GenericVirusScannerArgs=''[[File]]''|
VirusConfiguration.GenericVirusScannerValidExitCodes='0'|
VirusConfiguration.GenericVirusScannerTimeoutInSeconds='120'|
LicensedServiceInstaller.DefaultUserName='ChocolateyLocalAdmin'|
CentralManagementConfiguration.ReportPackagesTimerIntervalInSeconds='1800'|
CentralManagementConfiguration.ServiceUrl='https://hephaestus.chocolatey.org:24020/ChocolateyManagementService'|
CentralManagementConfiguration.ReceiveTimeoutInSeconds='30'|
CentralManagementConfiguration.SendTimeoutInSeconds='30'|
CentralManagementConfiguration.CertificateValidationMode='PeerOrChainTrust'|
CentralManagementConfiguration.MaxReceiveMessageSizeInBytes='2147483647'|
CentralManagementConfiguration.DeploymentCheckTimerIntervalInSeconds='180'|
LicensedBackgroundService.LogRetentionPolicyInDays='30'|
CommandName='template'|
CacheLocation='C:\ProgramData\chocolatey\choco-cache'|
CommandExecutionTimeoutSeconds='14400'|WebRequestTimeoutSeconds='30'|
Sources='https://licensedpackages.chocolatey.org/api/v2/;https://community.chocolatey.org/api/v2/;|
SourceType='normal'|IncludeConfiguredSources='False'|
ShowOnlineHelp='False'|Debug='False'|Verbose='False'|Trace='False'|
Force='False'|Noop='False'|HelpRequested='False'|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
PromptForConfirmation='True'|DisableCompatibilityChecks='False'|
AcceptLicense='False'|AllowUnofficialBuild='False'|AllVersions='False'|
SkipPackageInstallProvider='False'|SkipHookScripts='False'|
Prerelease='False'|ForceX86='False'|OverrideArguments='False'|
NotSilent='False'|ApplyPackageParametersToDependencies='False'|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
CacheExpirationInMinutes='30'|AllowDowngrade='False'|
ForceDependencies='False'|PinPackage='False'|
Information.PlatformType='Windows'|
Information.PlatformVersion='10.0.26100.0'|
Information.PlatformName='Windows 11'|
Information.ChocolateyVersion='2.4.3.0'|
Information.ChocolateyProductVersion='2.4.3'|
Information.FullName='choco, Version=2.4.3.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
Information.Is64BitOperatingSystem='True'|
Information.Is64BitProcess='True'|Information.IsInteractive='True'|
Information.UserName='gep13'|
Information.UserDomainName='TheLenovoLaptop'|
Information.IsUserAdministrator='True'|
Information.IsUserSystemAccount='False'|
Information.IsUserRemoteDesktop='False'|
Information.IsUserRemote='False'|Information.IsProcessElevated='False'|
Information.IsLicensedVersion='True'|
Information.IsLicensedAssemblyLoaded='True'|
Information.LicenseType='Business'|
Information.CurrentDirectory='D:\code\choco'|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
Features.AllowEmptyChecksums='False'|
Features.AllowEmptyChecksumsSecure='True'|
Features.FailOnAutoUninstaller='False'|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
Features.LogEnvironmentValues='False'|Features.LogWithoutColor='False'|
Features.VirusCheck='False'|
Features.FailOnInvalidOrMissingLicense='False'|
Features.IgnoreInvalidOptionsSwitches='True'|
Features.UsePackageExitCodes='True'|
Features.UseEnhancedExitCodes='False'|
Features.UseFipsCompliantChecksums='False'|
Features.ShowNonElevatedWarnings='False'|
Features.ShowDownloadProgress='True'|
Features.StopOnFirstPackageFailure='False'|
Features.UseRememberedArgumentsForUpgrades='False'|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
Features.RemovePackageInformationOnUninstall='False'|
Features.ExitOnRebootDetected='False'|
Features.LogValidationResultsOnWarnings='True'|
Features.UsePackageRepositoryOptimizations='True'|
Features.UsePackageHashValidation='False'|
ListCommand.LocalOnly='False'|
ListCommand.IdOnly='False'|ListCommand.IncludeRegistryPrograms='False'|
ListCommand.PageSize='25'|ListCommand.Exact='False'|
ListCommand.ByIdOnly='False'|ListCommand.ByTagOnly='False'|
ListCommand.IdStartsWith='False'|ListCommand.OrderByPopularity='False'|
ListCommand.ApprovedOnly='False'|
ListCommand.DownloadCacheAvailable='False'|
ListCommand.NotBroken='False'|
ListCommand.IncludeVersionOverrides='False'|
ListCommand.ExplicitPageSize='False'|
ListCommand.ExplicitSource='False'|
UpgradeCommand.FailOnUnfound='False'|
UpgradeCommand.FailOnNotInstalled='False'|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
UpgradeCommand.ExcludePrerelease='False'|
UpgradeCommand.IgnorePinned='False'|
NewCommand.AutomaticPackage='False'|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
SourceCommand.AllowSelfService='False'|
SourceCommand.VisibleToAdminsOnly='False'|
FeatureCommand.Command='unknown'|ConfigCommand.Command='Unknown'|
ApiKeyCommand.Command='Unknown'|PinCommand.Command='Unknown'|
OutdatedCommand.IgnorePinned='False'|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
TemplateCommand.Command='Info'|TemplateCommand.Name='newfileinstaller'|
CacheCommand.Command='Unknown'|
CacheCommand.RemoveExpiredItemsOnly='False'|
2025-06-11 10:46:50,534 24092 [DEBUG] - _ Chocolatey:ChocolateyTemplateCommand - Normal Run Mode _
2025-06-11 10:46:50,537 24092 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2025-06-11 10:46:50,539 24092 [DEBUG] - [Countdown] Determining how long until license expires
2025-06-11 10:46:50,542 24092 [ERROR] - Unable to find requested template 'newfileinstaller'
2025-06-11 10:46:50,544 24092 [ERROR] - More Details: System.ApplicationException: Unable to find requested template 'newfileinstaller'
at chocolatey.infrastructure.app.services.TemplateService.List(ChocolateyConfiguration configuration)
at chocolatey.infrastructure.app.runners.GenericRunner.Run(ChocolateyConfiguration config, Container container, Boolean isConsole, Action`1 parseArgs)
at chocolatey.infrastructure.app.runners.ConsoleApplication.Run(String[] args, ChocolateyConfiguration config, Container container)
at chocolatey.console.Program.Main(String[] args)
2025-06-11 10:46:50,544 24092 [DEBUG] - Exiting with 1
Additional Context
N/A
To vote for this issue, please add a 👍 emoji to the issue description. Votes in comments are not recorded.
:tada: This issue has been resolved in version 2.5.0 :tada:
The release is available on:
Your GitReleaseManager bot :package: :rocket: