aring@berkeley.edu
2011-Nov-11 17:19 UTC
[Puppet Users] Puppet Windows: test if non-MSI package already installed
Hello Puppet Cohorts, I wish to install programs on Windows that do not use the MSI installer. After finding a guide on-line for silencing most installers (http://unattended.sourceforge.net/installers.php) I feel confident I can write a short script for Puppet to "exec" on my hosts to silently install most of what I need. What I can''t decide on a "best" way to test if the software has already been installed. I am likely "off in the weeds" and could use some help getting back. Here are what I think my choices are, I make no claim to their sanity. 0.) I think using the "package" provider in puppet will not work if the program installed did not use the MSI installer.(?) 1.) Check for existence of a file known to be installed from the relevant installer. If the file is found, the script exits. 2.) Some method to check the registry at "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products" for the existence of the program. 3.) Run Puppet Agent less often on the client so it is "not such a big deal". Thank you, Andrew -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Josh Cooper
2011-Nov-11 18:30 UTC
Re: [Puppet Users] Puppet Windows: test if non-MSI package already installed
Hi Andrew, On Fri, Nov 11, 2011 at 9:19 AM, <aring@berkeley.edu> wrote:> Hello Puppet Cohorts, > > I wish to install programs on Windows that do not use the MSI installer. > > After finding a guide on-line for silencing most installers > (http://unattended.sourceforge.net/installers.php) I feel confident I can > write a short script for Puppet to "exec" on my hosts to silently install > most of what I need. > > What I can''t decide on a "best" way to test if the software has already > been installed. I am likely "off in the weeds" and could use some help > getting back. > > Here are what I think my choices are, I make no claim to their sanity. > 0.) I think using the "package" provider in puppet will not work if the > program installed did not use the MSI installer.(?) >Correct, there is only an ''msi'' package provider.> 1.) Check for existence of a file known to be installed from the relevant > installer. If the file is found, the script exits. > 2.) Some method to check the registry at > > "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products" > for the existence of the program. > 3.) Run Puppet Agent less often on the client so it is "not such a big > deal". > >If the packages are "well-behaving" they should follow these guidelines during install/uninstall[1]. In particular, they should add the appropriate registry entries under: HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall Josh [1] http://msdn.microsoft.com/en-us/library/ms954376.aspx -- 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Andrew Ring
2011-Nov-18 23:10 UTC
Re: [Puppet Users] Puppet Windows: test if non-MSI package already installed
Thank you. On 11/11/2011 10:30 AM, Josh Cooper wrote:> Hi Andrew, > > On Fri, Nov 11, 2011 at 9:19 AM, <aring@berkeley.edu > <mailto:aring@berkeley.edu>> wrote: > > Hello Puppet Cohorts, > > I wish to install programs on Windows that do not use the MSI installer. > > After finding a guide on-line for silencing most installers > (http://unattended.sourceforge.net/installers.php) I feel confident > I can > write a short script for Puppet to "exec" on my hosts to silently > install > most of what I need. > > What I can''t decide on a "best" way to test if the software has already > been installed. I am likely "off in the weeds" and could use some help > getting back. > > Here are what I think my choices are, I make no claim to their sanity. > 0.) I think using the "package" provider in puppet will not work > if the > program installed did not use the MSI installer.(?) > > > Correct, there is only an ''msi'' package provider. > > 1.) Check for existence of a file known to be installed from the > relevant > installer. If the file is found, the script exits. > 2.) Some method to check the registry at > "SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products" > for the existence of the program. > 3.) Run Puppet Agent less often on the client so it is "not such a big > deal". > > > If the packages are "well-behaving" they should follow these guidelines > during install/uninstall[1]. In particular, they should add the > appropriate registry entries under: > > HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall > > Josh > > [1] http://msdn.microsoft.com/en-us/library/ms954376.aspx > > -- > 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 puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en.-- ==================================Andrew Ring System Administrator Kuriyan Laboratory http://jkweb.qb3.berkeley.edu/ Doudna Laboratory http://rna.berkeley.edu/ University of California, Berkeley Office: 542 Stanley Hall Shipping: 176 Stanley Hall, QB3 Berkeley, CA 94720-3220 tel: (510) 643 0166 fax: (510) 643 2352 =================================== -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Apparently Analagous Threads
- R 1.9.0, special characters in variable names.
- local copy microsoft/credentials directory profile redirection
- documentation for configuring folder redirection
- [PATCH v2] inspection: Fix detection of the kernel version of Windows ≥ 10 (RHBZ#1281578).
- [PATCH] inspection: Fix detection of the kernel version of Windows ≥ 10 (RHBZ#1281578).