Пример #1
0
		public RegistryExportAction(ActionRegistryExport registryExport, List<string> registryKeyExclusions)
		{
			try
			{
				if (string.IsNullOrEmpty(registryExport.ApplyRegistryExclusions))
				{
					m_applyRegistryExclusions = false;
				}
				else
				{
					m_applyRegistryExclusions = Convert.ToBoolean(registryExport.ApplyRegistryExclusions.ToLower());
				}

				m_sourceHive = registryExport.SourceHive;
				m_sourceRoot = registryExport.SourceRoot;
				m_targetFile = GetTarget(registryExport.TargetRoot, registryExport.TargetDirectory, registryExport.TargetFilename);
				m_registryKeyExclusions = registryKeyExclusions;
			}
			catch (Exception ex)
			{
				Logger.LogError(ex, "Exception in setting RegistryExportAction members.");
			}
		}
Пример #2
0
		private ActionRegistryExport GetActionRegistryExport(string hive, string target)
		{
			ActionRegistryExport actionRegistryExport = new ActionRegistryExport
			                                            	{
			                                            		ExcludeEncryptedData = "True",
			                                            		SourceHive = hive,
			                                            		SourceRoot = @"Software\Workshare",
			                                            		TargetRoot = TestFilesPath,
			                                            		TargetDirectory = "TestRegistryExport",
			                                            		TargetFilename = target
			                                            	};
			return actionRegistryExport;
		}