chocolatey / chocolatey-licensed-issues

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

Title Field Ignored When Creating Packages with Package Builder and with Choco New Command #384

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

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

What You Are Seeing?

When creating a package, the Title field's value is not respected at creation time.

What is Expected?

Whatever is entered in the Title field within Package Builder or passed with the Title=<value> option when running choco new should appear between the title tags in the .nuspec file, and passed accordingly to the Name and Package Title fields in Chocolatey Central Management.

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

  1. Right-click an installer and select Create Chocolatey package...
  2. Fill out the Title field with anything
  3. Select Generate
  4. Open the .nupkg and view the .nuspec
  5. Title will be Package ID and (Install) instead of the value entered before compiling

Alternatively, Stephen provided code to the customer:

choco new --file='C:\temp\7zip_x64.msi' --build-package --output-directory='c:\temp' Title='7zip'

This ended up providing the same result as the above step using Package Builder, as evidenced in the ticket.

System Details

Output Log

N/A

Workarounds

After the package is created, you can open the .nupkg and edit the .nuspec file between the title tags with anything you want and save it, then install the package and this will appear as intended when the machine checks in to CCM.

Related Issues and Tickets

Zendesk Ticket 21438

┆Issue is synchronized with this Gitlab issue by Unito