I am trying to package itunes 12.3.1 without installing Bonjour.  I have included the 2 customised itunesprefs.xml files and have these copied to the C:\ProgramData\Apple Computer\iTunes at install time and then using a VBS custom action, I have them copied to their respective local and roaming folders under the users appdata\ folder.  I have created a CU key so that when iTunes is launched the self heal process runs and the itunesprefs.xml files get copied to the current users' local and roaming iTunes folders.

I see my customised itunesprefs.xml files get copied down but then they get overwritten by itunes generic itunesprefs.xml files and then I get a message informing me the Bonjour is not installed.  I don't want this message to appear.  I have managed to stop the EULA message appearing by using a registry key but the Bonjour detection looks to be controlled by the itunesprefs.xml file under the <user>\appdata\local\apple computer\iTunes.  How can I prevent itunes from overwriting the files I have put down ? 

To clarify, when self healing, if the itunesprefs.xml file does not exist under <user>\appdata\local\apple computer\iTunes, iTunes will create one.  It is 1K in size.  My custom action then overwrites it with my customised version which is 14K in size.  iTunes then replaces it with one which is 13K in size and tells me that Bonjour is not installed.

If I copy my 14K customised itunesprefs.xml to <user>\appdata\local\apple computer\iTunes and then delete the CU reg key so the software self heals, the file does no get overwritten (although the modified date changes) and I don't get a message telling me that bonjour is not installed.

Any help would be greatly appreciated as it is doing my head in and although I have seen other posters out there with the same problem there doesn't seem to be any answers.



0 Comments   [ + ] Show Comments


Please log in to comment


Good luck! Haha.

I've worked on ITunes on and off in the past, it's always awful to work with, I could be totally wrong, but I think the prefs are written by the applications itself not the MSI. I would run a ProcMon just to double check.

Like this poor fool:
Answered 11/03/2015 by: rileyz
Red Belt

Please log in to comment
we ended up letting bonjour install then disabled the service, after that itunes did not complain about it not being installed.
Answered 11/03/2015 by: SMal.tmcc
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja