Пример #1
0
        } // Install

        private void InstallFile(string file)
        {
            if (!File.Exists(file))
            {
                Log.LogError("Assembly file '{0}' not found.", file);
                _failed++;
                return;
            }

            AssemblyName name     = AssemblyName.GetAssemblyName(file);
            string       fullName = FusionWrapper.AppendProccessor(name.FullName, name.ProcessorArchitecture);

            _installedNames.Add(name.FullName);

            FusionWrapper.InstallAssembly(file, _force);
            Log.LogMessage("Installed: {0}", name.FullName);

            string installPath = FusionWrapper.GetAssemblyPath(fullName);

            _installedPaths.Add(new TaskItem(installPath));

            _successful++;

            if (_includeRelatedFiles)
            {
                CopyRelatedFiles(file, Path.GetDirectoryName(installPath));
            }
        }