Take a look at your registry path 
HKLM:\Software\microsoft\windows\currentversion\uninstall.

Each installed package should register there, and I think the idea is that 
guids should be used, but as you can see from the software installed on my 
machine some packages just use the package name:

<https://lh3.googleusercontent.com/-7gwhNDMPOWA/VsWT6yl8PdI/AAAAAAAAFEM/7eMqkSLP72o/s1600/2016-02-18%2B10_49_04-Program%2BManager.png>

So, if I for instances wanted to create an ansible play for installing 
android studio, I would simply used productId "Android Studio".

If the software you want to install doesn't register itself under the 
uninstall registry path there's not much you can do with win_package, as it 
requires a registry-based lookup to firugre out if the software is already 
installed or not. You could possibly test of the installed files are 
already present and then do win_script to install the package in a more 
manual way maybe. In any case, win_package requires that the installed 
software plays nicely and registers itself in the uninstall path.


On Thursday, February 18, 2016 at 12:46:50 AM UTC+1, Gerald Spencer wrote:
>
> I am currently going through and installing all of the various software 
> that is needed to provision our windows 7 machines. Unfortunately, when I 
> attempt to install the latest Anaconda3 from continuum, I am unable to 
> locate that products guid (product_id). It doesn't appear in the normal 
> registry locations for 64 or 32 installs, in the wmic.exe get product 
> powershell output or under a Get-ChildItem Win32_Product powershell output 
> as well. 
>
> I generated a guid, but after the program installed it failed since it was 
> unable to locate the product_id to see if it was installed (the error was 
> basically, the program appeared to install correctly, but it was unable to 
> located the product_id). 
>
> Since the product_id is required for this module is there anything I can 
> do? I double the win_msi package would work due to the face that the 
> anaconda3 installer is a installshield exe. 
>
> I currently have a version by repackaging the exe as a msi in AdminStudio, 
> but that isn't ideal.
>
> Cheers
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1478e514-30ce-4cc3-b5b6-ae69137d4b1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to