protected override void OnBeforeInstall(IDictionary savedState) { ServiceParameters parameters = new ServiceParameters(); // provides defaults if constructed without args string imagePathParameters = parameters.IntervalMinutes + "\" \"" + parameters.IntervalSeconds + "\" \"" + parameters.MasterServiceName + "\" \"" + parameters.TargetFolderPath + "\" \"" + parameters.DatabaseServer + "\" \"" + parameters.AssetDatabaseName + "\" \"" + parameters.LSDatabaseName + "\" \"" + parameters.RFIDCodePrefix; Context.Parameters["assemblypath"] = "\"" + Context.Parameters["assemblypath"] + "\" \"" + imagePathParameters + "\""; base.OnBeforeInstall(savedState); }