<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Am 07.05.2015 um 22:34 schrieb Frank
Morawietz:<br>
</div>
<blockquote cite="mid:554BCC5E.9070004@gmail.com" type="cite">Hello
fellows,
<br>
<br>
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...
<br>
<br>
I took the first Java 8 installer from
<a class="moz-txt-link-rfc2396E" href="http://wpkg.org/Java"><http://wpkg.org/Java></a> as starting point and it still looks
very similar:
<br>
<br>
<package
<br>
id="java"
<br>
name="Java Runtime Environment"
<br>
revision="%VERSION%"
<br>
reboot="false"
<br>
priority="100">
<br>
<br>
<variable name="UPDATEVER" value="08" />
<br>
<variable name="SHORTUPDATEVER" value="31" />
<br>
<variable name="PREVSHORTUPDATEVER" value="25" />
<!-- Previous version -->
<br>
<variable name="VERSION" value="8.0.%SHORTUPDATEVER%" />
<br>
[...]
<br>
<br>
I make use of variables as I'm used to and do in all my
installers.
<br>
<br>
But this results in the following log messages:
<br>
<br>
2015-05-07 18:49:31, DEBUG : Reading variables from package
'Java Runtime Environment'.
<br>
2015-05-07 18:49:31, DEBUG : Got variable 'UPDATEVER' of value
'08'
<br>
2015-05-07 18:49:31, DEBUG : Got variable 'SHORTUPDATEVER' of
value '31'
<br>
2015-05-07 18:49:31, DEBUG : Got variable 'PREVSHORTUPDATEVER'
of value '25'
<br>
2015-05-07 18:49:31, DEBUG : Got variable 'VERSION' of value
'8.0.%SHORTUPDATEVER%'
<br>
<br>
All variables but one get substituted correctly. But why does one
fail?
<br>
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 <a class="moz-txt-link-rfc2396E" href="http://wpkg.org/Java"><http://wpkg.org/Java></a> and I also
use comparable schemes in other (working) installers...
<br>
<br>
Can someone point me to my mistake?
<br>
<br>
Puzzled,
<br>
Frank
<br>
</blockquote>
It depends on when the variable value gets printed, before or after
the variable expansion.<br>
How does it look like when it is actually in use?<br>
<br>
Which WPKG.js release are you using?<br>
<br>
<div class="moz-signature">-- <br>
<b>Stefan P.</b><br>
<br>
Top-posting:<br>
A: Because it messes up the order in which people normally read
text.<br>
Q: Why is top-posting such a bad thing?<br>
A: Top-posting.<br>
Q: What is the most annoying thing in e-mail?</div>
</body>
</html>