Esempio n. 1
0
        public void InstallToDestination(string destinationPath)
        {
            // Hedef Adresi Oluşturma
            if (!fileManagement.FolderExist(destinationPath))
            {
                fileManagement.CreateDirectory(destinationPath);
                logger.Info("Kurulum için belirtilen '{0}' hedef yol oluşturuldu.", destinationPath);
            }
            else
            {
                logger.Warn("Kurulum için belirtilen '{0}' hedef yol zaten mevcut...", destinationPath);
            }

            // Program dosyalarını Kopyalama
            List <FileInfo> fileInfos = fileManagement.GetFiles(Application.StartupPath);

            foreach (var item in fileInfos)
            {
                fileManagement.FileInformation(item);
            }
            fileManagement.AllCopyFileWithFolder(install.InstallLocation, destinationPath);
        }