[wpkg-users] Using variables and their value

Frank Morawietz nestolea at gmail.com
Thu May 7 22:34:38 CEST 2015


Hello fellows,

I started to build my own installer for Java 8 using the information 
from this list and the web site. But very soon I got stuck and came to a 
point where I need somebody else to help me thinking...

I took the first Java 8 installer from <http://wpkg.org/Java> as 
starting point and it still looks very similar:

<package
   id="java"
   name="Java Runtime Environment"
   revision="%VERSION%"
   reboot="false"
   priority="100">

     <variable name="UPDATEVER" value="08" />
     <variable name="SHORTUPDATEVER" value="31" />
     <variable name="PREVSHORTUPDATEVER" value="25" /> <!-- Previous 
version -->
     <variable name="VERSION" value="8.0.%SHORTUPDATEVER%" />
[...]

I make use of variables as I'm used to and do in all my installers.

But this results in the following log messages:

2015-05-07 18:49:31, DEBUG   : Reading variables from package 'Java 
Runtime Environment'.
2015-05-07 18:49:31, DEBUG   : Got variable 'UPDATEVER' of value '08'
2015-05-07 18:49:31, DEBUG   : Got variable 'SHORTUPDATEVER' of value '31'
2015-05-07 18:49:31, DEBUG   : Got variable 'PREVSHORTUPDATEVER' of 
value '25'
2015-05-07 18:49:31, DEBUG   : Got variable 'VERSION' of value 
'8.0.%SHORTUPDATEVER%'

All variables but one get substituted correctly. But why does one fail?
My only idea from searching the mailing list archives is that it could 
be a matter of order of the variables. But then, it's exactly the order 
as on <http://wpkg.org/Java> and I also use comparable schemes in other 
(working) installers...

Can someone point me to my mistake?

Puzzled,
Frank
-- 
Frank Morawietz



More information about the wpkg-users mailing list