Re: [Puppet Users] Passing exe switches on Windows

43 views
Skip to first unread message

Felix Frank

unread,
Dec 12, 2014, 7:58:39 AM12/12/14
to puppet...@googlegroups.com
On 12/10/2014 12:23 PM, cko wrote:
> /package { 'signotec WinUSB':/
> /ensure => '1.0.4',/
> /source => "E:/signotec_WinUSB_1.0.4_64Bit.exe",/
> /install_options => ['/S', '/vn'],/
> /}/
>
> Any ideas how to work around this issue?

Hi,

I don't really see how using `ensure => <version>` will have any effect
with this package, because you are installing from a local file with a
fixed version.

Have you considered resorting to an exec resource to perform the
installation for you? I assume that a well known file path is created
during installation, so you can use that to check (e.g. creates =>
'C:/Programs/...').

HTH,
Felix

Rob Reynolds

unread,
Dec 12, 2014, 11:50:06 AM12/12/14
to puppet...@googlegroups.com


On Wed, Dec 10, 2014 at 5:23 AM, cko <der...@gmail.com> wrote:
Hi,

I'm trying to get the following manifest to work on a Windows Server 2008R2 node:

package { 'signotec WinUSB':
ensure           => '1.0.4',
source           => "E:/signotec_WinUSB_1.0.4_64Bit.exe",
install_options  => ['/S', '/vn'],
}

Running 'puppet agent -t --debug' shows that the following command is executed:

Debug: Executing 'cmd.exe /c start "puppet-install" /w E:\signotec_WinUSB_1.0.4_64Bit.exe /S /vn'

About a second later, the MSI help pops up ( http://i.imgur.com/PpW5zVB.png ).

When i manually run the command "E:\signotec_WinUSB_1.0.4_64Bit.exe /S /vn" the package Installation works as expected.

Note that the /S /vn switches are mandatory with this particular package to perform a silent installation.


What Puppet actually does is probably something like this:

msiexec.exe /qn /norestart /i E:/signotec_WinUSB_1.0.4_64Bit.exe /S /vn


Unlikely. Have you tried running the full command that Puppet is reporting that it is running?

cmd.exe /c start "puppet-install" /w E:\signotec_WinUSB_1.0.4_64Bit.exe /S /vn
 



Which fails because the past two parameters are not supported my msiexec.



Any ideas how to work around this issue?

--
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/625500ec-db79-4564-ae25-883747c7ae54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2015, October 5-9 in Portland, OR - http://2015.puppetconf.com/
Register early to save 40%!

cko

unread,
Dec 12, 2014, 11:59:01 AM12/12/14
to puppet...@googlegroups.com
It turned out that it was a small typo in the documentation of the .exe file.

I resolved this issue by simply providing the correct switches to the install_options parameter.

Thanks!

Josh Cooper

unread,
Dec 12, 2014, 12:46:14 PM12/12/14
to puppet...@googlegroups.com
On Fri, Dec 12, 2014 at 8:59 AM, cko <der...@gmail.com> wrote:
It turned out that it was a small typo in the documentation of the .exe file.

I resolved this issue by simply providing the correct switches to the install_options parameter.

Can you provide details about what was wrong with the documentation, and what the correct switches were?


For more options, visit https://groups.google.com/d/optout.



--
Josh Cooper
Developer, Puppet Labs

Join us at PuppetConf 2015, October 5-9 in Portland, OR - http://2015.puppetconf.com.  

cko

unread,
Dec 13, 2014, 11:19:36 AM12/13/14
to puppet...@googlegroups.com
I was referring to the documentation that I got from the developer of the executable.

The correct switches are:

['/S', '/v/qn'],
Reply all
Reply to author
Forward
0 new messages