Example #1
0
        public static InstallationProperties CreateProperties()
        {
            var prop = new InstallationProperties();

            prop.Product                       = MPExtendedProduct.Service;
            prop.FileLayout                    = FileLayoutType.Source;
            prop.SourceRoot                    = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase.Replace("file:///", "")), "../../../.."));
            prop.CacheDirectory                = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MPExtended", "Cache");
            prop.LogDirectory                  = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MPExtended", "Logs");
            prop.ConfigurationDirectory        = Path.Combine(prop.SourceRoot, "Config");
            prop.DefaultConfigurationDirectory = prop.ConfigurationDirectory;
            prop.ConfigurationBackupDirectory  = Path.Combine(prop.ConfigurationDirectory, "ConfigBackup");
            prop.SourceBuildDirectory          = "Debug";
            return(prop);
        }
Example #2
0
 public static void Load(MPExtendedProduct product)
 {
     Properties = InstallationProperties.DetectForProduct(product);
 }