Download Microsoft Orca (Orca is now a part of the Windows 10 1703 SDK).
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
Change DL the Path.
Next
Select MSI Tools only!
Download
Install Orca:
"C:\Temp\Windows Kits\10\WindowsSDK\Installers\Orca-x86_en-us.msi"
1. |
Download and Install iTunes (x64) | ||||||
2. |
Open and configure iTunes, close it, open again and verify your configuration, close it again. | ||||||
3. |
Copy the iTunes config folder to your "WorkingDir" C:\Temp\iTunes_PKG\_UserConfig | ||||||
|
Open cmd.exe and Copy and Paste to the CMD Window, or copy how u like.
xcopy "%Appdata%\Apple Computer" "C:\Temp\iTunes_PKG\_UserConfig\" /s | ||||||
|
| ||||||
4. |
Download and Install WinRAR http://www.rarlab.com/download.htm | ||||||
5. |
Goto C:\Temp\iTunes_PKG\_UserConfig\Apple Computer\Preferences\ByHost Rename the file with the GUID:
| ||||||
6. |
Add the folder "Apple Computer" to "Apple Computer.rar"
| ||||||
7. |
Open the Archive in WinRAR, Convert archive to SFX executable
Use the following configuration "Important"
| ||||||
|
Now you have the following files in your folder
Rename Apple Computer.exe to Preferences.exe
|
8. |
Extract the iTunes Setup with WinRAR or 7-Zip |
9. |
Copy all extracted .msi’s to C:\Temp\iTunes_PKG\_MSI\x86 |
10. |
Open the iTunes.msi with Orca |
|
11. |
Add a new Transform |
|
Add and Change the following Tables and Propertys | ||||
12. |
Table |
Property |
Signature_ |
|
|
Appsearch |
HWGUID |
AppReg |
|
|
| |||
|
- Click left in AppSearch - Press CTRL & R
- Type HWGUID - OK
- Type ApppReg - OK |
|
13. |
Table |
Property |
Data |
|
|
Binary |
UserFiles |
[Binary Data] |
Preferences.exe |
|
| |||
|
- Click left in Binary - Press CTRL & R
- Type UserFiles - OK - OK
- Click Browse, select your Preferences.exe - OK - OK |
C:\Temp\iTunes_PKG\_UserConfig\Preferences.exe
|
14. |
Table |
Action |
Type |
Source |
|
|
Custom Action |
_FS_Rename_File |
1122 |
System64Folder.A5C49E27_90D3_35F6_A5E8_DB6F691C3C33 |
|
|
Target |
cmd.exe /c REN "%AppData%\Apple Computer\Preferences\ByHost\com.apple.iTunes.HWGUID.plist" "com.apple.iTunes.[HWGUID].plist" |
| ||
| |||||
15. |
Table |
Action |
Type |
Source |
|
|
Custom Action |
_FS_UserFiles |
1090 |
UserFiles |
|
|
16. |
Table |
Action |
Condition |
Sequence |
|
InstallExecuteSequence |
_FS_UserFiles |
NOT REMOVE~="ALL" |
5700 |
|
InstallExecuteSequence |
_FS_Rename_File |
NOT REMOVE~="ALL" |
6500 |
|
17. |
Table |
Property |
Value |
|
Property |
IAcceptLicense |
Yes |
|
Property |
REGSRCH_MEDIA_DEFAULTS |
0 |
|
Property |
SCHEDULE_ASUW |
0 |
|
Property |
REBOOT |
ReallySuppress |
18. |
Table |
Signature_ |
Root |
Key |
Name |
Type |
|
RegLocator |
AppReg |
2 |
SYSTEM\CurrentControlSet\Control\IDConfigDB\Hardware Profiles\0001 |
HwProfileGuid |
2 |
|
|
19. (Active Setup) only if u like to Setup the config to AllUsers | ||||||
Table |
Registry |
Root |
Key |
Name |
Value |
Component |
Registry |
registry1086 |
2 |
SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode] |
|
[ProductName] |
iTunes.exe |
Registry |
registry1085 |
2 |
SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode] |
StubPath |
msiexec.exe /fu [ProductCode] /qb! |
iTunes.exe |
|
And if you need to copy the settings for all users profile you should create a Custom Action whit a script that will copy those files for all existing users and for new ones well, your active setup will help with that.
Here I have my script that I included on my Custom Action:
'Call this script from your CustomAction.
'This script will copy the iTunes Preferences files to all the users profile on: user\appdata\local directory
'Use it at your own risk.
On Error Resume Next
Set oShell = CreateObject( "WScript.Shell" )
sUserProfile=oShell.ExpandEnvironmentStrings("%USERPROFILE%")
sSystemDrive=oShell.ExpandEnvironmentStrings("%SYSTEMDRIVE%")
Dim fso, sSourceFolder, sMessage
sSourceFolder = "C:\Users\"
sMessage = ""
Set fso = CreateObject("Scripting.FileSystemObject")
Set oFolder = fso.GetFolder(sSourceFolder)
Set oSubFolders = oFolder.SubFolders
For Each oSubFolder in oSubFolders
If fso.FolderExists(sSourceFolder & oSubFolder.name & "\AppData\Local") Then
If oSubFolder.name <> "admin" And oSubFolder.name <> "Default User" Then
fso.CreateFolder(sSourceFolder & oSubFolder.name & "\AppData\Local\Apple Computer")
fso.CreateFolder(sSourceFolder & oSubFolder.name & "\AppData\Local\Apple Computer\iTunes")
fso.CreateFolder(sSOurceFolder & oSubFolder.name & "\AppData\Roaming\Apple Computer")
fso.CreateFolder(sSOurceFolder & oSubFolder.name & "\AppData\Roaming\Apple Computer\iTunes")
fso.CreateFolder(sSOurceFolder & oSubFolder.name & "\AppData\Roaming\Apple Computer\Preferences")
fso.CreateFolder(sSOurceFolder & oSubFolder.name & "\AppData\Roaming\Apple Computer\Preferences\ByHost")
fso.CopyFile sSystemDrive & "\ProgramData\Apple Computer\iTunes\Local\Cache.db", sSOurceFolder & oSubFolder.name & "\AppData\Local\Apple Computer\iTunes\", True
fso.CopyFile sSystemDrive & "\ProgramData\Apple Computer\iTunes\Local\VersionCheck.plist", sSOurceFolder & oSubFolder.name & "\AppData\Local\Apple Computer\iTunes\", True
fso.CopyFile sSystemDrive & "\ProgramData\Apple Computer\iTunes\Roaming\com.apple.iTunes.eq.plist", sSOurceFolder & oSubFolder.name & "\AppData\Roaming\Apple Computer\Preferences\", True
fso.CopyFile sSystemDrive & "\ProgramData\Apple Computer\iTunes\Roaming\com.apple.iTunes.plist", sSOurceFolder & oSubFolder.name & "\AppData\Roaming\Apple Computer\Preferences\", True
fso.CopyFile sSystemDrive & "\ProgramData\Apple Computer\iTunes\Roaming\com.apple.mediaaccessibility.plist", sSOurceFolder & oSubFolder.name & "\AppData\Roaming\Apple Computer\Preferences\", True
fso.CopyFile sSystemDrive & "\ProgramData\Apple Computer\iTunes\Roaming\ByHost\com.apple.iTunes.{846ee340-7039-11de-9d20-806e6f6e6963}.plist", sSOurceFolder & oSubFolder.name & "\AppData\Roaming\Apple Computer\Preferences\ByHost\", True
End If
End If
Next
Hope it will help somehow.
Kind regards.
Joel E. - derspinne 6 years ago