<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I never got my previous attempt with nested packages working reliably (where a package depends on a stub package that in turn depends on other packages depending on architecture) without sometimes it wanting to keep installing and immediately
 uninstalling the same packages… My workaround was to just include the stub package in the computer profile directly rather than as a dependency from a package that needed it, and all seems well.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anyway, now a new question with nested packages which probably isn’t possible:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Again, I have created a stub package for Java, which then includes sub-packages for both the x86 and x64 java versions that only install the single architecture, simplifying checks and install/uninstall options.<o:p></o:p></p>
<p class="MsoNormal">Is it possible to set a variable in the parent ‘stub’ package that can then be accessed in the child packages?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">My testing suggests not.  Setting JAVA_VERSION in the parent package isn’t accessible from the child packages - unless I’m doing something wrong?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Not a huge problem, only trying to simplify my packages by just having one version number to change in a consistent place to reduce the chance of one architecture being updated and the second missed (yes, I could set it in the profile but
 then that isn’t consistent with my other packages).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Package definition is nothing special:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">                <package id="java6" name="Java Runtime 6" revision="1" reboot="false" priority="70"><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt;text-indent:36.0pt"><variable name="JAVA_VERSION" value="35"><o:p></o:p></p>
<p class="MsoNormal">                                <include package-id="java6-x86" /><o:p></o:p></p>
<p class="MsoNormal">                                <include package-id="java6-x64" architecture="x64" /><o:p></o:p></p>
<p class="MsoNormal">                </package><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">                <package<o:p></o:p></p>
<p class="MsoNormal">                                id="java6-x86"<o:p></o:p></p>
<p class="MsoNormal">                                name="Java Runtime 6 (x86)"<o:p></o:p></p>
<p class="MsoNormal">                                revision="%JAVA_VERSION%"<o:p></o:p></p>
<p class="MsoNormal">                                reboot="false"<o:p></o:p></p>
<p class="MsoNormal">                                priority="60"><o:p></o:p></p>
<p class="MsoNormal">                                <o:p></o:p></p>
<p class="MsoNormal">                                <check type="uninstall" condition="exists" path="Java(TM) 6 Update %JAVA_VERSION%" /><o:p></o:p></p>
<p class="MsoNormal">                ….<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Steve.<o:p></o:p></p>
</div>
</body>
</html>