How do I package iTunes and stop "bonjour is not installed" message when launching itunes


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

Answers (2)

Posted by: rileyz 7 years ago
Red Belt
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:
Posted by: SMal.tmcc 7 years ago
Red Belt
we ended up letting bonjour install then disabled the service, after that itunes did not complain about it not being installed.
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ