Hi all,
I’m trying to automate an uninstall of Microsoft Visual Studio 2015.
IN my playbook I have:
- name: VS2015 | Uninstall Visual Studio Professional With Updates 2015
win_command:
path: ‘C:\ProgramData\Package Cache{68432bbb-c9a5-4a7b-bab3-ae5a49b28303}\vs_professional.exe /uninstall /force’
_raw_params: ‘C:\ProgramData\Package Cache{68432bbb-c9a5-4a7b-bab3-ae5a49b28303}\vs_professional.exe /uninstall /force’
However, when I run the play I get :
fatal: [100.126.255.206]: FAILED! => {
“changed”: false,
“cmd”: “C:\ProgramData\Package Cache\{68432bbb-c9a5-4a7b-bab3-ae5a49b28303}\vs_professional.exe /uninstall /force”,
“msg”: “Exception calling "SearchPath" with "1" argument(s): "Could not locate the following executable C:\ProgramData\Package.exe"”,
“rc”: 2
}
Thus, I think I have the command incorrect. I have verified that if I directly click that exe in that path, the setup comes up which gives you that option to uninstall.
Anyone successfully gotten this to work?
Best,
larry