Struggling with InstallerChoice XML stuff
Here's hoping someone can point out what I'm missing...
I'm trying to move to the InstaDMG package building system, after experimenting for quite some time with the PKG Image product. However, I'm greatly struggling with the InstallerChoices setup and starting to feel a bit stupid. I've followed the instructions to a T (I think), even going through them from start to finish several times... But for some reason my selections are not getting applied...
Possibly relevant info:
• Runnin on MacBook with Mac OS X 10.5.5
• I have a retail 10.5 install CD in the drive
• I have an external HD plugged in with a blank volume called Test to target
First, I get the list of the default choices with the following command:
[code]sudo installer -showChoicesXML -pkg /Volumes/Mac\ OS\ X\ Install\ DVD/System/Installation/Packages/OSInstall.mpkg -target /Volumes/Test > ~/Desktop/OSInstall_default.xml[/code]
This gives me a nice XML list of all the possible choices and details about those choices. I then used the the following command from Patrick's original instructions to filter it to an easier to read list...
[code]grep -A 1 choiceIdentifier ~/Desktop/OSInstall_default.xml > ~/Desktop/OSInstall_choiceIdentifiers.txt[/code]
Then I went through and worked through which I wanted to enable/disable, using the 'each entry = 1 click' concept, I used Smultron to create this file, which looks like:
[code]
AdditionalFonts
Japanese
German
Spanish
Italian
Dutch
Danish
Finnish
Korean
Norwegian
Russian
Swedish
BrazilianPortuguese
SimplifiedChinese
TraditionalChinese
Portuguese
Polish
X11
[/code]
If I'm understanding the process properly, I've turned off Asian languages, Additional fonts, X11, and all extra languages except for French, which I need.
However, when I try to apply this to see the results, using the following command...
[code]sudo installer -showChoicesAfterApplyingChangesXML ~/Desktop/LeopardChoices.xml -pkg /Volumes/Mac\ OS\ X\ Install\ DVD/System/Installation/Packages/OSInstall.mpkg -target /Volumes/Test > ~/Desktop/OSinstall_afterChoice.xml[/code]
I am definitely not getting the results I expect, in fact, I can't see any results at all. Nothing gets enabled or disabled, as shown below:
[b]Additional Fonts:[/b]
[code]
childItems
choiceDescription
Installs additional fonts with support for Chinese, Korean, Arabic, Hebrew, Thai, Cyrillic, Devanagari, Gujarati, Punjabi, Tibetan, Armenian, Cherokee and Inuktitut.
choiceIdentifier
AdditionalFonts
choiceIsEnabled
choiceIsSelected
1
choiceIsVisible
choiceSizeInKilobytes
144818
choiceTitle
Additional Fonts
pathsOfActivePackagesInChoice
file://localhost/Volumes/Mac OS X Install DVD/System/Installation/Packages/AdditionalFonts.pkg
[/code]
[b]Spanish (shows same for all other languages):[/b]
[code]
childItems
choiceDescription
This package contains all of the necessary files to run Mac OS X in Spanish.
choiceIdentifier
Spanish
choiceIsEnabled
choiceIsSelected
1
choiceIsVisible
choiceSizeInKilobytes
117878
choiceTitle
Spanish
pathsOfActivePackagesInChoice
file://localhost/Volumes/Mac OS X Install DVD/System/Installation/Packages/Spanish.pkg
[/code]
[b]X11:[/b]
[code]
childItems
choiceDescription
X11 windowing system for UNIX environments
choiceIdentifier
X11
choiceIsEnabled
choiceIsSelected
1
choiceIsVisible
choiceSizeInKilobytes
119918
choiceTitle
X11
pathsOfActivePackagesInChoice
file://localhost/Volumes/Mac OS X Install DVD/System/Installation/Packages/X11User.pkg
[/code]
And so on. I've tried creating the choices file in Pico, only disabling one item, all to no avail. Any ideas?