Steps to reproduce:
- create software installation recipe without definition of flags
- launch recipe
Result: msiexec dialog window with usage information
Expected result: installed msi package
Analyze:
Function policies/recipes/steps.go/stepInstallMsi contains code with default msiexec options
args := step.Flags
if len(args) == 0 {
args = []string{"/i", "/qn", "/norestart"}
}
args = append(args, path)
where path contain full path to *.msi file
By msiexec documentation parameter /i must contain value - package or product code. Then code may look like this:
args := step.Flags
if len(args) == 0 {
args = []string{"/qn", "/norestart", "/i"}
}
args = append(args, path)