Exemplo n.º 1
0
        public PaDnnInstallerBase GetDnnInstaller()
        {
            ModuleDefinitionVersion Version  = GetModuleVersion();
            PaDnnInstallerBase      retValue = null;

            switch (Version)
            {
            case ModuleDefinitionVersion.V2:

                retValue = new PaDnnInstallerBase(InstallerInfo);
                break;

            case ModuleDefinitionVersion.V3:

                retValue = new PaDnnInstaller_V3(InstallerInfo);
                break;

            case ModuleDefinitionVersion.V2_Skin:

                retValue = new PaDnnInstaller_V2Skin(InstallerInfo);
                break;

            case ModuleDefinitionVersion.V2_Provider:

                retValue = new PaDnnInstaller_V2Provider(InstallerInfo);
                break;

            case ModuleDefinitionVersion.VUnknown:

                throw (new Exception(EXCEPTION_Format));
            }

            return(retValue);
        }
        public PaDnnInstallerBase GetDnnInstaller()
        {
            ModuleDefinitionVersion Version = GetModuleVersion();
            PaDnnInstallerBase retValue = null;

            switch (Version)
            {
                case ModuleDefinitionVersion.V2:

                    retValue = new PaDnnInstallerBase(InstallerInfo);
                    break;
                case ModuleDefinitionVersion.V3:

                    retValue = new PaDnnInstaller_V3(InstallerInfo);
                    break;
                case ModuleDefinitionVersion.V2_Skin:

                    retValue = new PaDnnInstaller_V2Skin(InstallerInfo);
                    break;
                case ModuleDefinitionVersion.V2_Provider:

                    retValue = new PaDnnInstaller_V2Provider(InstallerInfo);
                    break;
                case ModuleDefinitionVersion.VUnknown:

                    throw (new Exception(EXCEPTION_Format));
                    
            }

            return retValue;
        }