I’m unable to uninstall notepad++ in the Windows host:
-
name: uninstall notepad++
win_package:
path: ‘{{ notepadpp_install_dir }}\uninstall.exe’
product_id: ‘Notepad++*’
arguments: /S
state: present -
name: uninstall notepad++
win_command: powershell.exe -ExecutionPolicy ByPass -File D:\un.ps1
args:
stdin: get-package notepad++* | % { & $_.Meta.Attributes[“UninstallString”] /S}
Every time I’m seeing the change but nothing happened on the host. can some please advise and help.
I’m using service account for this but able to install without any incident.