We have the same scenario and it works. You must pass the parameters as follows
InstallUtil.exe /Param1="Value" /Param2="Value" "Path to your exe"
Then you must override the installation method in 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; }
source share