SD Job Error 1639 - Invalid command line argument. [MSI001639]
search cancel

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

book

Article ID: 122959

calendar_today

Updated On: 02-01-2024

Products

CA Client Automation - IT Client Manager CA Client Automation

Issue/Introduction

A SD Package for a MSI is returning following error on the target machines :

1639 - Invalid command line argument. [MSI001639]
 

Environment

Client Automation - All versions

Cause

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"
 


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"

Resolution

  • 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