Client Automation - SD Job Error 1639 - Invalid command line argument. [MSI001639]

Document ID : KB000122959
Last Modified Date : 13/12/2018
Show Technical Document Details
A SD Package for a MSI is returning following error on the target machines :

1639 - Invalid command line argument. [MSI001639]
User-added image

This error could occur if there is a character / inside the value of one MSI Parameter.

Example :
In properties of MSI Install procedure, following value has been set for one MSI parameter :

"C:\\Program Files (x86)\\Microsoft Office\\Office15\\outlook.exe /recycle"
User-added image

When this procedure is sent to a computer, sd_msiexe interprets /recycle as a new parameter.
As /recycle is not a valid msiexec option, msiexec returns error : 
"1639 - Invalid command line argument"

  • Check if / character could be replaced by -

In above example, outlook.exe accepts /recycle or -recycle as option.

"C:\\Program Files (x86)\\Microsoft Office\\Office15\\outlook.exe /recycle"

could be replaced by

"C:\\Program Files (x86)\\Microsoft Office\\Office15\\outlook.exe -recycle"

Another solution if / could not be replaced by - :

  • As problem is with sd_msiexe, create a .BAT file containing the msiexec command line. Add the .BAT file in source of SD package and create an install procedure from this .BAT file :
Example of .BAT file :
msiexec /i msi_name.msi PARAM="C:\\Program Files (x86)\\Microsoft Office\\Office15\\outlook.exe /recycle"  /qn