chocolatey / chocolatey-licensed-issues

Issues for Licensed Editions of Chocolatey
19 stars 13 forks source link

Build Package Option For Choco New Command Not Working #381

Open sync-by-unito[bot] opened 4 months ago

sync-by-unito[bot] commented 4 months ago

What You Are Seeing?

When running the choco new command with the --build-package switch it does not pack and generate a .nupkg file.

What is Expected?

Passing --build-package to choco new should pack the .nuspec creating a .nupkg file.

How Did You Get This To Happen? (Steps to Reproduce)

  1. Have a Chocolatey For Business machine configured(chocolatey CLI, chocolatey.extension, and chocolatey license installed)
  2. Run through the How to create a Package Template Doc
  3. On the Building Package From Template Step you'll notice the package is not created. Just templated out.

System Details

Output Log

chocolatey.log

~~~sh 2024-01-22 15:23:13,846 5280 [DEBUG] - XmlConfiguration is now operational 2024-01-22 15:23:13,861 5280 [DEBUG] - Evaluating license file found at 'C:\ProgramData\chocolatey\license\chocolatey.license.xml' 2024-01-22 15:23:15,080 5280 [DEBUG] - Loading up 'chocolatey.licensed' assembly type from 'C:\ProgramData\chocolatey\extensions\chocolatey\chocolatey.licensed.dll' 2024-01-22 15:23:15,096 5280 [DEBUG] - Minimum Chocolatey Version: '2.0.0' 2024-01-22 15:23:15,096 5280 [DEBUG] - Current Chocolatey Version: '2.2.2.0' 2024-01-22 15:23:15,096 5280 [DEBUG] - Current Chocolatey Licensed Version: '6.1.1.0' 2024-01-22 15:23:15,112 5280 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco' 2024-01-22 15:23:15,112 5280 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco' 2024-01-22 15:23:15,112 5280 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco' 2024-01-22 15:23:15,112 5280 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco' 2024-01-22 15:23:15,112 5280 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco' 2024-01-22 15:23:15,112 5280 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco' 2024-01-22 15:23:15,112 5280 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco' 2024-01-22 15:23:15,127 5280 [DEBUG] - Adding new type 'RubyGemsService' for type 'IListSourceRunner' from assembly 'choco' 2024-01-22 15:23:15,127 5280 [DEBUG] - Adding new type 'RubyGemsService' for type 'IInstallSourceRunner' from assembly 'choco' 2024-01-22 15:23:15,127 5280 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco' 2024-01-22 15:23:15,127 5280 [DEBUG] - Adding new type 'CacheFolderLockdownValidation' for type 'IValidation' from assembly 'choco' 2024-01-22 15:23:15,393 5280 [DEBUG] - Adding new type 'EmptyOrInvalidUrlMetadataRule' for type 'IMetadataRule' from assembly 'choco' 2024-01-22 15:23:15,393 5280 [DEBUG] - Adding new type 'FrameWorkReferencesMetadataRule' for type 'IMetadataRule' from assembly 'choco' 2024-01-22 15:23:15,393 5280 [DEBUG] - Adding new type 'IconMetadataRule' for type 'IMetadataRule' from assembly 'choco' 2024-01-22 15:23:15,393 5280 [DEBUG] - Adding new type 'LicenseMetadataRule' for type 'IMetadataRule' from assembly 'choco' 2024-01-22 15:23:15,393 5280 [DEBUG] - Adding new type 'PackageTypesMetadataRule' for type 'IMetadataRule' from assembly 'choco' 2024-01-22 15:23:15,393 5280 [DEBUG] - Adding new type 'ReadmeMetadataRule' for type 'IMetadataRule' from assembly 'choco' 2024-01-22 15:23:15,393 5280 [DEBUG] - Adding new type 'RepositoryMetadataRule' for type 'IMetadataRule' from assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Adding new type 'RequireLicenseAcceptanceMetadataRule' for type 'IMetadataRule' from assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Adding new type 'ServicableMetadataRule' for type 'IMetadataRule' from assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Adding new type 'VersionMetadataRule' for type 'IMetadataRule' from assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'cache' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'list' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'template' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'export' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'info' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'help' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'config' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'feature' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'new' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'outdated' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'pack' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'pin' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'push' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'apikey' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'source' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'uninstall' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'upgrade' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'search' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'unpackself' in assembly 'choco' 2024-01-22 15:23:15,408 5280 [DEBUG] - Registering new command 'install' in assembly 'choco' 2024-01-22 15:23:15,424 5280 [DEBUG] - Unable to load extension from path C:\ProgramData\chocolatey\extensions\chocolateygui\chocolateygui.licensed.dll. The assembly is not signed with official key token. 2024-01-22 15:23:15,455 5280 [DEBUG] - Gathering exported extension registration modules! 2024-01-22 15:23:15,486 5280 [DEBUG] - Trying to load and register extension 'chocolatey.licensed' 2024-01-22 15:23:15,502 5280 [DEBUG] - Calling registration module 'ProChocolateyExtensionModule' in extension 'chocolatey.licensed'! 2024-01-22 15:23:15,533 5280 [DEBUG] - Adding new type 'CountdownTask' for type 'ITask' from assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Adding new type 'TerminalServicesChangeUserTask' for type 'ITask' from assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Adding new type 'SynchronizeTask' for type 'ITask' from assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Adding new type 'AdminOnlyFeatureTask' for type 'ITask' from assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Adding new type 'PackagesInProgramsAndFeaturesTask' for type 'ITask' from assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Registering new command 'download' in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Replacing existing command 'feature' from assembly 'choco' with implementation in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Replacing existing command 'info' from assembly 'choco' with implementation in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Replacing existing command 'install' from assembly 'choco' with implementation in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Replacing existing command 'list' from assembly 'choco' with implementation in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Replacing existing command 'new' from assembly 'choco' with implementation in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Registering new command 'optimize' in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Replacing existing command 'outdated' from assembly 'choco' with implementation in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Replacing existing command 'pin' from assembly 'choco' with implementation in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Replacing existing command 'search' from assembly 'choco' with implementation in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Replacing existing command 'source' from assembly 'choco' with implementation in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Registering new command 'support' in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Registering new command 'synchronize' in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Replacing existing command 'uninstall' from assembly 'choco' with implementation in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,533 5280 [DEBUG] - Replacing existing command 'upgrade' from assembly 'choco' with implementation in assembly 'chocolatey.licensed' 2024-01-22 15:23:15,549 5280 [DEBUG] - Loaded extension chocolatey.licensed v6.1.1 with status 'Enabled' 2024-01-22 15:23:15,565 5280 [INFO ] - ============================================================ 2024-01-22 15:23:15,659 5280 [INFO ] - Chocolatey v2.2.2 BusinessTrial 2024-01-22 15:23:15,659 5280 [DEBUG] - Chocolatey is running on Windows v 10.0.20348.0 2024-01-22 15:23:15,659 5280 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old". 2024-01-22 15:23:15,673 5280 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old". 2024-01-22 15:23:15,673 5280 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" new template-tutorial --version=1.0.0 --template=TutorialTemplate Country:USA --build-package --force 2024-01-22 15:23:15,673 5280 [DEBUG] - Received arguments: new template-tutorial --version=1.0.0 --template=TutorialTemplate Country:USA --build-package --force 2024-01-22 15:23:15,704 5280 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage. 2024-01-22 15:23:15,704 5280 [DEBUG] - CountdownTask is now ready and waiting for PostRunMessage. 2024-01-22 15:23:15,704 5280 [DEBUG] - Terminal services setup not necessary for this session. 2024-01-22 15:23:15,721 5280 [DEBUG] - SynchronizeTask is now ready and waiting for PreRunMessage. 2024-01-22 15:23:15,721 5280 [DEBUG] - PackagesInProgramsAndFeaturesTask is now ready and waiting for PostRunMessage. 2024-01-22 15:23:15,721 5280 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers... 2024-01-22 15:23:15,736 5280 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed... 2024-01-22 15:23:15,736 5280 [DEBUG] - [Synchronize] Updating packages with Programs and Features 2024-01-22 15:23:15,736 5280 [DEBUG] - [Synchronize] Currently only supports removals. Soon will handle updates. 2024-01-22 15:23:15,830 5280 [DEBUG] - Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib 2024-01-22 15:23:15,955 5280 [DEBUG] - chocolatey 2.2.2 2024-01-22 15:23:15,970 5280 [DEBUG] - chocolatey.extension 6.1.1 2024-01-22 15:23:15,970 5280 [DEBUG] - chocolatey-agent 2.1.1 2024-01-22 15:23:15,970 5280 [DEBUG] - chocolatey-compatibility.extension 1.0.0 2024-01-22 15:23:15,986 5280 [DEBUG] - chocolatey-core.extension 1.4.0 2024-01-22 15:23:15,986 5280 [DEBUG] - chocolatey-dotnetfx.extension 1.0.1 2024-01-22 15:23:16,001 5280 [DEBUG] - chocolateygui 2.1.0 2024-01-22 15:23:16,001 5280 [DEBUG] - chocolateygui.extension 2.0.0 2024-01-22 15:23:16,001 5280 [DEBUG] - chocolatey-license 2024.6.30.100 2024-01-22 15:23:16,001 5280 [DEBUG] - chocolatey-management-database 0.12.0 2024-01-22 15:23:16,001 5280 [DEBUG] - chocolatey-management-service 0.12.0 2024-01-22 15:23:16,017 5280 [DEBUG] - chocolatey-management-web 0.12.0 2024-01-22 15:23:16,017 5280 [DEBUG] - chocolatey-vscode 0.7.2 2024-01-22 15:23:16,017 5280 [DEBUG] - chocolatey-vscode.extension 1.1.0 2024-01-22 15:23:16,017 5280 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5 2024-01-22 15:23:16,017 5280 [DEBUG] - dotnet-6.0-aspnetruntime 6.0.22 2024-01-22 15:23:16,017 5280 [DEBUG] - dotnet-6.0-runtime 6.0.22 2024-01-22 15:23:16,017 5280 [DEBUG] - dotnet-aspnetcoremodule-v2 16.0.23237 2024-01-22 15:23:16,017 5280 [DEBUG] - dotnetfx 4.8.0.20220524 2024-01-22 15:23:16,017 5280 [DEBUG] - jenkins 2.426.2 2024-01-22 15:23:16,017 5280 [DEBUG] - KB2919355 1.0.20160915 2024-01-22 15:23:16,033 5280 [DEBUG] - KB2919442 1.0.20160915 2024-01-22 15:23:16,033 5280 [DEBUG] - KB2999226 1.0.20181019 2024-01-22 15:23:16,033 5280 [DEBUG] - KB3033929 1.0.5 2024-01-22 15:23:16,033 5280 [DEBUG] - KB3035131 1.0.3 2024-01-22 15:23:16,033 5280 [DEBUG] - KB3063858 1.0.0 2024-01-22 15:23:16,033 5280 [DEBUG] - microsoft-edge 120.0.2210.91 2024-01-22 15:23:16,033 5280 [DEBUG] - nexus-repository 3.63.0.1 2024-01-22 15:23:16,033 5280 [DEBUG] - sql-server-express 2022.16.0.1000 2024-01-22 15:23:16,033 5280 [DEBUG] - sql-server-management-studio 19.2.56.2 2024-01-22 15:23:16,033 5280 [DEBUG] - Temurin21jre 21.0.1.1200 2024-01-22 15:23:16,033 5280 [DEBUG] - vcredist140 14.38.33130 2024-01-22 15:23:16,033 5280 [DEBUG] - vscode 1.85.2 2024-01-22 15:23:16,048 5280 [DEBUG] - vscode.install 1.85.2 2024-01-22 15:23:16,048 5280 [DEBUG] - vscode-powershell 2024.0.0 2024-01-22 15:23:16,127 5280 [DEBUG] - Performing validation checks. 2024-01-22 15:23:16,143 5280 [DEBUG] - Global Configuration Validation Checks: 2024-01-22 15:23:16,143 5280 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked 2024-01-22 15:23:16,143 5280 [DEBUG] - System State Validation Checks: 2024-01-22 15:23:16,143 5280 [DEBUG] - Reboot Requirement Checks: 2024-01-22 15:23:16,143 5280 [DEBUG] - - Pending Computer Rename = Checked 2024-01-22 15:23:16,143 5280 [DEBUG] - - Pending Component Based Servicing = Checked 2024-01-22 15:23:16,143 5280 [DEBUG] - - Pending Windows Auto Update = Checked 2024-01-22 15:23:16,143 5280 [DEBUG] - - Pending File Rename Operations = Checked 2024-01-22 15:23:16,143 5280 [DEBUG] - - Pending Windows Package Installer = Checked 2024-01-22 15:23:16,143 5280 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked 2024-01-22 15:23:16,143 5280 [DEBUG] - Cache Folder Lockdown Checks: 2024-01-22 15:23:16,143 5280 [DEBUG] - - Elevated State = Checked 2024-01-22 15:23:16,143 5280 [DEBUG] - - Folder Exists = Checked 2024-01-22 15:23:16,158 5280 [DEBUG] - - Folder lockdown = Checked 2024-01-22 15:23:16,158 5280 [INFO ] - 3 validations performed. 3 success(es), 0 warning(s), and 0 error(s). 2024-01-22 15:23:16,158 5280 [DEBUG] - The source 'https://Testy:8443/repository/ChocolateyInternal/;https://testy:8443/repository/ChocoCorePkgs/index.json;https://licensedpackages.chocolatey.org/api/v2/;https://community.chocolatey.org/api/v2/;C:\Users\Administrator\tutorials' evaluated to a 'normal' source type 2024-01-22 15:23:16,174 5280 [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. 2024-01-22 15:23:16,189 5280 [DEBUG] - Configuration: MaximumDownloadRateBitsPerSecond='0'| MaximumDownloadRateBitsPerSecondAutoSet='False'| LicensedInformation.LicenseType='BusinessTrial'| LicensedInformation.LicenseIsValid='True'| LicensedInformation.LicenseIsTrial='True'| LicensedInformation.PauseInTrial='False'| LicensedInformation.LicenseUserName='Ryan Richter Testing [100] (ryan[at REDACTED])'| LicensedInformation.LicenseExpirationDate='6/30/2024 12:00:00 AM'| LicensedInformation.LicenseNodeCount='100'| LicensedInformation.LicensedVersion='6.1.1.0'| ChocolateyVersion.Version='2.2.2.0'| ChocolateyVersion.IsLegacyVersion='False'| ChocolateyVersion.Revision='0'|ChocolateyVersion.IsSemVer2='False'| ChocolateyVersion.OriginalVersion='2.2.2.0'| ChocolateyVersion.Major='2'| ChocolateyVersion.Minor='2'|ChocolateyVersion.Patch='2'| ChocolateyVersion.IsPrerelease='False'| ChocolateyVersion.HasMetadata='False'| LicensedFeatures.UseDownloadCache='True'| LicensedFeatures.AllowSynchronization='True'| LicensedFeatures.AllowBackgroundServiceOverride='False'| LicensedFeatures.UseBackgroundService='False'| LicensedFeatures.UseBackgroundServiceWithSelfServiceSourcesOnly='True'| LicensedFeatures.UseBackgroundServiceWithNonAdministratorsOnly='False'| LicensedFeatures.UseBackgroundServiceInteractively='False'| LicensedFeatures.UseBackgroundServiceWithEmptySessions='True'| LicensedFeatures.AllowBackgroundServiceUninstallsFromUserInstallsOnly='False'| LicensedFeatures.AllowPreviewFeatures='False'| 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='True'| 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://Testy:24020/ChocolateyManagementService'| CentralManagementConfiguration.ReceiveTimeoutInSeconds='30'| CentralManagementConfiguration.SendTimeoutInSeconds='30'| CentralManagementConfiguration.CertificateValidationMode='PeerOrChainTrust'| CentralManagementConfiguration.MaxReceiveMessageSizeInBytes='2147483647'| CentralManagementConfiguration.DeploymentCheckTimerIntervalInSeconds='180'| LicensedBackgroundService.LogRetentionPolicyInDays='30'| CommandName='new'| CacheLocation='C:\Users\Administrator\AppData\Local\Temp\chocolatey'| CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'| Sources='https://Testy:8443/repository/ChocolateyInternal/;https://testy:8443/repository/ChocoCorePkgs/index.json;https://licensedpackages.chocolatey.org/api/v2/;https://community.chocolatey.org/api/v2/;C:\Users\Administrator\tutorials'| SourceType='normal'|ShowOnlineHelp='False'|Debug='False'| Verbose='False'|Trace='False'|Force='True'|Noop='False'| HelpRequested='False'|UnsuccessfulParsing='False'|RegularOutput='True'| QuietOutput='False'|PromptForConfirmation='True'| DisableCompatibilityChecks='False'|AcceptLicense='False'| AllowUnofficialBuild='False'|Input='template-tutorial Country:USA'| 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'|DownloadChecksumType='sha256'| DownloadChecksumType64='sha256'|PinPackage='False'| Information.PlatformType='Windows'| Information.PlatformVersion='10.0.20348.0'| Information.PlatformName='Windows Server 2016'| Information.ChocolateyVersion='2.2.2.0'| Information.ChocolateyProductVersion='2.2.2'| Information.FullName='choco, Version=2.2.2.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'| Information.Is64BitOperatingSystem='True'| Information.Is64BitProcess='True'|Information.IsInteractive='True'| Information.UserName='Administrator'| Information.UserDomainName='TESTY'| Information.IsUserAdministrator='True'| Information.IsUserSystemAccount='False'| Information.IsUserRemoteDesktop='False'| Information.IsUserRemote='False'|Information.IsProcessElevated='True'| Information.IsLicensedVersion='True'| Information.IsLicensedAssemblyLoaded='True'| Information.LicenseType='BusinessTrial'| Information.CurrentDirectory='C:\Users\Administrator\tutorials'| 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='True'| 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'| 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'| NewCommand.TemplateName='TutorialTemplate'| NewCommand.Name='template-tutorial'| NewCommand.AutomaticPackage='False'| NewCommand.TemplateProperties.PackageVersion='1.0.0'| NewCommand.TemplateProperties.PackageName='template-tutorial'| 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='unknown'|CacheCommand.Command='Unknown'| CacheCommand.RemoveExpiredItemsOnly='False'| 2024-01-22 15:23:16,189 5280 [DEBUG] - _ Chocolatey:ProChocolateyNewCommand - Normal Run Mode _ 2024-01-22 15:23:16,189 5280 [INFO ] - Creating a new package specification at C:\Users\Administrator\tutorials\template-tutorial 2024-01-22 15:23:16,189 5280 [DEBUG] - Attempting to delete directory "C:\Users\Administrator\tutorials\template-tutorial". 2024-01-22 15:23:16,204 5280 [DEBUG] - Attempting to create directory "C:\Users\Administrator\tutorials\template-tutorial". 2024-01-22 15:23:16,204 5280 [DEBUG] - Attempting to create directory "C:\Users\Administrator\tutorials\template-tutorial\tools". 2024-01-22 15:23:16,204 5280 [DEBUG] - Set token for 'PackageVersion' to '1.0.0' 2024-01-22 15:23:16,204 5280 [DEBUG] - Set token for 'PackageName' to 'template-tutorial' 2024-01-22 15:23:16,204 5280 [DEBUG] - Token Values after merge: 2024-01-22 15:23:16,204 5280 [DEBUG] - PackageName=template-tutorial 2024-01-22 15:23:16,204 5280 [DEBUG] - PackageNameLower=template-tutorial 2024-01-22 15:23:16,204 5280 [DEBUG] - PackageVersion=1.0.0 2024-01-22 15:23:16,204 5280 [DEBUG] - MaintainerName=**REPLACE_YOUR_NAME** 2024-01-22 15:23:16,204 5280 [DEBUG] - MaintainerRepo=**REPLACE_YOUR_REPO** 2024-01-22 15:23:16,204 5280 [DEBUG] - AutomaticPackageNotesInstaller= 2024-01-22 15:23:16,204 5280 [DEBUG] - AutomaticPackageNotesNuspec= 2024-01-22 15:23:16,204 5280 [DEBUG] - InstallerType=EXE_MSI_OR_MSU 2024-01-22 15:23:16,204 5280 [DEBUG] - Url= 2024-01-22 15:23:16,204 5280 [DEBUG] - Url64= 2024-01-22 15:23:16,204 5280 [DEBUG] - SilentArgs=/qn /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`" 2024-01-22 15:23:16,204 5280 [DEBUG] - Checksum= 2024-01-22 15:23:16,204 5280 [DEBUG] - ChecksumType=sha256 2024-01-22 15:23:16,204 5280 [DEBUG] - Checksum64= 2024-01-22 15:23:16,204 5280 [DEBUG] - ChecksumType64=sha256 2024-01-22 15:23:16,204 5280 [DEBUG] - AdditionalProperties=System.Collections.Generic.Dictionary`2[System.String,System.String] 2024-01-22 15:23:16,204 5280 [INFO ] - Generating package from custom template at 'C:\ProgramData\chocolatey\templates\TutorialTemplate'. 2024-01-22 15:23:16,204 5280 [DEBUG] - Creating directory C:\Users\Administrator\tutorials\template-tutorial\tools 2024-01-22 15:23:16,220 5280 [INFO ] - Generating template to a file at 'C:\Users\Administrator\tutorials\template-tutorial\template-tutorial.nuspec' 2024-01-22 15:23:16,220 5280 [DEBUG] - template-tutorial 1.0.0 SweetTooth template-tutorial (Install) Chocolatey] template

Tutorial package from template This was built from a template with [[Country]] passed to it. 2024-01-22 15:23:16,220 5280 [INFO ] - Generating template to a file at 'C:\Users\Administrator\tutorials\template-tutorial\tools\chocolateyInstall.ps1' 2024-01-22 15:23:16,220 5280 [DEBUG] - Write-Host "I am from [[Country]]" 2024-01-22 15:23:16,220 5280 [INFO ] - Successfully generated template-tutorial package specification files at 'C:\Users\Administrator\tutorials\template-tutorial' 2024-01-22 15:23:16,220 5280 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... 2024-01-22 15:23:16,236 5280 [DEBUG] - [Countdown] Determining how long until license expires 2024-01-22 15:23:16,252 5280 [DEBUG] - chocolatey 2.2.2 2024-01-22 15:23:16,252 5280 [DEBUG] - chocolatey.extension 6.1.1 2024-01-22 15:23:16,252 5280 [DEBUG] - chocolatey-agent 2.1.1 2024-01-22 15:23:16,252 5280 [DEBUG] - chocolatey-compatibility.extension 1.0.0 2024-01-22 15:23:16,267 5280 [DEBUG] - chocolatey-core.extension 1.4.0 2024-01-22 15:23:16,267 5280 [DEBUG] - chocolatey-dotnetfx.extension 1.0.1 2024-01-22 15:23:16,267 5280 [DEBUG] - chocolateygui 2.1.0 2024-01-22 15:23:16,267 5280 [DEBUG] - chocolateygui.extension 2.0.0 2024-01-22 15:23:16,267 5280 [DEBUG] - chocolatey-license 2024.6.30.100 2024-01-22 15:23:16,267 5280 [DEBUG] - chocolatey-management-database 0.12.0 2024-01-22 15:23:16,267 5280 [DEBUG] - chocolatey-management-service 0.12.0 2024-01-22 15:23:16,267 5280 [DEBUG] - chocolatey-management-web 0.12.0 2024-01-22 15:23:16,283 5280 [DEBUG] - chocolatey-vscode 0.7.2 2024-01-22 15:23:16,283 5280 [DEBUG] - chocolatey-vscode.extension 1.1.0 2024-01-22 15:23:16,283 5280 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5 2024-01-22 15:23:16,283 5280 [DEBUG] - dotnet-6.0-aspnetruntime 6.0.22 2024-01-22 15:23:16,283 5280 [DEBUG] - dotnet-6.0-runtime 6.0.22 2024-01-22 15:23:16,283 5280 [DEBUG] - dotnet-aspnetcoremodule-v2 16.0.23237 2024-01-22 15:23:16,283 5280 [DEBUG] - dotnetfx 4.8.0.20220524 2024-01-22 15:23:16,283 5280 [DEBUG] - jenkins 2.426.2 2024-01-22 15:23:16,283 5280 [DEBUG] - KB2919355 1.0.20160915 2024-01-22 15:23:16,283 5280 [DEBUG] - KB2919442 1.0.20160915 2024-01-22 15:23:16,298 5280 [DEBUG] - KB2999226 1.0.20181019 2024-01-22 15:23:16,298 5280 [DEBUG] - KB3033929 1.0.5 2024-01-22 15:23:16,298 5280 [DEBUG] - KB3035131 1.0.3 2024-01-22 15:23:16,298 5280 [DEBUG] - KB3063858 1.0.0 2024-01-22 15:23:16,298 5280 [DEBUG] - microsoft-edge 120.0.2210.91 2024-01-22 15:23:16,298 5280 [DEBUG] - nexus-repository 3.63.0.1 2024-01-22 15:23:16,298 5280 [DEBUG] - sql-server-express 2022.16.0.1000 2024-01-22 15:23:16,298 5280 [DEBUG] - sql-server-management-studio 19.2.56.2 2024-01-22 15:23:16,298 5280 [DEBUG] - Temurin21jre 21.0.1.1200 2024-01-22 15:23:16,298 5280 [DEBUG] - vcredist140 14.38.33130 2024-01-22 15:23:16,314 5280 [DEBUG] - vscode 1.85.2 2024-01-22 15:23:16,314 5280 [DEBUG] - vscode.install 1.85.2 2024-01-22 15:23:16,314 5280 [DEBUG] - vscode-powershell 2024.0.0 2024-01-22 15:23:16,345 5280 [DEBUG] - [Programs & Features Package Sync] Ensuring all installed packages that don't have software natively installed are not listed in Programs and Features. 2024-01-22 15:23:16,361 5280 [DEBUG] - chocolatey 2.2.2 2024-01-22 15:23:16,361 5280 [DEBUG] - chocolatey.extension 6.1.1 2024-01-22 15:23:16,376 5280 [DEBUG] - chocolatey-agent 2.1.1 2024-01-22 15:23:16,376 5280 [DEBUG] - chocolatey-compatibility.extension 1.0.0 2024-01-22 15:23:16,376 5280 [DEBUG] - chocolatey-core.extension 1.4.0 2024-01-22 15:23:16,376 5280 [DEBUG] - chocolatey-dotnetfx.extension 1.0.1 2024-01-22 15:23:16,376 5280 [DEBUG] - chocolateygui 2.1.0 2024-01-22 15:23:16,376 5280 [DEBUG] - chocolateygui.extension 2.0.0 2024-01-22 15:23:16,376 5280 [DEBUG] - chocolatey-license 2024.6.30.100 2024-01-22 15:23:16,376 5280 [DEBUG] - chocolatey-management-database 0.12.0 2024-01-22 15:23:16,376 5280 [DEBUG] - chocolatey-management-service 0.12.0 2024-01-22 15:23:16,392 5280 [DEBUG] - chocolatey-management-web 0.12.0 2024-01-22 15:23:16,392 5280 [DEBUG] - chocolatey-vscode 0.7.2 2024-01-22 15:23:16,392 5280 [DEBUG] - chocolatey-vscode.extension 1.1.0 2024-01-22 15:23:16,392 5280 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5 2024-01-22 15:23:16,392 5280 [DEBUG] - dotnet-6.0-aspnetruntime 6.0.22 2024-01-22 15:23:16,392 5280 [DEBUG] - dotnet-6.0-runtime 6.0.22 2024-01-22 15:23:16,392 5280 [DEBUG] - dotnet-aspnetcoremodule-v2 16.0.23237 2024-01-22 15:23:16,392 5280 [DEBUG] - dotnetfx 4.8.0.20220524 2024-01-22 15:23:16,392 5280 [DEBUG] - jenkins 2.426.2 2024-01-22 15:23:16,392 5280 [DEBUG] - KB2919355 1.0.20160915 2024-01-22 15:23:16,392 5280 [DEBUG] - KB2919442 1.0.20160915 2024-01-22 15:23:16,392 5280 [DEBUG] - KB2999226 1.0.20181019 2024-01-22 15:23:16,392 5280 [DEBUG] - KB3033929 1.0.5 2024-01-22 15:23:16,392 5280 [DEBUG] - KB3035131 1.0.3 2024-01-22 15:23:16,409 5280 [DEBUG] - KB3063858 1.0.0 2024-01-22 15:23:16,409 5280 [DEBUG] - microsoft-edge 120.0.2210.91 2024-01-22 15:23:16,409 5280 [DEBUG] - nexus-repository 3.63.0.1 2024-01-22 15:23:16,409 5280 [DEBUG] - sql-server-express 2022.16.0.1000 2024-01-22 15:23:16,409 5280 [DEBUG] - sql-server-management-studio 19.2.56.2 2024-01-22 15:23:16,409 5280 [DEBUG] - Temurin21jre 21.0.1.1200 2024-01-22 15:23:16,409 5280 [DEBUG] - vcredist140 14.38.33130 2024-01-22 15:23:16,409 5280 [DEBUG] - vscode 1.85.2 2024-01-22 15:23:16,409 5280 [DEBUG] - vscode.install 1.85.2 2024-01-22 15:23:16,409 5280 [DEBUG] - vscode-powershell 2024.0.0 2024-01-22 15:23:16,455 5280 [DEBUG] - Exiting with 0 ~~~

Workarounds

Run a choco pack against you .nuspec file.

Proposed Solution

N/A

Related Issues and Tickets

Done Checklist

┆Issue is synchronized with this Gitlab issue by Unito