Skip to content

[FEATURE REQUEST] Use a human-editable InstallationOptions format instead of the current JSON #5260

Description

@eugenesvk

Please confirm these before moving forward.

  • I have searched for my feature proposal and have not found a work-in-progress/duplicate/resolved/discarded issue.
  • This proposal is a completely new feature. If you want to suggest an improvement or an enhancement, please use this template.

Describe the new feature

I'd like to be able to batch-replace CustomParameters_Install fields in the Local\UniGetUI\InstallationOptions app.json files, but their current formatting is awful human-readability-wise, for example, instead of
--location "<ProgramFiles>\1 Sub\2 Dir\App" you get

  "CustomParameters_Install": [
    "--location",
    "\u0022\u003CProgramFiles\u003E\\1",
    "Sub\\2",
    "Dir\\App\u0022"
  ]

which makes it very hard to do a simple search&replace

Instead a few things would be much better:

  • use actual < chars intead of their \u1234 codes
  • don't use separate fields as space seprators
  • better yet, switch to a modern format that has proper raw string type so that you wouldn't need to do the \\ abomination (one of the more expressive format I know is KDL, but any other with similar characterictis will do
    Then the above would be a simple
CustomParameters_Install #"--location "<ProgramFiles>\1 Sub\2 Dir\App""#
// or, if you need key=value pairs
CustomParameters_Install --location=#""<ProgramFiles>\1 Sub\2 Dir\App""#

which is searchable in exactly the same format you'd type it in the GUI text field

Describe how this new feature could help users

Avoid wasting time modifying installation paths in the UI with a dozen clicks/typing operations per app

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-featureA new feature that could be useful in WingetUI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions