The --Override
argument is only for use with the installargs parameter.
It can't be used to override the softwareName being passed in to, e.g., Uninstall-ChocolateyPackage
(or further down, Get-UninstallRegistryKey
).
You'll need to modify your uninstall script to say newforma*
instead of newforma12.1*
.