<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<div style="" class="WordSection1">
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman","serif";" class="MsoNormal">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">Hi,</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman","serif";" class="MsoNormal">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"><span style=""> 
</span>Just looking for advice on whether I can make this simpler.<span style=""> 
</span>The aim is to install the correct bit version of Visio or Project for the corresponding bit version of Office 2013 that is already installed.<span style=""> 
</span>If Office 2013 is not installed then install the bit version that matches Windows 7 e.g. W764 = X64 version of Visio/Project.</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman","serif";" class="MsoNormal">
  I've research the bitness versus product code and after Office is uninstalled the product code values still exist.  Bitness is more reliable but I am sure not 100% fool proof.<br>
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman","serif";" class="MsoNormal">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">This I what I have come up with:</span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman","serif";" class="MsoNormal">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman","serif";" class="MsoNormal">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D">     <package id='visio' revision='1'><br>
      <!-- CHECK IF W732 & OFFICE2013 32BIT ALREADY INSTALLED --><br>
      <install architecture='x86' cmd='download.exe visio2013x32bit.zip'><br>
         <condition><br>
           <check type='logical' condition='and'><br>
             <check type='host' condition='architecture' value='x86' /><br>
              <check type='logical' condition='or'><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Professional Plus 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Standard 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Home and Business 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Professional 2013" /><br>
             </check><br>
             <check type='logical' condition='or'><br>
               <!-- Check wow6432 first --><br>
               <check type='registry' condition='equals' path='HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Outlook\Bitness' value='x86' /><br>
               <check type='registry' condition='equals' path='HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook\Bitness' value='x86' /><br>
               <check type='registry' condition='equals' path='HKLM\Software\Microsoft\Office\14.0\Outlook\Bitness' value='x86' /><br>
               <check type='registry' condition='equals' path='HKLM\Software\Microsoft\Office\15.0\Outlook\Bitness' value='x86' /><br>
             </check><br>
           </check><br>
       </condition><br>
      </install><br>
      <!-- CHECK IF W764 & OFFICE2013 32BIT ALREADY INSTALLED --><br>
      <install architecture='x64' cmd='download.exe visio2013x32bit.zip'><br>
         <condition><br>
           <check type='logical' condition='and'><br>
             <check type='host' condition='architecture' value='x64' /><br>
              <check type='logical' condition='or'><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Professional Plus 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Standard 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Home and Business 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Professional 2013" /><br>
              </check><br>
              <check type='logical' condition='or'><br>
              <!-- Check wow6432 first --><br>
                 <check type='registry' condition='equals' path='HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Outlook\Bitness' value='x86' /><br>
                 <check type='registry' condition='equals' path='HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook\Bitness' value='x86' /><br>
                 <check type='registry' condition='equals' path='HKLM\Software\Microsoft\Office\14.0\Outlook\Bitness' value='x86' /><br>
                 <check type='registry' condition='equals' path='HKLM\Software\Microsoft\Office\15.0\Outlook\Bitness' value='x86' /><br>
              </check><br>
           </check><br>
         </condition><br>
      </install><br>
      <!-- CHECK IF W764 & OFFICE2013 64BIT ALREADY INSTALLED --><br>
      <install architecture='x64' cmd='download.exe visio2013x64bit.zip'><br>
         <condition><br>
           <check type='logical' condition='and'><br>
             <check type='host' condition='architecture' value='x64' /><br>
              <check type='logical' condition='or'><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Professional Plus 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Standard 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Home and Business 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Professional 2013" /><br>
              </check><br>
              <check type='logical' condition='or'><br>
              <!-- Check wow6432 first --><br>
                 <check type='registry' condition='equals' path='HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Outlook\Bitness' value='x64' /><br>
                 <check type='registry' condition='equals' path='HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook\Bitness' value='x64' /><br>
                 <check type='registry' condition='equals' path='HKLM\Software\Microsoft\Office\14.0\Outlook\Bitness' value='x64' /><br>
                 <check type='registry' condition='equals' path='HKLM\Software\Microsoft\Office\15.0\Outlook\Bitness' value='x64' /><br>
              </check><br>
           </check><br>
         </condition><br>
      </install><br>
      <!-- CHECK IF W732 & OFFICE2013 NOT INSTALLED --><br>
      <install architecture='x86' cmd='download.exe visio2013x32bit.zip'><br>
         <condition><br>
           <check type='logical' condition='not'><br>
              <check type='logical' condition='or'><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Professional Plus 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Standard 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Home and Business 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Professional 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Home and Student 2013" /><br>
              </check><br>
           </check><br>
       </condition><br>
      </install><br>
      <!-- CHECK IF W764 & OFFICE2013 NOT INSTALLED --><br>
      <install architecture='x64' cmd='download.exe visio2013x64bit.zip'><br>
         <condition><br>
           <check type='logical' condition='not'><br>
              <check type='logical' condition='or'><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Professional Plus 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Standard 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Home and Business 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Professional 2013" /><br>
                 <check type="uninstall" condition="exists" path="Microsoft Office Home and Student 2013" /><br>
              </check><br>
           </check><br>
       </condition><br>
      </install><br>
  <!-- LINES TO FOLLOW, EXTRACT ZIP, MSIEXEC STUFF ETC ETC ETC --><br>
  </package></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman","serif";" class="MsoNormal">
<br>
</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman","serif";" class="MsoNormal">
Thanks</p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman","serif";" class="MsoNormal">
Paul<br>
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"></span></p>
<p style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: "Times New Roman","serif";" class="MsoNormal">
<span style="font-size:11.0pt; font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
</div>
</div>
</body>
</html>