Re: automating java install in packages for 10.7 clients
site_archiver@lists.apple.com Delivered-To: Installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=IIdleJkV7A1IILQMQmG3igeLV0B8zDyR0byP9kxnro0=; b=cEEYlcvEA+UWcouVApW9dfKNHaKR9ejyjmjUUv8EaPyEmxs1Y/DKbR3xBQI7lxXaS5 Tz4wZMW9JE9iJZE4ChPPTixvfreYcDnqBo04pnd1CXuZOCU3l61ZP9Wi5akGWq6RQDRw j7/umjfND5gCMUl4ragT49xGpnJ8ZMCijvMOQ= If the Java installer is available as a flat package, you could always host it somewhere on a http server. Then, in your distribution script, you create a remote reference to this package. And you use a requirement for this (invisible or not) choice that checks if java is installed. If it's already installed, just unselect and disable the choice. My $0.014 On Fri, Jul 29, 2011 at 3:42 PM, Voges,Aaron <avoges@mdanderson.org> wrote:
Good morning, I'm attempting to package a few different applications for Mac OS X 10.7 and have noticed that many require Java to be installed on the computer. Since the base install of 10.7 doesn't include java i'd like to include a task in the software installer to automatically check and, if not installed, install Java before installing the software i'm packaging. Does anyone know if there is a way to script 10.7 to download and install Java without requiring GUI interaction? For example, if Java isn't installed and you run any java app or command (for example, in terminal enter "java -version" ) a dialogue will appear asking if you want to install Java and, if you chose Install, it will download the software from (presumably) an apple server. I would prefer to automate this install instead of including Apple's java installer since I want my package to always pull the correct and latest version. I checked softwareupdate -list and java isn't an available update so this mechanism doesn't appear to be applicable. Any ideas?
Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre