[Solved] Installation Rules

Topics: Publishing Issue
Apr 14, 2013 at 1:56 PM
Hi!

First at all - I hope you will go forward with this tool. It's realy amazing!!!!!!

Now, I have a question about the Rules for detect and install some apps.
I will use Java JRE 7u17 as example.

I want to install jre17x86 and jre17x64. Both editions needs to be installed on x64 machines and the x86 only on machines with x86 CPU.
At the moment I have created 3 packages because I have some problems with the rules but I want to have 2 packages at least.

The problem with the both MSI package is that x86 and x64 will have the same product id. I don't know who the hell has decided this but I guess with your rules it should be possible to sort this out.

3 values for the x86 package:

1. (x86 and x64) - MSI ID:
26A24AE4-039D-4CA4-87B4-2F86417017FF
2. After Installing it on x64:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.7.0_17
3. After Installing it on x86:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7.0_17

Now, I will notice down an rule for this:

IF exists 26A24AE4-039D-4CA4-87B4-2F86417017FF
AND
{ IF CPU = x64 AND "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment\1.7.0_17}
OR
{ IF CPU = x86 AND HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7.0_17}
PACKAGE IS INSTALLED

ELSE

PACKAGE IS NOT INSTALLED

I guess this rule should be right. But this will not work. Can you give me a short example to understand the rules within your tool?

Thanks in advance!
Coordinator
Apr 14, 2013 at 5:04 PM
torstenj wrote:
Hi!
Hi torstenj, and thank you for your interest in WPP.
First at all - I hope you will go forward with this tool. It's realy amazing!!!!!!
If you like WPP, help me to improve it. Report me any bug or missing features !
The problem with the both MSI package is that x86 and x64 will have the same product id. I don't know who the hell has decided this but I guess with your rules it should be possible to sort this out.
I publish Java package for 1 year now and I never saw that before. Which files do you publish :
 * Exe file from Oracle ?
 * Msi file after manually installing the EXE file on a computer ?
I guess this rule should be right. But this will not work.
How a 64bit computer report about x86 package and x64 package ?
How a 32bit computer report about x86 package and x64 package ?
Coordinator
Apr 14, 2013 at 5:56 PM
I've just check :
Installing Java 7 Update 17 with the EXE file from Oracle generate an MSI file which have as Product Code :
  • For x64 : 26A24AE4-039D-4CA4-87B4-2F8 64 17017FF
  • For x86 : 26A24AE4-039D-4CA4-87B4-2F8 32 17017FF
Oracle always use the same pattern for his Java MSI :
--> 26A24AE4-039D-4CA4-87B4-2F8 xx yyyyy FF

Where :
  • xx is 32 for x86 and 64 for x64.
  • yyyyy is the version number.
Your rules should be :
  1. For x86 package :
    • Installed Rule :
      • IF MSI product code present (26A24AE4-039D-4CA4-87B4-2F8 32 17017FF) Then already installed
    • Installable Rule :
      • IF MSI product code NOT present (26A24AE4-039D-4CA4-87B4-2F8 32 17017FF) Then Install if approve (If you have no Itanium processor computers)
  2. For x64 package :
    • Installed Rule:
      • IF MSI product code present (26A24AE4-039D-4CA4-87B4-2F8 64 17017FF) Then already installed
    • Installable Rule :
      • IF MSI product code NOT present (26A24AE4-039D-4CA4-87B4-2F8 64 17017FF) AND CPU = x64 Then Install if approve
Let me know if you have any problem.
Marked as answer by DCourtel on 10/8/2013 at 11:23 AM
Apr 14, 2013 at 6:05 PM
Ohhh damn!!!
I have had only compared the last 4 digits. ;-)
Sorry m8!!!

This will explain a lot of troubles why something was not working because I have only done a copy of this MSI ID string.
Anyway - thanks for your quick feedback and enjoy your sunday evening!

Best regards,

Torsen