Beispiel #1
0
        /// <summary>
        /// Uninstall Package - Before Delete (Old style events, no V6/V7 equivelant)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void InstalledPackage_BeforeDelete(InstalledPackage sender, System.EventArgs e)
        {
            //Check which package is being uninstalled
            if (sender.Data.Name == "Analytics")
            {
                var uninstall = new UninstallHelpers();

                //Start Uninstall - clean up process...
                uninstall.RemoveSection();
                uninstall.RemoveTranslations();
                uninstall.RemoveSectionDashboard();

                //Remove AppSetting key when all done
                ConfigurationManager.AppSettings.Remove(AppSettingKey);
            }
        }
        /// <summary>
        /// Uninstall Package - Before Delete (Old style events, no V6/V7 equivelant)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void InstalledPackage_BeforeDelete(InstalledPackage sender, System.EventArgs e)
        {
            //Check which package is being uninstalled
            if (sender.Data.Name == "Analytics")
            {
                var uninstall = new UninstallHelpers();

                //Start Uninstall - clean up process...
                uninstall.RemoveSection();
                uninstall.RemoveTranslations();
                uninstall.RemoveSectionDashboard();

                //Remove AppSetting key when all done
                ConfigurationManager.AppSettings.Remove(AppSettingKey);
            }
        }