Also note the name of the package resource being "VLC media player". You need to make sure this matches (case-sensitive) the name of the application in Add/Remove Programs after installation. That's how Puppet recognizes the app has been installed, so it won't try to reinstall it on the next Puppet run.
You can run the following command to output how Puppet detects this application after installation: puppet resource package 'VLC media player' On Friday, November 13, 2020 at 12:53:00 PM UTC+1 KevinR wrote: > Hi Jarod, > > the following Puppet code will do what you want to achieve: > > $file = 'vlc-3.0.11-win32.exe' > $tmpdir = 'C:/Windows/Temp' > > file { 'VLC Player Download': > ensure => present, > path => "${$tmpdir}/${file}", > source => " > https://videolan.mirror.liteserver.nl/vlc/3.0.11/win32/${file}" > } > > package { 'VLC media player': > ensure => 'present', > source => "${$tmpdir}/${file}", > install_options => ['/L=1033', '/S'] > } > > It's all about finding the silent install switches for these packages. For > VLC, you can find that in the "Alternative" section here: > https://wiki.videolan.org/Documentation:Installing_VLC/ > > On Thursday, November 12, 2020 at 4:08:28 PM UTC+1 Jarod Schoen wrote: > >> I see I guess that could work. So Chocolatey could be directed by puppet >> to install things. >> Do you know how well an offline Chocolatey repo works? >> >> When people use puppet to keep things installed and roll updates/new >> versions... do people invariably have to revert to manual install for some >> applications? >> >> >> >> On Tuesday, 10 November 2020 at 18:33:31 UTC-5 Ben Ford wrote: >> >>> Welcome! >>> >>> I'd actually install Chocolatey and use the provider from >>> https://forge.puppet.com/modules/puppetlabs/chocolatey to manage >>> packages like this on Windows. >>> >>> On Tue, Nov 10, 2020 at 3:31 PM Jarod Schoen <poppeta...@gmail.com> >>> wrote: >>> >>>> Hi >>>> so I just got started and I'm glad to be joining you. >>>> >>>> I have a question to get me started on my journey. >>>> >>>> Without escalating I get: >>>> Error: Could not update: The requested operation requires elevation. - >>>> CreateProcess >>>> >>>> So it looks like I have to run puppet with LocalService or some admin >>>> account. That's fine. I'll have to sort that out later. >>>> >>>> The major issue is with running exes. >>>> >>>> Here's my pp: >>>> >>>> package { 'vlc': >>>> ensure => '3.0.1', >>>> source => 'somepath\vlc-3.0.1-win64.exe', >>>> # install_options => ['INSTALLDIR=C:\blabla'], >>>> } >>>> >>>> When I run the Start Command Prompt as admin, it runs... but then VLC >>>> asks me for input which completely defeats the purpose of puppet in the >>>> environment. >>>> >>>> >>>> Do you guys know how to get puppet to take care of these installs or >>>> would I have to find an msi for everything... that already has built-in >>>> 'silent' and other install config switches ? >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Puppet Users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to puppet-users...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/puppet-users/fb546cff-2acf-4810-8fdf-58c39ef7ce67n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/puppet-users/fb546cff-2acf-4810-8fdf-58c39ef7ce67n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6d21b7af-c7f8-45f9-b509-3b6fec3d76d8n%40googlegroups.com.