salt icon indicating copy to clipboard operation
salt copied to clipboard

msiexec.exe logging windows install_flags fails

Open getabc opened this issue 11 years ago • 3 comments

Hello,

I'm trying to debug #25295 by setting the install_flags for msiexec.exe debug to logfile, but from the output salt is tokenizing the single flag into two.

install_flags: ' /quiet /qn /norestart /L*V c:\msi.log'

The minion returns the following '/quiet', '/qn', '/norestart','/L*V','c:\msi.log'

Is there a way to set /L*V c:\msi.log as a single flag?

Andrew

getabc avatar Jul 16 '15 04:07 getabc

@getabc Try install_flags: '/quiet /qn /passive /norestart /L*V c:/temp/node-msi.log'

For which the minion then still returns two tokens

''/quiet', '/qn', '/passive','/norestart','/L*V','c:/temp/node-msi.log' not sure why, but it works for me using unix forward slashes and it seems to simply 'chocke' on 'normal' windows slashes. Happy debugging.

TheBigBear avatar Jul 17 '15 10:07 TheBigBear

Use 'forward' slashes instead of regular 'backward' slashes in the msi log file name and it will work. This workaround resolves this issue #25472

TheBigBear avatar Jul 17 '15 10:07 TheBigBear

@TheBigBear thanks!!

getabc avatar Jul 17 '15 10:07 getabc