[Solved] Java detection

Topics: Publishing Issue
Oct 10, 2013 at 6:46 AM
Edited Oct 10, 2013 at 6:48 AM
Hello,

We have all kinds of Java on our environnment (6 and 7 with different updates). We would like to use WPP to patch all of them to the lastest version (7 update 40). But we don't want the computers that don't have Java to have it installed.

Therefore i collected all the product codes of the existing installations (31 of them) and we added a OR rule when the update packet checks if it's installable. It goes like that:

<Start AND>
<lar:Not>
<msiar:MsiProductInstalled ProductCode="{26a24ae4-039d-4ca4-87b4-2f83217040ff}"/>
</lar:Not>

<Start OR>
<bar:RegValueExists Key="HKEY_LOCAL_MACHINE" Subkey="SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders" Value="C:\Windows\Installer{26A24AE4-039D-4CA4-87B4-2F83217013FF}" Type="REG_SZ"/>

<bar:RegValueExists Key="HKEY_LOCAL_MACHINE" Subkey="SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders" Value="C:\Windows\Installer{26A24AE4-039D-4CA4-87B4-2F83217011FF}" Type="REG_SZ"/>

... with the 31 keys

<End OR>
<End AND>

The update never gets detected on machines that have a Java installed. We tried with 2 detections only (7 update 25 and 7 update 21) and the updates sometimes gets detected, sometimes not (reboots, ...). When we don't make any registry related detection, the update is always detected for installation (but as we don't want the computers without Java to install, this is not a solution for us)

We surely do something wrong, but i don't know anymore where to check...

Thanks in advance for your help
Coordinator
Oct 10, 2013 at 8:00 AM
Hello,
Subkey="SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders" Value="C:\Windows\Installer{26A24AE4-039D-4CA4-87B4-2F83217013FF}" Type="REG_SZ"/>
Don't you have forgot the '\' at the end of the GUID ?
-> Subkey="SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders" Value="C:\Windows\Installer{26A24AE4-039D-4CA4-87B4-2F83217013FF} \ " Type="REG_SZ"/>
Oct 10, 2013 at 8:05 AM
Hello,

We have tried with and without the slash, with no effect. The actual test with 2 detections only (7 update 25 and 7 update 21) has the slash in, but gets detected only sometimes...
Coordinator
Oct 10, 2013 at 8:32 AM
gets detected only sometimes...
Do you mean that on one specific computer Java is sometimes detected and sometimes not detected ?
Or, on some computers Java is detected and on some other computers it is not detected ?

Why don't you use MSI Rules ?
Oct 10, 2013 at 8:39 AM
Hello,

On the same computer it's sometimes detected, sometimes not. When it's not, we change something in the rule (the slash for example) and then it gets detected. But we couldn't reproduce the detection problem at 100%...

We'll try with MSI rules and i keep you updated
Oct 10, 2013 at 9:33 AM
It seems to function much better with the MSI rules

Thank you for your excelelnt and quick support !
Marked as answer by DCourtel on 10/12/2013 at 8:53 AM