Package Install_Options that require a space and double quotes etc on Windows node

asked 2018-05-24 15:35:13 -0500

ATSDump gravatar image

Hi Guys,

I'm trying to convert this command to a puppet script :

BigFix-BES-Client- /s /v"INSTALLDIR=\"F:\Program Files (x86)\BigFix Enterprise\BES Client\" /qn"

So /S is the silent key for BigFix exe file and /v should include options for MSI install where InstallDir is the different drive than C and contains space and extra \ to cover " inside the /v options.

I tried these but don't work.

This pops up install window instead of silent install :

   install_options => ['/s /v\"INSTALLDIR=\"F:\Program Files (x86)\BigFix Enterprise\BES Client\" /qn\"',],

This pops up install window instead of silent install too but this is not the path of InstallDir, we want path with space :

  install_options => ['/s /v INSTALLDIR=F:\IBM\BigFix\BES /qn',],

Syntax error at 'INSTALLDIR' for below:

    install_options => [
    { '/v' => ' { 'INSTALLDIR' => 'F:\Program Files (x86)\BigFix Enterprise\BES Client' }, '/qn'' }

Any help would be appreciated!

edit retag flag offensive close merge delete


I haven’t worked directly with windows systems, but do you need to escape the space? Try doing a ‘puppet resource describe file ‘ on a file that has spaces in its name, and see what puppet reports

DarylW gravatar imageDarylW ( 2018-05-25 22:33:41 -0500 )edit