[wpkg-users] apple itunes silent installer

Craig White craigwhite at azapple.com
Mon May 4 20:12:41 CEST 2009


I have updated the Apple installer to a version newer than that listed
on the wiki...

I am including the output of each at the bottom of this e-mail (watch
the line wraps) but I did have one issue that is confusing me.

When upgrading itunes application, the msiexec exit code seems to emit
and exit code 3010 and not 0 which makes wpkg think it has failed and
since the applemobile.xml and quicktime.xml 'require' itunes, they fail
to upgrade and the computer is mostly unusable because the
iTunesHelper.exe application goes into a race condition when a user logs
in. Subsequent restart (or restart of wpkg service) then realizes that
the correct itunes version actually is installed and then proceeds to
process the updates for applemobile.xml and quicktime.xml and everything
is happy. So I'm gathering that the upgrade from say itunes 8.0.1.11 to
8.1.1.10 actually requires a restart.

Should I just remove the '/norestart' parameter from the upgrade command
for itunes?

Craig

*** itunes.xml ***
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
        id="itunes"
        name="Apple iTunes"
        revision="8.1.1.10"
        reboot="false"
        priority="1">
        <check type="file" condition="versiongreaterorequal" path="%
PROGRAMFILES%\iTunes\iTunes.exe" value="8.1.1.10"/>
        <install cmd="msiexec.exe /qn /norestart /i %SOFTWARE%\iTunes
\8.1.1.10\iTunes.msi" />
        <upgrade cmd="msiexec.exe /qn /norestart /i %SOFTWARE%\iTunes
\8.1.1.10\iTunes.msi" />
        <remove cmd="msiexec.exe /qn /uninstall
{5EFCBB42-36AB-4FF9-B90C-E78C7B9EE7B3}" />
</package>
</packages>

*** applemobile.xml ***
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
        id="applemobile"
        name="Apple Mobile Device Support"
        revision="2.4.1.7"
        reboot="false"
        priority="1">
        <depends package-id="itunes"/>
        <check type="registry"  condition="equals" path="HKLM\SOFTWARE
\Microsoft\Windows\CurrentVersion\Uninstall
\{AFA20D47-69C3-4030-8DF8-D37466E70F13}\DisplayVersion"
value="2.4.1.7"/>
        <install cmd="msiexec /qn /i %SOFTWARE%\iTunes\8.1.1.10
\AppleMobileDeviceSupport.msi" />
        <upgrade cmd="msiexec /qn /i %SOFTWARE%\iTunes\8.1.1.10
\AppleMobileDeviceSupport.msi" />
        <remove cmd="msiexec /qn /uninstall
{AFA20D47-69C3-4030-8DF8-D37466E70F13}" />
</package>
</packages>

*** quicktime.xml ***
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package
        id="quicktime"
        name="Apple Quicktime"
        revision="7.60.92.0"
        reboot="false"
        priority="1">
        <depends package-id="itunes"/>
        <check type="file" condition="versiongreaterorequal" path="%
PROGRAMFILES%\QuickTime\QuickTimePlayer.exe" value="7.60.92.0"/>
        <install cmd="msiexec /qn /i %SOFTWARE%\iTunes\8.1.1.10
\QuickTime.msi" />
        <upgrade cmd="msiexec /qn /i %SOFTWARE%\iTunes\8.1.1.10
\QuickTime.msi" />
        <remove cmd="msiexec /qn /uninstall
{216AB108-2AE1-4130-B3D5-20B2C4C80F8F}" />
</package>
</packages>




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the wpkg-users mailing list