- This topic has 8 replies, 4 voices, and was last updated 15 years, 9 months ago by
tristan_mason.
-
AuthorPosts
-
January 5, 2011 at 2:05 pm #380225
Theilgaard
ParticipantIn my catalog file, I have added this line (as described in the catalog template file) in the Settings section in the top of the file:
Installer Choices File: InstallerChoices_Customer.xml sha1:3c4198149b9c3308360bdb8476a348abadc204b4This file is laying beside my Mac OS 10.6 dmg file.
I run InstaUp2Date, like this (I am standing in /):
$ sudo ./instadmg_run/AddOns/InstaUp2Date/instaUp2Date.py Customer Parsing the catalog files for Customer Installer Choices File: InstallerChoices_Customer.xml - looking based on guessed name and verified in less than one secondTraceback (most recent call last): File "./instadmg_run/AddOns/InstaUp2Date/instaUp2Date.py", line 716, in <module> main() File "./instadmg_run/AddOns/InstaUp2Date/instaUp2Date.py", line 662, in main thisController.parseCatalogFile() File "./instadmg_run/AddOns/InstaUp2Date/instaUp2Date.py", line 266, in parseCatalogFile raise commonExceptions.InstallerChoicesFileException('Unable to find %s: %s (checksum: %s)' % (settingLineMatch.group("variableName"), settingLineMatch.group("variableValue"), settingLineMatch.group("fileChecksum")), choicesFile=fileLocation, lineNumber=lineNumber) Resources.commonExceptions.InstallerChoicesFileException: Unable to find Installer Choices File: InstallerChoices_Customer.xml (checksum: sha1:3c4198149b9c3308360bdb8476a348abadc204b4)Is this a bug, or did I misplace the InstallerChoices file?
If I comment out the “Installer Choices File” from the catalog file it runs as it should (also with my own custom changed instadmg.bash-script which loads installer choices files according to the name in “Output Volume Name”).January 5, 2011 at 4:37 pm #380227Allister Banks
ParticipantHey Theilgaard,
Please use the path to the installerchoices.xml file with the filename and let us know if that works(it should). Thanks,
Allister
January 6, 2011 at 9:09 am #380232Theilgaard
ParticipantI changed the path to this:
../../InstallerFiles/BaseOS/InstallerChoices_Customer.xmlAnd now it has found it.
I think InstaUp2Date should be able to find this folder by itself. 😉
Thanks.
SørenJanuary 24, 2011 at 3:50 am #380348tristan_mason
Participantslightly different output: “permission denied” when i try to run it in the terminal…
January 24, 2011 at 11:54 am #380349dead2sin
ParticipantAre you running it as sudo?
Nate
January 24, 2011 at 8:14 pm #380352tristan_mason
ParticipantHi Nate
I am indeed. Somewhere in the scheme of things I missed this whole step when I started this whole instaDMG thing so i’m coming at this having done most everything else. DERP! Anyhow do I just put the xml file in the folder and run the workflow as normal or do I have to run the xml from the terminal and then run the workflow?
Cheers
Tristan
January 24, 2011 at 10:54 pm #380354dead2sin
Participanttristan_mason wrote:
Hi Nate
I am indeed. Somewhere in the scheme of things I missed this whole step when I started this whole instaDMG thing so i’m coming at this having done most everything else. DERP! Anyhow do I just put the xml file in the folder and run the workflow as normal or do I have to run the xml from the terminal and then run the workflow?
Cheers
Tristan
What you do for installerchoices is place it in any folder within InstallerFiles and then run ./checksum.py on it. It’ll spit out the full path to the InstallerChoices file as well as a checksum. You include this on the vanilla catalog using this format:
Installer Choices File: <file-name or path> tab <checksum string>Note its only the full path to XML + Checksum, rather then description, path and checksum.
Then, once you run your instaup2date build, it’ll use this installer choices.
Nate
January 24, 2011 at 11:38 pm #380355tristan_mason
Participantthanks, that’s crystal clear. does it matter where it goes in the catalog file? under the includes perhaps?
regards
tristan
January 24, 2011 at 11:50 pm #380356tristan_mason
Participantgot it working. just popped it under my includes and it’s going like a treat. Now I have it working i shall go back and look at any mpkg’s i’m using and apply this practice to anything that needs it. a great addition to the tools.
tristan
-
AuthorPosts
- You must be logged in to reply to this topic.