We have the same scenario and it works. You've to pass the parameters as follows
InstallUtil.exe /Param1="Value" /Param2="Value" "Path to your exe"
Then you've to override Install method on your installer
public override void Install(System.Collections.IDictionary stateSaver)
{
var lParam1 = GetParam("Param1");
}
private string GetParam(string pKey)
{
try
{
if (this.Context != null)
{
if (this.Context.Parameters != null)
{
string lParamValue = this.Context.Parameters[pKey];
if (lParamValue != null)
return lParamValue;
}
}
}
catch (Exception)
{
}
return string.Empty;
}