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.