예제 #1
0
        /// <summary>
        /// Constructs the install wizard user interface.
        /// </summary>
        /// <param name="installer">The package installer.</param>
        public InstallWizard(DBPackageInstaller installer)
        {
            this.installer  = installer;
            this.setupState = new StringDictionary();

            setupState["server"]   = installer.Server;
            setupState["database"] = installer.Database;
            setupState["account"]  = installer.Account;
            setupState["password"] = installer.Password;

            setupState["setupTitle"]     = installer.setupTitle;
            setupState["productName"]    = installer.productName;
            setupState["productID"]      = installer.productID;
            setupState["productVersion"] = installer.productVersion.ToString();
            setupState["databaseType"]   = installer.databaseType;
            setupState["schemaVersion"]  = installer.schemaVersion.ToString();

            InitializeComponent();
        }
예제 #2
0
 /// <summary>
 /// Runs the installation wizard.
 /// </summary>
 /// <param name="installer">The package installer.</param>
 /// <returns>A DBInstallResult indicating what happened.</returns>
 public static DBInstallResult Install(DBPackageInstaller installer)
 {
     result = DBInstallResult.Unknown;
     Application.Run(new InstallWizard(installer));
     return(result);
 }