Skip to content

Instantly share code, notes, and snippets.

@Varstahl
Created June 5, 2023 15:15
Show Gist options
  • Save Varstahl/327b2d5429aaf0c9f1e05852a231418e to your computer and use it in GitHub Desktop.
Save Varstahl/327b2d5429aaf0c9f1e05852a231418e to your computer and use it in GitHub Desktop.
Download the latest x64 iTunes, extract the basic CoreAudio files and packages them for easy use with OBS
@echo off
setlocal
set PATH=%PATH%;C:\Program Files\WinRAR
set FILES=ASL.dll CoreAudioToolbox.dll CoreFoundation.dll icudt62.dll libdispatch.dll libicuin.dll libicuuc.dll objc.dll
set DEST=%~dp0tmp
mkdir "%DEST%"
mkdir "%DEST%\msi"
curl -L https://www.apple.com/itunes/download/win64 -o "%DEST%\iTunes64Setup.exe"
winrar e "%DEST%\iTunes64Setup.exe" "%DEST%"
msiexec /a "%DEST%\iTunes64.msi" /qn TARGETDIR="%DEST%\msi"
cd "%DEST%\msi\iTunes"
rar.exe a -ep -ag"+YYYY-MM-DD HH-MM-SS " ..\..\..\CoreAudio64.rar %FILES%
cd %~dp0
rmdir /s /q "%DEST%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment