Change directory move to copy.

This commit is contained in:
Jared Goodwin 2020-03-17 07:28:52 -07:00
parent 479d77bef8
commit 3374a19acb
2 changed files with 4 additions and 2 deletions

View File

@ -90,6 +90,7 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="System" />
<Reference Include="System.Configuration.Install" />
<Reference Include="System.Data" />

View File

@ -1,4 +1,5 @@
using Microsoft.Win32;
using Microsoft.VisualBasic.FileIO;
using Microsoft.Win32;
using Remotely.Shared.Models;
using System;
using System.Collections.Generic;
@ -251,7 +252,7 @@ namespace Remotely.Agent.Installer.Win.Services
}
else if (Directory.Exists(entry))
{
Directory.Move(entry, Path.Combine(InstallPath, new DirectoryInfo(entry).Name));
FileSystem.CopyDirectory(entry, Path.Combine(InstallPath, new DirectoryInfo(entry).Name), true);
}
await Task.Delay(1);
}