Initial
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
cd %~dp0
|
||||
|
||||
curl -LO https://secure-appldnld.apple.com/itunes12/091-87819-20180912-69177170-B085-11E8-B6AB-C1D03409AD2A6/iTunes64Setup.exe
|
||||
iTunes64Setup.exe /extract
|
||||
|
||||
@REM start /wait msiexec.exe /i AppleApplicationSupport.msi /qn
|
||||
start /wait msiexec.exe /i AppleApplicationSupport64.msi /qn
|
||||
@REM start /wait msiexec.exe /i AppleMobileDeviceSupport64.msi /qn
|
||||
@REM start /wait msiexec.exe /i AppleSoftwareUpdate.msi /qn
|
||||
@REM start /wait msiexec.exe /i Bonjour64.msi /qn
|
||||
start /wait msiexec.exe /i iTunes64.msi /qn
|
||||
|
||||
python3 patch_itunes.py
|
||||
22
src_win/actions-iTunes-header/workflow_helper/iTunesInstall/patch_itunes.py
Executable file
22
src_win/actions-iTunes-header/workflow_helper/iTunesInstall/patch_itunes.py
Executable file
@@ -0,0 +1,22 @@
|
||||
import os
|
||||
|
||||
# for debug
|
||||
P = r"C:\Program Files\iTunes\iTunes1.exe"
|
||||
if not os.path.exists(P):
|
||||
# for production
|
||||
P = r"C:\Program Files\iTunes\iTunes.exe"
|
||||
|
||||
with open(P, 'rb') as f:
|
||||
data = f.read()
|
||||
|
||||
data = bytearray(data)
|
||||
|
||||
# Patch passwordSettings (actually useless)
|
||||
data[0x77daf4:0x77daf4+5] = b'\xBF\x03\x00\x00\x00'
|
||||
data[0x77db7e:0x77db7e+2] = b'\xEB\x0A'
|
||||
|
||||
# Patch signIn reason to serverDialog
|
||||
data[0x7a9ed4:0x7a9ed4+6] = b'\xB9\x23\xFF\xFF\xFF\x90'
|
||||
|
||||
with open(P, 'wb') as f:
|
||||
f.write(data)
|
||||
Reference in New Issue
Block a user