Example #1
0
        /// <summary>
        /// Loads the fabricator extensions from the app.config
        /// </summary>
        private void LoadExtensions()
        {
            try
            {
                StringCollection extensionList = new StringCollection();

                // read the configuration file (ClickThrough.exe.config)
                AppCommon.ReadConfiguration(extensionList);

                this.extensions = new ClickThroughUIExtension[extensionList.Count];

                // load all extensions
                for (int i = 0; i < extensionList.Count; ++i)
                {
                    string extensionType = extensionList[i];
                    this.extensions[i] = ClickThroughUIExtension.Load(extensionType);
                }
            }
            catch (Exception e)
            {
                this.OnMessage(WixErrors.UnexpectedException(e.Message, e.GetType().ToString(), e.StackTrace));
                if (e is NullReferenceException || e is SEHException)
                {
                    throw;
                }
            }
        }