| Puppet Version: 6.17.0 Puppet Server Version: 6.12.1 OS Name/Version: Windows In order to uninstall a package from Windows agent, I created a package resource, which also included specific "uninstall_options" for the package. While the correct uninstaller ("...\uninstall.exe", as recorded in the registry) was executed, the package wasn't uninstalled. I checked with Process Explorer and found that the uninstaller was called w/o any option. So I ended up using an exec resource...
package {'Sentinel Agent': |
|
ensure => absent, |
|
uninstall_options => ['/uninstall', '/norestart', '/q', "/k=\"${unlock_key}\""], |
|
}
|
Desired Behavior: Puppet should have uninstalled the package by passing the correct options to the uninstaller. Actual Behavior: Options were not passed, which lead to package not being uninstalled. (Maybe related: There was also no error in the report, but that might have been caused by the uninstaller itself, which might not have reported one). |