On Tue, Oct 16, 2012 at 6:14 AM, Matthew Burgess
<[email protected]> wrote:
> On Tue, Oct 16, 2012 at 5:45 AM, wukong <[email protected]> wrote:
>
>> Also is there a way to do this as silent install?
>>
>> Here is my manifest.
>>
>> package {"java" :
>>     ensure => installed,
>>     provider => "windows",
>>     source => "C:/Manifests/installables/jdk-6u35-windows-i586.exe",
>> }
>
> Launching that .exe will always give you a GUI, unless you provide
> some additional arguments.  To install the JRE silently, see the
> following: 
> http://www.oracle.com/technetwork/java/javase/silent-136552.html#running.
>
> Regards,
>
> Matt.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>

Having done this recently, I'd recommend something like the following:

package { 'Java(TM) 7 Update 5':
  ensure          => installed,
  source          => '<path>/jre-7u5-windows-i586.exe',
  install_options => [
    '/s', '/v/qn" ADDLOCAL=jrecore REBOOT=Suppress JAVAUPDATE=0"'
  ]
}

Note the name of the package needs to match 'DisplayName' as specified
in the registry and displayed in Add/Remove programs.

As for customizing the PATH, this is filed as
https://projects.puppetlabs.com/issues/16048 and there's some
background information here
https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/68ebrAEUzgQ

Josh

-- 
Josh Cooper
Developer, Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to