Intune – Deploy Apple iTunes Package

email me

Deploy Apple iTunes using Intune.

 

Steps

Step 1 – Create C:\intune\iTunes folder.

 

Step 2 – Extract and copy iTunes setup files to the C:\intune\iTunes folder.

 

Step 3 – Create _Intune.cmd in iTunes folder containing the following code:

cd "%~dp0"

msiexec.exe /i "AppleApplicationSupport.msi" /qn /norestart
msiexec.exe /i "AppleApplicationSupport64.msi" /qn /norestart
msiexec.exe /i "AppleMobileDeviceSupport64.msi" /qn /norestart
msiexec.exe /i "Bonjour64.msi" /qn /norestart
msiexec.exe /i "AppleSoftwareUpdate.msi" /qn /norestart
msiexec.exe /i "iTunes64.msi" /qn /norestart IAcceptLicense=Yes ALLUSERS=1 DESKTOP_SHORTCUTS=1 INSTALL_ASUW=0 NO_ASUW=1 SCHEDULE_ASUW=0

::add any other commands here

 

Step 4 – Create iTunes64.intunewin file using the IntuneWinAppUtil.exe tool:

IntuneWinAppUtil.exe -c C:\intune\iTunes -s iTunes64.msi -o C:\intune

Output

Validating parameters
Validated parameters with 12 milliseconds
Compressing the souce folder ‘C:\intune\iTunes’ to ‘C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage\Contents\iTunes64.intunewin’
Calculated size for folder ‘C:\intune\iTunes’ is 292516314 with 0 milliseconds
Compressed folder ‘C:\intune\iTunes’ successfully with 9832 milliseconds
Checking file type
Checked file type with 110 milliseconds
Encrypting file ‘C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage\Contents\iTunes64.intunewin’
‘C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage\Contents\iTunes64.intunewin’ has been encrypted successfully with 795 milliseconds
Computing SHA256 hash for C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage\Contents\f025daec-c6bb-4cf0-9ce2-395354f5474c
Computed SHA256 hash for ‘C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage\Contents\f025daec-c6bb-4cf0-9ce2-395354f5474c’ with 2645 milliseconds
Computing SHA256 hash for C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage\Contents\iTunes64.intunewin
Computed SHA256 hash for C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage\Contents\iTunes64.intunewin with 2727 milliseconds
Copying encrypted file from ‘C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage\Contents\f025daec-c6bb-4cf0-9ce2-395354f5474c’ to ‘C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage\Contents\iTunes64.intunewin’
File ‘C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage\Contents\iTunes64.intunewin’ got updated successfully with 429 milliseconds
Generating detection XML file ‘C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage\Metadata\Detection.xml’
Generated detection XML file with 38 milliseconds
Compressing folder ‘C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage’ to ‘C:\intune\iTunes64.intunewin’
Calculated size for folder ‘C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage’ is 277002583 with 0 milliseconds
Compressed folder ‘C:\Users\Homelab\AppData\Local\Temp\f08c1d40-f0a2-4d74-8a6c-8fc30d136656\IntuneWinPackage’ successfully with 1688 milliseconds
Removing temporary files
Removed temporary files with 27 milliseconds
File ‘C:\intune\iTunes64.intunewin’ has been generated successfully

[=================================================]   100%
Done!!!

 

Step 5 – Azure Portal > Microsoft Intune > Client Apps > Apps > Add > Windows app (Win32)

Navigate to iTunes64.intunewin:

Fill in App information:

Fill in Program Config:
Install: _Intune.cmd
Uninstall: “msiexec /x “{9C96D8AC-EE43-4B47-877C-D11595511C8E}” /q

Fill in basic Requirements:

Fill in Detection Rule Config:
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9C96D8AC-EE43-4B47-877C-D11595511C8E}
Value: DisplayVersion
Method: Version comparison
Operator: Equals
Value: 12.10.3.1
Associated with a 32 bit app: No

 

Step 6 – Click Add button.

 

Step 7 – Assign a group to the application and Save:

 

Step 8 – Force a sync or reboot client computer.

 

Notes

Intune Standalone – Win32 app management

Add a Windows line-of-business app to Microsoft Intune

Microsoft Intune Documentation

 

tags: iTunes Intune automation, Intune packaging, Intune scripting, MrNetTek