diff --git a/res/updater/updater.dpr b/res/updater/updater.dpr index 4ed1165f..9390edfb 100644 --- a/res/updater/updater.dpr +++ b/res/updater/updater.dpr @@ -225,9 +225,11 @@ begin // Move update file to final path Status('Moving downloaded file to desired directory ...'); - if not MoveFile(PChar(DownloadPath), PChar(AppPath)) then - Status('Failed to move file "'+DownloadPath+'" to "'+AppPath+'"', True) + // Issue #1616: MoveFile() does not work when target directory is a symlink, so we prefer CopyFile + DeleteFile + if not CopyFile(PChar(DownloadPath), PChar(AppPath), False) then + Status('Failed to copy file "'+DownloadPath+'" to "'+AppPath+'"', True) else begin + DeleteFile(PChar(DownloadPath)); Status('Success. Restarting '+AppName+' now ...'); FillChar(SUInfo, SizeOf(SUInfo), #0); SUInfo.cb := SizeOf(SUInfo); diff --git a/res/updater/updater.dproj b/res/updater/updater.dproj index 3e68e59f..018bc37e 100644 --- a/res/updater/updater.dproj +++ b/res/updater/updater.dproj @@ -1,19 +1,24 @@  {24E2AAD6-CDE7-46EC-95BD-79028373B17A} - 15.2 + 19.2 updater.dpr Debug DCC32 True Console None - Win64 + Win32 3 true + + true + Base + true + true Base @@ -34,6 +39,12 @@ 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= @@ -48,6 +59,13 @@ false false false + updater + $(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) @@ -66,6 +84,9 @@ DEBUG;$(DCC_Define) + + true + MainSource @@ -126,7 +147,8 @@ - False + False + False True True diff --git a/res/updater32.exe b/res/updater32.exe index 6a1b31b2..b3b90f75 100644 Binary files a/res/updater32.exe and b/res/updater32.exe differ diff --git a/res/updater64.exe b/res/updater64.exe index 0a4d4130..88354359 100644 Binary files a/res/updater64.exe and b/res/updater64.exe differ