- This topic has 7 replies, 3 voices, and was last updated 16 years, 6 months ago by
thisgarryhas2rs.
-
AuthorPosts
-
September 18, 2008 at 5:32 pm #374157
jdyck
ParticipantHere’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 targetFirst, 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] [/code]
AdditionalFonts
Japanese
German
Spanish
Italian
Dutch
Danish
Finnish
Korean
Norwegian
Russian
Swedish
BrazilianPortuguese
SimplifiedChinese
TraditionalChinese
Portuguese
Polish
X11
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] [/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
[b]Spanish (shows same for all other languages):[/b]
[code] [/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
[b]X11:[/b]
[code] [/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
And so on. I’ve tried creating the choices file in Pico, only disabling one item, all to no avail. Any ideas?September 18, 2008 at 6:20 pm #374160Patrick Fergus
ParticipantYour choices file works for me. What happens if you give full paths to your LeopardChoices.xml file? My quick tests show that installer pukes if it can’t process/find the XML file, but maybe you’ve hit a scenario I don’t see.
Also, since it looks like you’re disabling X11, additional fonts, and every language except French, this will be more compact for your InstallerChoices:
[code]
[/code]- Patrick
AdditionalFonts
LanguageTranslations
French
X11
September 18, 2008 at 6:37 pm #374161jdyck
ParticipantThanks for double checking Patrick! I tried again and still no go, then clued into the problem… line endings… Swapped to Unix LF and it was good. Not sure why my Pico attempt didn’t work though.
Anyway, looks like I’m good to go
Thanks for the time.
Jeff
September 24, 2008 at 6:23 pm #374238thisgarryhas2rs
ParticipantWhat did you use/do to convert it UNIX line feed? I tried nano and pico and all that and it still isn’t working for me.
September 24, 2008 at 6:33 pm #374239jdyck
ParticipantI was using the free editor Smultron, and it has both a menu command to change (Text -> Line Endings -> UNIX-Mac OS X (LF)) and an application preference to configure how you want to save by default (Preferences -> Open & Save -> Line Endings).
Not sure why Pico didn’t work for either of us though, as I was sure it used unix line feeds.
I can say once you get the first one figured out and working the second one is a lot easier 🙂
Hope that helps
September 24, 2008 at 10:01 pm #374242thisgarryhas2rs
ParticipantIt is still not seeing the InstallerChoices.xml… I’m assuming it’s suppose to be in the folder where instadmg.bash is contained like the other versions…. I’m using the same file that works in 1.4b1 but when I put it into the 1.4b4 it stops working…
September 24, 2008 at 10:18 pm #374243jdyck
ParticipantI haven’t used the earlier versions, but my understanding is that with this version you put the InstallerChoices.xml file into the /InstallerFiles/BaseOS folder, with the OS Installer dmg. Or, if you’re working with something like MS Office, you can put an InstallerChoices.xml file in the numbered folder with the Office Installer.
September 24, 2008 at 10:38 pm #374244thisgarryhas2rs
ParticipantHa! There it is. I guess the README file in the InstallerChoices folder wasn’t updated. It still says to put it in the same directory as the instadmg script but the instaDMG PDF says otherwise and I missed it. Thanks Jeff.
Onward ho! To more images!
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed