public AdvancedOptions(SerializationInfo info, StreamingContext context) { Certs = (Certificates)info.GetValue("certificates", typeof(Certificates)); users = (Users)info.GetValue("users", typeof(Users)); EnvironmentVariables = (EnvironmentVars)info.GetValue("environmentvars", typeof(EnvironmentVars)); WElements = (Elements)info.GetValue("welements", typeof(Elements)); feature = (Features)info.GetValue("features", typeof(Features)); FirewallExcept = (FirewallExceptions)info.GetValue("firewallexceptions", typeof(FirewallExceptions)); GlobalFileAssociations = (FileAssociations)info.GetValue("fileassociations", typeof(FileAssociations)); Registryvalues = (RegistryValues)info.GetValue("registryvalues", typeof(RegistryValues)); }
public AdvancedOptions() { Certs = new Certificates(); users = new Users(); EnvironmentVariables = new EnvironmentVars(); WElements = new Elements(); feature = new Features(); FirewallExcept = new FirewallExceptions(); GlobalFileAssociations = new FileAssociations(); Registryvalues = new RegistryValues(); }
public SourceFile(SerializationInfo info, StreamingContext context) { Path = (string)info.GetValue("path", typeof(string)); IsMainExecutable = (bool)info.GetValue("mainexecutable", typeof(bool)); Directory = (string)info.GetValue("directory", typeof(string)); CreateMenuShortCut = (bool)info.GetValue("menushortcut", typeof(bool)); CreateDeskTopShortCut = (bool)info.GetValue("desktopshortcut", typeof(bool)); IsLicenseFile = (bool)info.GetValue("licensefile", typeof(bool)); FeatureName = (string)info.GetValue("featurename", typeof(string)); FirewallExcept = (FirewallExceptions)info.GetValue("firewallexceptions", typeof(FirewallExceptions)); fileassociations = (FileAssociations)info.GetValue("fileassociations", typeof(FileAssociations)); }