WinGetYamlGenerator icon indicating copy to clipboard operation
WinGetYamlGenerator copied to clipboard

YAML file generated is incorrect

Open aavdberg opened this issue 4 years ago • 6 comments

When i generate a YAML file the syntax of the file is incorrect.

Switches have to be following syntax

Switches:
  Silent: /s
  SilentWithProgress: /

To get no warning like:

Manifest validation succeeded with warnings. Manifest Warning: Silent and SilentWithProgress switches are not specified for InstallerType exe. Please make sure the installer can run unattended.

aavdberg avatar Jan 25 '21 15:01 aavdberg

Can you share the YAML file you generated, and a screenshot of how you set it in the app? The manifest docs say the strings are arbitrary and defined by the installer; WinGetYamlGenerator doesn't try to validate them at all.

ptorr-msft avatar Jan 29 '21 00:01 ptorr-msft

image image image

En this how i changed it so that i don't get error image

aavdberg avatar Jan 29 '21 12:01 aavdberg

OK thanks - so if you have one of them then you need both of them? Is that the problem?

ptorr-msft avatar Feb 06 '21 00:02 ptorr-msft

Yes indeed

Switches: Silent: /s

only will give the following warning. image

aavdberg avatar Feb 06 '21 07:02 aavdberg

Not necessarialy, but Silent now needs to be a sub option of Switches according to the new spec.

Switches:
  Silent: /s

Regarding the new spec and the new options that come with it, I think the UI should be updated to reflect those changes. Updating all of this may not be needed as a CLI is being created for submitting packages that might include those options.

s-crypt avatar Mar 30 '21 06:03 s-crypt

I need to update for the new schema.. will look into it this week[end] hopefully.

ptorr-msft avatar Apr 06 '21 21:04 ptorr-msft