[wpkg-users] xml Elements and attributes

Charles Gargent charlesgargent at gmail.com
Wed Jul 15 17:00:35 CEST 2009


Hi

In the packages xml file the exit code data is stored in an element,
can you change it to be stored in an attribute?
ie
<remove cmd='msiexec /x {23170F69-40C1-2701-0457-000001000000} /qn
/norestart' exitcode='any' />
instead of
<remove cmd='msiexec /x {23170F69-40C1-2701-0457-000001000000} /qn
/norestart'><exit code='any' /></remove>

Can you change all the data to be stored in an element rather than
some attributes some elements?
ie
<packages>
  <package>
    <id>7-Zip</id>
    <name>7-Zip 4.57</name>
    <check>
      <type>uninstall</type>
    </check>
etc...
  </package>
</packages>

instead of

<packages>
  <package id="7-Zip" name="7-Zip 4.57" revision="1" priority="150"
reboot="false">
  <check type="uninstall" condition="exists" path="7-Zip 4.57" />
  <install cmd='msiexec /i "%AIP%\7-Zip\7z457\7z457.msi"
transforms="%AIP-common%\7-Zip\7z457\7z457.mst" /qn /norestart' />
  <remove cmd='msiexec /x {23170F69-40C1-2701-0457-000001000000} /qn
/norestart'><exit code='any' /></remove>
  </package>
</packages>



More information about the wpkg-users mailing list