diff --git a/res/updater/updater.dpr b/res/updater/updater.dpr index 9390edfb..ecee09b9 100644 --- a/res/updater/updater.dpr +++ b/res/updater/updater.dpr @@ -218,10 +218,12 @@ begin BackupPath := ExtractFilepath(Paramstr(0))+ExtractFilename(AppPath)+'.backup.exe'; if FileExists(BackupPath) then DeleteFile(PChar(BackupPath)); - if not MoveFile(PChar(AppPath), PChar(BackupPath)) then + if not CopyFile(PChar(AppPath), PChar(BackupPath), False) then Status('Failed to create backup file "'+BackupPath+'" from "'+AppPath+'"', True) - else + else begin + DeleteFile(PChar(AppPath)); Status('Success.'); + end; // Move update file to final path Status('Moving downloaded file to desired directory ...'); diff --git a/res/updater/updater.dproj b/res/updater/updater.dproj index 018bc37e..3c64e0ed 100644 --- a/res/updater/updater.dproj +++ b/res/updater/updater.dproj @@ -1,24 +1,19 @@  {24E2AAD6-CDE7-46EC-95BD-79028373B17A} - 19.2 + 19.4 updater.dpr Debug DCC32 True Console None - Win32 + Win64 3 true - - true - Base - true - true Base @@ -39,12 +34,6 @@ Base true - - true - Cfg_2 - true - true - 1031 CompanyName=;FileDescription=;FileVersion=1.0.0.0;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0;Comments= @@ -63,10 +52,6 @@ $(BDS)\bin\delphi_PROJECTICON.ico $(BDS)\bin\delphi_PROJECTICNS.icns - - CFBundleName=$(MSBuildProjectName);CFBundleDisplayName=$(MSBuildProjectName);CFBundleIdentifier=$(MSBuildProjectName);CFBundleVersion=1.0.0;CFBundleShortVersionString=1.0.0;CFBundlePackageType=APPL;CFBundleSignature=????;CFBundleAllowMixedLocalizations=YES;CFBundleExecutable=$(MSBuildProjectName);NSHighResolutionCapable=true;LSApplicationCategoryType=public.app-category.utilities;NSLocationUsageDescription=The reason for accessing the location information of the user;NSContactsUsageDescription=The reason for accessing the contacts;NSCalendarsUsageDescription=The reason for accessing the calendar data;NSRemindersUsageDescription=The reason for accessing the reminders;NSCameraUsageDescription=The reason for accessing the camera;NSMicrophoneUsageDescription=The reason for accessing the microphone;NSMotionUsageDescription=The reason for accessing the accelerometer;NSDesktopFolderUsageDescription=The reason for accessing the Desktop folder;NSDocumentsFolderUsageDescription=The reason for accessing the Documents folder;NSDownloadsFolderUsageDescription=The reason for accessing the Downloads folder;NSNetworkVolumesUsageDescription=The reason for accessing files on a network volume;NSRemovableVolumesUsageDescription=The reason for accessing files on a removable volume;NSSpeechRecognitionUsageDescription=The reason for requesting to send user data to Apple's speech recognition servers - Debug - System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;$(DCC_Namespace) 1033 @@ -84,17 +69,10 @@ DEBUG;$(DCC_Define) - - true - MainSource - - Cfg_2 - Base - Base @@ -102,6 +80,10 @@ Cfg_1 Base + + Cfg_2 + Base + @@ -147,8 +129,6 @@ - False - False True True diff --git a/res/updater32.exe b/res/updater32.exe index b3b90f75..efbfc519 100644 Binary files a/res/updater32.exe and b/res/updater32.exe differ diff --git a/res/updater64.exe b/res/updater64.exe index 88354359..477491c3 100644 Binary files a/res/updater64.exe and b/res/updater64.exe differ