ChocolateyPackages icon indicating copy to clipboard operation
ChocolateyPackages copied to clipboard

Upgrading visualstudio2019-workload-nativedesktop to v1.0.1 fails

Open Schroedingers-Cat opened this issue 4 years ago • 1 comments

When upgrading this previously successfully installed package for instance via:

choco upgrade visualstudio2019-workload-nativedesktop -ydv

It'll fail with

ERROR: Die Zeichenfolge hat kein Abschlusszeichen: '.

which means basically that the string wasn't properly terminated. Here's the full verbose log: https://pastebin.com/pKrBX4xS

Schroedingers-Cat avatar Mar 15 '21 17:03 Schroedingers-Cat

It seems to be crashing somewhere inside Chocolatey, before the package install script starts actually executing. You should probably report this to https://github.com/chocolatey/choco.

However, I can see from the log that you are using the choco feature "use remembered arguments for upgrades". This is not needed for Visual Studio packages and may, in fact, cause issues (#99). Here it seems that this is what triggers the bug inside choco (some quoting error).

As a last remark - the workload packages (visualstudioNNNN-workload-*) do not really need to be upgraded. Upon first installation, the package adds the workload to Visual Studio, but upgrading the package really has no effect. You need to upgrade the main, "product" package (in this case visualstudio2019<community|enterprise|professional>) in order to upgrade Visual Studio (regardless of what workloads were added).

jberezanski avatar Mar 22 '21 22:03 jberezanski

Closing as it seems to be an issue with choco.exe, not with the package.

jberezanski avatar May 03 '23 17:05 jberezanski