Adding iTunes to SIU image breaks admin's iTunes.app.

Originator:MagerValp
Number:rdar://20221125 Date Originated:2015-03-19
Status:Open Resolved:
Product:iTunes Product Version:12.1
Classification:Serious Bug Reproducible:Always
 
Summary:
If Install iTunes.pkg is added to a NetRestore image in System Image Utility (or AutoDMG) the installer breaks iTunes.app on the machine used to build the system image.

Steps to Reproduce:
1. Start System Image Utility.
2. Select NetRestore Image and click Customize.
3. From the Automator Library drag Add Packages and Post-Install Scripts to the workflow.
4. Add Install iTunes.pkg to the list of packages to install.
5. Click Run.

Expected Results:
A fresh NetRestore image and a still working iTunes.app.

Actual Results:
A fresh NetRestore image (so far so good!), but iTunes.app is broken since Install iTunes.pkg deleted all of its lproj files.

Version:
iTunes 12.1.0.50, OS X 10.10.2.

Notes:
The offending script seems to be iTunesX.pkg/preinstall_actions/CleanLocs which fails to observe $3:

/bin/rm -rf /Applications/iTunes.app/Contents/Resources/*.lproj 2> /dev/null
/bin/rm -rf /Applications/iTunes.app/Contents/Resources/iTunes.help/Contents/Resources/*.lproj 2> /dev/null

Configuration:
iTunes 12.1 installer from https://secure-appldnld.apple.com/itunes12/031-19380.20150128.FcvfF/iTunes12.1.dmg

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!