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:
BCompareBeyondCompareScooter SoftwareBeyond Compare 4Beyond Compare 4.4.3
Research Links
Right after I post this, I FINALLY figured it out ... Gonna leave this in case it helps someone.
product_id: 7-Zipproduct_id: '{AC76BA86-7AD7-1033-7B44-AC0F074E4100}'product_id: BeyondCompare4_is1How I found Beyond Compare's
product_id:cmdregedit> enterComputer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\BeyondCompare4_is1