Unexpected RC while uninstallaing a package using win_package

Hi All,

Im trying to uninstall a package using win_package but getting the following error, Playbook is able to remove the software from the server but at the end Im getting this error.

“msg”: “unexpected rc from install G:\Program Files\IBM\cognos\tm1_64\uninstall\uninst.exe: see rc, stdout, and stderr for more details”,

“rc”: 2,

this is the playbook,

- win_package:
arguments: “/S”
path: “G:\Program Files\IBM\cognos\tm1_64\uninstall\uninst.exe”
product_id: auto

Thanks and Regards,

Perhaps try running interactively directly on target machine. There should be a logging option somehow too

We set the ‘stdout’ and ‘stderr’ return keys to what was returned when trying to run that executable. You should see what the values were for that to try and debug it futher. If nothing was returned on those keys then you need to look into Cognos and see what an rc of 2 means. This could be found in log files related to that application or some doc on IBM’s website. The value is typically application specific and not something we could really help you with.

Thanks

Jordan