Пример #1
0
 protected override void UnInstallFile(InstallFile scriptFile)
 {
     if (UnInstallScripts.ContainsValue(scriptFile) && ProviderConfiguration.DefaultProvider.ToLower() == Path.GetExtension(scriptFile.Name.ToLower()).Substring(1))
     {
         if (scriptFile.Name.ToLower().StartsWith("uninstall."))
         {
             Log.AddInfo(Util.SQL_Executing + scriptFile.Name);
             ExecuteSql(scriptFile, false);
         }
     }
     base.UnInstallFile(scriptFile);
 }
Пример #2
0
        protected override void UnInstallFile(InstallFile scriptFile)
        {
            //Process the file if it is an UnInstall Script
            if (UnInstallScripts.ContainsValue(scriptFile) && ProviderConfiguration.DefaultProvider.ToLower() == Path.GetExtension(scriptFile.Name.ToLower()).Substring(1))
            {
                if (scriptFile.Name.ToLower().StartsWith("uninstall."))
                {
                    //Install Script
                    Log.AddInfo(Util.SQL_Executing + scriptFile.Name);
                    ExecuteSql(scriptFile, false);
                }
            }

            //Call base method to delete file
            base.UnInstallFile(scriptFile);
        }
Пример #3
0
        protected override void UnInstallFile(InstallFile scriptFile)
        {
            //Process the file if it is an UnInstall Script
            var extension = Path.GetExtension(scriptFile.Name.ToLower());

            if (extension != null && (UnInstallScripts.ContainsValue(scriptFile)))
            {
                string fileExtension = extension.Substring(1);
                if (scriptFile.Name.ToLower().StartsWith("uninstall.") && IsValidScript(fileExtension))
                {
                    //Install Script
                    Log.AddInfo(Util.SQL_Executing + scriptFile.Name);
                    ExecuteSql(scriptFile);
                }
            }

            //Call base method to delete file
            base.UnInstallFile(scriptFile);
        }