I'm tried to automate installation of a range of programs, including 7-zip, Adobe Reader, Beyond Compare, etc, for about 30 different programs.
For the first 2, I was able to find something that worked for product_id
. Adobe Reader required hunting through the registry, trying stuff, and eventually getting lucky.
For Beyond Compare, I'm stuck. Spent hours searching through the registry and trying different things. Whatever I try, the module re-install b/c it doesn't recognize the product id.
I've also tried finding some mysterious MSI file, as per various forums recommendations, but one doesn't seem to exist for Beyond Compare.
In addition, I've tried a LOT of Powershell commands to try to gather more detailed installation information, but still with no luck (winget
, Get-WmiObject
, etc).
What am I missing? Is there another way to get the product_id
for installers with no MSI file, or post installation? Is making this module idempotent a lost cause?
- name: Install Beyond Compare
ansible.windows.win_package:
path: C:\temp\BCompare-4.4.3.26655.exe
product_id: ?
arguments: /VERYSILENT /NORESTAR
For product_id
, I've tried a range of things:
BCompare
BeyondCompare
Scooter Software
Beyond Compare 4
Beyond Compare 4.4.3
Research Links