Installer: old to new update #4
This commit is contained in:
parent
8219bc32c9
commit
b2bb23ea13
7 changed files with 106 additions and 21 deletions
|
@ -335,10 +335,10 @@ namespace WebsitePanel.Setup
|
|||
return files;
|
||||
}
|
||||
|
||||
public static void CopyFileToFolder(string sourceFile, string destinationFolder)
|
||||
public static void CopyFileToFolder(string sourceFile, string destinationFolder, string destinationFileName = "")
|
||||
{
|
||||
string fileName = Path.GetFileName(sourceFile);
|
||||
string destinationFile = Path.Combine(destinationFolder, fileName);
|
||||
string destinationFile = Path.Combine(destinationFolder, string.IsNullOrWhiteSpace(destinationFileName) ? fileName : destinationFileName);
|
||||
CopyFile(new FileInfo(sourceFile), destinationFile);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue