Changes

ITunes

10 bytes removed, 20:30, 22 October 2015
iTunes 12.3.1.23
* Apple usually changes the GUIDs for every new release. This means that you need to perform a test install and check the GUIDs every time you deploy a new version unless you're willing to require that the original MSI be present to perform an uninstallation. One could potentially also write a script to check <code>HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products</code> and find the correct uninstall string for whatever version of each package is currently installed.
= iTunes 12.23.01.145 23 installation =
''If you update this code, please remember the uninstall GUIDs change with each new version!''
Deploy File/Folder Structure
%SOFTWARE%\apple\iTunes-12.23.01.14523\iTunes.msi %SOFTWARE%\apple\iTunes-12.23.01.14523\iTunes6464.msi %SOFTWARE%\apple\iTunes-12.23.01.14523\AppleMobileDeviceSupport.msi %SOFTWARE%\apple\iTunes-12.23.01.14523\AppleMobileDeviceSupport6464.msi %SOFTWARE%\apple\iTunes-12.23.01.14523\AppleApplicationSupport.msi %SOFTWARE%\apple\iTunes-12.23.01.14523\AppleApplicationSupport64.msi
<source lang="xml">
priority="0">
<variable name="PKG_VERSION" value="34.21" /> <variable name='ITUNES_VER' value="12.23.01.14523" />
<check type="logical" condition="and">
<upgrade include="install" />
<remove cmd="msiexec /qn /x {7fe25256649a1fd9-b7c15892-480d46ad-b7368df0-10a67a833aeac4a43ff61cb7}">
<exit code="any" />
</remove>
<remove cmd="msiexec /qn /x {b255d4950de0a178-4734ac7b-4e9b4650-b4f580c6-96702fd4a7b9cf226de03766}" architecture="x64">
<exit code="any" />
</remove>
<package id='applemobilesupport' name='Apple Mobile Device Support' revision='%PKGVER%' reboot='false' priority='10'>
<variable name='PKGVER' value='8.29.1.30.6' /> <variable name='ITUNES_VER' value='12.23.01.14523' />
<variable name="PKG_SOURCE" value='%SOFTWARE%\Apple\iTunes-%ITUNES_VER%\AppleMobileDeviceSupport.msi' architecture="x86" />
<variable name="PKG_SOURCE" value='%SOFTWARE%\Apple\iTunes-%ITUNES_VER%\AppleMobileDeviceSupport6464.msi' architecture="x64" />
<variable name="PRODUCT_ID" value='{538227c69a629dcb-c74b415d-4a744a50-99e185b9-2c0b4f9da5e15c2e4f8f74a8}' architecture="x86" /> <variable name="PRODUCT_ID" value='{5d61f0063540181e-168c340a-4b8b4e7a-b7fdb409-f113c10ae0e431663472b2f7}' architecture="x64" />
<check type='uninstall' condition='versiongreaterorequal' path='Apple Mobile Device Support' value='%PKGVER%' />
<depends package-id='applemobilesupport' />
<variable name='PKGVER' value='12.23.01.14523' />
<variable name="PKG_SOURCE" value='%SOFTWARE%\Apple\iTunes-%PKGVER%\iTunes.msi' architecture="x86" />
<variable name="PKG_SOURCE" value='%SOFTWARE%\Apple\iTunes-%PKGVER%\iTunes6464.msi' architecture="x64" />
<variable name="PRODUCT_ID" value='{a3875ced8862f11a-8b9ba9a0-47f54899-9ab99f50-0c36dd2d8d18b5a79f12f3c2}' architecture="x86" /> <variable name="PRODUCT_ID" value='{4046f74ae690a491-28f8702f-48c64dec-a5d39977-2afc472574c1c015d1dbb57c}' architecture="x64" />
<check type='uninstall' condition='versiongreaterorequal' path='iTunes' value='%PKGVER%' />
91
edits