Check-in [11941c0935]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Auto-update form keeps track of the current executable and version up front, and uses that when necessary.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | develop
Files: files | file ages | folders
SHA1:11941c09351a3cde84bb2b7f20dc76fb25a170df
User & Date: tinus 2015-09-09 10:45:54
Context
2018-03-12
00:30
Added C# project for automatic updater for ZTreeWin. check-in: 355de8cbb4 user: tinus tags: develop
2016-03-03
07:42
Merged in changes from develop. Leaf check-in: af8a21be2f user: tinus tags: feature/sentinel-thread
2015-09-09
10:45
Auto-update form keeps track of the current executable and version up front, and uses that when necessary. check-in: 11941c0935 user: tinus tags: develop
2015-09-04
19:46
The Text Preview engine cares as little about file locks as possible. check-in: 2d46e0b905 user: Martijn tags: develop
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ZPreview/src/Delphi/F_AutoUpdate.pas.

1
2

3
4
5
6
7
8
9
..
62
63
64
65
66
67
68

69
70
71
72
73
74
75
76
77



78
79
80
81
82
83
84
...
205
206
207
208
209
210
211
212
213
214
215
216
217

218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
...
261
262
263
264
265
266
267



268
269
270
271
272
273
274
...
279
280
281
282
283
284
285
286
287
288






289
290
291
292
293
294
295
296
297
298
299
300
301
302

303
304
305
306
307
308
309
...
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
...
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
...
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
...
516
517
518
519
520
521
522



























523
unit F_AutoUpdate;


interface

uses
  System.SysUtils, System.Variants, System.Classes, System.Generics.Collections,
  System.Zip,
  Winapi.Windows, Winapi.Messages,
  Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls,
................................................................................

    property BaseURL: string                            read FBaseURL;
    property TagName: string                            read FTagName;
    property XmlFeed: TNativeXml                        read FXmlFeed;
    property Versions: TDictionary<TDateTime,TXmlNode>  read FVersions;
  end;


implementation
uses
  System.RegularExpressions, System.Types, System.IOUtils, System.UITypes, System.DateUtils,
  Winapi.ShellAPI, Winapi.WinInet,
  REST.Utils,
  L_VersionInfoW;

{$R *.dfm}




{ ------------------------------------------------------------------------------------------------ }
// http://stackoverflow.com/a/8438985/3092116
function LinkerTimestamp: TDateTime; overload;
begin
  Result := PImageNtHeaders(HInstance + PImageDosHeader(HInstance)^._lfanew)^.FileHeader.TimeDateStamp / SecsPerDay + UnixDateDelta;
end {LinkerTimestamp};

................................................................................
    FreeAndNil(FForm);
  end;
end {TUpdateChecker.AskUserForUpdate};

{ ------------------------------------------------------------------------------------------------ }
procedure TUpdateChecker.UpdateToVersion(const UUID: string);
var
  ExeName, ExeVersion: string;
  WorkPath, PathPrefix, BackupPrefix: string;
  ZipStream: TStream;
  Zip: TZipFile;
  i: Integer;
  FileName, PathName: string;

  SI: TStartupInfo;
  PI: TProcessInformation;
begin
  ExeName := Application.ExeName;
  with TFileVersionInfo.Create(ExeName) do begin
    try
      if HasVersionInfo then begin
        ExeVersion := Format('%d.%d.%d.%d', [MajorVersion, MinorVersion, Revision, Build]);
      end;
    finally
      Free;
    end;
  end;

  WorkPath := ExtractFilePath(ExeName);
  BackupPrefix := '~';
  if ExeVersion <> '' then
    BackupPrefix := BackupPrefix + ExeVersion;

  // download the zip from http://fossil.2of4.net/zaap/zip/zpreview.zip?uuid={UUID}
  {$MESSAGE HINT 'TODO: Pass a routine to update the progress bar? — Martijn 2015-08-11'}
  ZipStream := DownloadFromURL(FBaseURL + 'zip/' + URIEncode(FTagName) + '.zip?uuid=' + URIEncode(UUID));
  if not Assigned(ZipStream) then
    raise Exception.Create('Failed to download release ' + UUID + '.');
  try
    Zip := TZipFile.Create;
    try
      Zip.Open(ZipStream, zmRead);

      // extract each file, and try to rename an eventual existing file.
      PathPrefix := FTagName + '/';
................................................................................
            RenameFile(WorkPath + PathName + FileName, WorkPath + PathName + ChangeFileExt(FileName, BackupPrefix + ExtractFileExt(FileName)));
          end;

          Zip.Extract(i, WorkPath + PathName, False);

          // adjust the new file's modified time
          TFile.SetLastWriteTime(WorkPath + PathName + FileName, FileDateToDateTime(Zip.FileInfo[i].ModifiedDateTime));



        end;
      end;

      // TODO: use transacted file operations, so we can roll them back if something fails?
    finally
      Zip.Free;
    end;
................................................................................
  // Close the current instance...
  Application.Tag := -1; // signal for the single-instance algorithm that we're shutting down
  Application.OnException := nil;
  Application.Terminate;
  Application.MainForm.Close;

  // ...and start a new one
  {$MESSAGE HINT 'TODO: This goes wrong when the executable name has changed... — MCO 12-08-2015'}
  if not CreateProcess(nil, PChar(ExeName), nil, nil, True, 0, nil, nil, SI, PI) then
    RaiseLastOSError;






end {TUpdateChecker.UpdateToVersion};

{ ------------------------------------------------------------------------------------------------ }
function TUpdateChecker.DownloadFromURL(const URL: string): TStream;
var
  UserAgent: string;
  NetHandle, UrlHandle: HINTERNET;
  Buffer: array[0..$400 - 1] of AnsiChar;
  BytesRead: cardinal;
begin
  Result := nil;

  UserAgent := ChangeFileExt(ExtractFileName(Application.ExeName), '').Replace(' ', '');


  NetHandle := InternetOpenW(PChar(UserAgent), INTERNET_OPEN_TYPE_PRECONFIG, nil, nil, 0);

  if not assigned(NetHandle) then begin
    // NetHandle is not valid.
//    DoDebugOut(Self, wsFail, 'Unable to initialize WinInet');
    exit;
  end;
................................................................................
    btnInstall.Enabled := False;
    btnWebpage.Enabled := False;
    mmoChanges.Clear;
  end else begin
    btnWebpage.Enabled := True;
    xmlItem := TXmlNode(Item.Data);
    if Assigned(xmlItem) then begin
      {$MESSAGE HINT 'TODO: Use a different control that enables links — MCO 12-08-2015'}
      mmoChanges.Lines.Text := xmlItem.ReadUnicodeString('description', '(no description provided)');
      btnInstall.Enabled := True;
    end else begin
      btnInstall.Enabled := False;
    end;
  end;
end {TfrmAutoUpdate.lvwVersionsSelectItem};
................................................................................

{ ------------------------------------------------------------------------------------------------ }
procedure TfrmAutoUpdate.btnInstallClick(Sender: TObject);
begin
  // Check if it's an older version
  if lvwVersions.Selected.GroupID = 1 then begin
    if TaskMessageDlg('Download and install an OLDER version?',
                      'You will overwrite the current version of ZPreview with the following version:'#13#10 +
                        #13#10 +
                        lvwVersions.Selected.SubItems[1] + #13#10 +
                        #13#10 +
                        'Are you certain you want to do this?',
                      mtWarning, mbYesNo, 0, mbNo) <> mrYes then begin
      Self.ModalResult := mrNone;
    end;
................................................................................
procedure TfrmAutoUpdate.btnWebpageClick(Sender: TObject);
var
  UUID, URL: string;
  xmlItem: TXmlNode;
begin
  UUID := UUIDFromItem(lvwVersions.Selected);
  if UUID <> '' then begin
    URL := FUpdateChecker.BaseURL + 'dir?ci=' + URIEncode(UUID) + '&type=tree';
  end else if Assigned(lvwVersions.Selected) then begin
    xmlItem := TXmlNode(lvwVersions.Selected.Data);
    if Assigned(xmlItem) then begin
      URL := xmlItem.ReadUnicodeString('link');
    end else begin
      URL := FUpdateChecker.BaseURL + 'timeline?r=' + URIEncode(FUpdateChecker.TagName);
    end;
................................................................................
  end;
  if URL <> '' then
    ShellExecute(Handle, nil, PChar(URL), nil, nil, SW_SHOW);
end {TfrmAutoUpdate.btnWebpageClick};






























end.


>







 







>









>
>
>







 







<





>



|
<
<
<
<
<
<
<
<
<
<
|

|
|





|







 







>
>
>







 







|
|
|
>
>
>
>
>
>












|
|
>







 







|







 







|







 







|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

1
2
3
4
5
6
7
8
9
10
..
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
...
210
211
212
213
214
215
216

217
218
219
220
221
222
223
224
225
226










227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
...
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
...
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
...
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
...
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
...
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
...
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
unit F_AutoUpdate;

////////////////////////////////////////////////////////////////////////////////////////////////////
interface

uses
  System.SysUtils, System.Variants, System.Classes, System.Generics.Collections,
  System.Zip,
  Winapi.Windows, Winapi.Messages,
  Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ComCtrls,
................................................................................

    property BaseURL: string                            read FBaseURL;
    property TagName: string                            read FTagName;
    property XmlFeed: TNativeXml                        read FXmlFeed;
    property Versions: TDictionary<TDateTime,TXmlNode>  read FVersions;
  end;

////////////////////////////////////////////////////////////////////////////////////////////////////
implementation
uses
  System.RegularExpressions, System.Types, System.IOUtils, System.UITypes, System.DateUtils,
  Winapi.ShellAPI, Winapi.WinInet,
  REST.Utils,
  L_VersionInfoW;

{$R *.dfm}

var
  CurrentExe, CurrentVersion: string;

{ ------------------------------------------------------------------------------------------------ }
// http://stackoverflow.com/a/8438985/3092116
function LinkerTimestamp: TDateTime; overload;
begin
  Result := PImageNtHeaders(HInstance + PImageDosHeader(HInstance)^._lfanew)^.FileHeader.TimeDateStamp / SecsPerDay + UnixDateDelta;
end {LinkerTimestamp};

................................................................................
    FreeAndNil(FForm);
  end;
end {TUpdateChecker.AskUserForUpdate};

{ ------------------------------------------------------------------------------------------------ }
procedure TUpdateChecker.UpdateToVersion(const UUID: string);
var

  WorkPath, PathPrefix, BackupPrefix: string;
  ZipStream: TStream;
  Zip: TZipFile;
  i: Integer;
  FileName, PathName: string;
  ExeWasReplaced: boolean;
  SI: TStartupInfo;
  PI: TProcessInformation;
begin
  ExeWasReplaced := False;










  WorkPath := ExtractFilePath(CurrentExe);
  BackupPrefix := '~';
  if CurrentVersion <> '' then
    BackupPrefix := BackupPrefix + CurrentVersion;

  // download the zip from http://fossil.2of4.net/zaap/zip/zpreview.zip?uuid={UUID}
  {$MESSAGE HINT 'TODO: Pass a routine to update the progress bar? — Martijn 2015-08-11'}
  ZipStream := DownloadFromURL(FBaseURL + 'zip/' + URIEncode(FTagName) + '.zip?uuid=' + URIEncode(UUID));
  if not Assigned(ZipStream) then
    raise Exception.Create('Failed to download release ' + UUID + ': ' + SysErrorMessage(GetLastError));
  try
    Zip := TZipFile.Create;
    try
      Zip.Open(ZipStream, zmRead);

      // extract each file, and try to rename an eventual existing file.
      PathPrefix := FTagName + '/';
................................................................................
            RenameFile(WorkPath + PathName + FileName, WorkPath + PathName + ChangeFileExt(FileName, BackupPrefix + ExtractFileExt(FileName)));
          end;

          Zip.Extract(i, WorkPath + PathName, False);

          // adjust the new file's modified time
          TFile.SetLastWriteTime(WorkPath + PathName + FileName, FileDateToDateTime(Zip.FileInfo[i].ModifiedDateTime));

          if SameFileName(ExtractFileName(CurrentExe), FileName) then
            ExeWasReplaced := True;
        end;
      end;

      // TODO: use transacted file operations, so we can roll them back if something fails?
    finally
      Zip.Free;
    end;
................................................................................
  // Close the current instance...
  Application.Tag := -1; // signal for the single-instance algorithm that we're shutting down
  Application.OnException := nil;
  Application.Terminate;
  Application.MainForm.Close;

  // ...and start a new one
  if ExeWasReplaced then begin
    if not CreateProcess(nil, PChar(CurrentExe), nil, nil, True, 0, nil, nil, SI, PI) then
      RaiseLastOSError;
  end else begin
    ShellExecute(Application.Handle, nil,
                  PChar('explorer.exe /select,"' + CurrentExe + '"'),
                  nil, PChar(WorkPath),
                  SW_SHOWDEFAULT);
  end;
end {TUpdateChecker.UpdateToVersion};

{ ------------------------------------------------------------------------------------------------ }
function TUpdateChecker.DownloadFromURL(const URL: string): TStream;
var
  UserAgent: string;
  NetHandle, UrlHandle: HINTERNET;
  Buffer: array[0..$400 - 1] of AnsiChar;
  BytesRead: cardinal;
begin
  Result := nil;

  UserAgent := ChangeFileExt(ExtractFileName(CurrentExe), '').Replace(' ', '');
  if CurrentVersion <> '' then
    UserAgent := UserAgent + '/' + CurrentVersion;
  NetHandle := InternetOpenW(PChar(UserAgent), INTERNET_OPEN_TYPE_PRECONFIG, nil, nil, 0);

  if not assigned(NetHandle) then begin
    // NetHandle is not valid.
//    DoDebugOut(Self, wsFail, 'Unable to initialize WinInet');
    exit;
  end;
................................................................................
    btnInstall.Enabled := False;
    btnWebpage.Enabled := False;
    mmoChanges.Clear;
  end else begin
    btnWebpage.Enabled := True;
    xmlItem := TXmlNode(Item.Data);
    if Assigned(xmlItem) then begin
      {$MESSAGE HINT 'TODO: Use a different control that enables links; replace UUIDs by links to FUpdateChecker.BaseURL + ‘info/<uuid>’ — MCO 12-08-2015'}
      mmoChanges.Lines.Text := xmlItem.ReadUnicodeString('description', '(no description provided)');
      btnInstall.Enabled := True;
    end else begin
      btnInstall.Enabled := False;
    end;
  end;
end {TfrmAutoUpdate.lvwVersionsSelectItem};
................................................................................

{ ------------------------------------------------------------------------------------------------ }
procedure TfrmAutoUpdate.btnInstallClick(Sender: TObject);
begin
  // Check if it's an older version
  if lvwVersions.Selected.GroupID = 1 then begin
    if TaskMessageDlg('Download and install an OLDER version?',
                      'You will overwrite the current version (' + CurrentVersion + ') of ZPreview with the following version:'#13#10 +
                        #13#10 +
                        lvwVersions.Selected.SubItems[1] + #13#10 +
                        #13#10 +
                        'Are you certain you want to do this?',
                      mtWarning, mbYesNo, 0, mbNo) <> mrYes then begin
      Self.ModalResult := mrNone;
    end;
................................................................................
procedure TfrmAutoUpdate.btnWebpageClick(Sender: TObject);
var
  UUID, URL: string;
  xmlItem: TXmlNode;
begin
  UUID := UUIDFromItem(lvwVersions.Selected);
  if UUID <> '' then begin
    URL := FUpdateChecker.BaseURL + 'dir?type=tree&ci=' + URIEncode(UUID);
  end else if Assigned(lvwVersions.Selected) then begin
    xmlItem := TXmlNode(lvwVersions.Selected.Data);
    if Assigned(xmlItem) then begin
      URL := xmlItem.ReadUnicodeString('link');
    end else begin
      URL := FUpdateChecker.BaseURL + 'timeline?r=' + URIEncode(FUpdateChecker.TagName);
    end;
................................................................................
  end;
  if URL <> '' then
    ShellExecute(Handle, nil, PChar(URL), nil, nil, SW_SHOW);
end {TfrmAutoUpdate.btnWebpageClick};





{ ------------------------------------------------------------------------------------------------ }
procedure ReadCurrentExeVersion;
begin
  try
    CurrentExe := ExpandFileName(ParamStr(0));
    with TFileVersionInfo.Create(CurrentExe) do begin
      try
        if HasVersionInfo then begin
          CurrentVersion := Format('%d.%d.%d.%d', [MajorVersion, MinorVersion, Revision, Build]);
        end;
      finally
        Free;
      end;
    end;
  except
    CurrentVersion := '';
  end;
end {ReadCurrentExeVersion};

////////////////////////////////////////////////////////////////////////////////////////////////////
initialization
  ReadCurrentExeVersion;

finalization

end.

Changes to ZPreview/src/Delphi/ZPreview.dproj.

36
37
38
39
40
41
42

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
...
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
    </PropertyGroup>
    <PropertyGroup Condition="'$(Config)'=='Release' or '$(Cfg_2)'!=''">
        <Cfg_2>true</Cfg_2>
        <CfgParent>Base</CfgParent>
        <Base>true</Base>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Base)'!=''">

        <OutputExt>32.exe</OutputExt>
        <DCC_SYMBOL_PLATFORM>false</DCC_SYMBOL_PLATFORM>
        <DCC_UNIT_PLATFORM>false</DCC_UNIT_PLATFORM>
        <VerInfo_Release>2</VerInfo_Release>
        <VerInfo_PreRelease>true</VerInfo_PreRelease>
        <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
        <VerInfo_Locale>1033</VerInfo_Locale>
        <DCC_UnitSearchPath>ZAAP;FreeImage;Plugins;Common;Common\NativeXml;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
        <Icon_MainIcon>ZPreview_Icon.ico</Icon_MainIcon>
        <DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
        <Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
        <SanitizedProjectName>ZPreview</SanitizedProjectName>
        <VerInfo_Keys>CompanyName=Martijn Coppoolse;FileDescription=ZTreeWin Preview Assistant Application;FileVersion=1.0.2.0;InternalName=ZPreview;LegalCopyright=;LegalTrademarks=;OriginalFilename=ZPreview.exe;ProductName=ZPreview;ProductVersion=1.0;Comments=http://fossil.2of4.net/zaap/</VerInfo_Keys>
        <DCC_DcuOutput>..\..\out\.dcu\$(Platform)\$(Config)</DCC_DcuOutput>
        <DCC_ExeOutput>..\..\out\$(Config)</DCC_ExeOutput>
        <DCC_E>false</DCC_E>
        <DCC_N>false</DCC_N>
        <DCC_S>false</DCC_S>
        <DCC_F>false</DCC_F>
        <DCC_K>false</DCC_K>
................................................................................
                    <VersionInfoKeys Name="restoreAnyVersion"/>
                    <VersionInfoKeys Name="installLocation"/>
                    <VersionInfoKeys Name="largeHeap"/>
                    <VersionInfoKeys Name="theme"/>
                </VersionInfoKeys>
            </Delphi.Personality>
            <Deployment>
                <DeployFile LocalName="Win32\Debug\ZPreview.32.exe" Configuration="Debug" Class="ProjectOutput">
                    <Platform Name="Win32">
                        <RemoteName>ZPreview.exe</RemoteName>
                        <Overwrite>true</Overwrite>
                    </Platform>
                </DeployFile>
                <DeployFile LocalName="..\..\out\Debug\ZPreview.32.exe" Configuration="Debug" Class="ProjectOutput">
                    <Platform Name="Win32">
                        <RemoteName>ZPreview.exe</RemoteName>
                        <Overwrite>true</Overwrite>
                    </Platform>
                </DeployFile>
                <DeployFile LocalName="Win32\Debug\ZPreview.exe" Configuration="Debug" Class="ProjectOutput">
                    <Platform Name="Win32">
                        <RemoteName>ZPreview.exe</RemoteName>
                        <Overwrite>true</Overwrite>
                    </Platform>
                </DeployFile>
                <DeployClass Required="true" Name="DependencyPackage">
                    <Platform Name="iOSDevice">







>












|







 







|











|







36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
...
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
    </PropertyGroup>
    <PropertyGroup Condition="'$(Config)'=='Release' or '$(Cfg_2)'!=''">
        <Cfg_2>true</Cfg_2>
        <CfgParent>Base</CfgParent>
        <Base>true</Base>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Base)'!=''">
        <VerInfo_Build>1</VerInfo_Build>
        <OutputExt>32.exe</OutputExt>
        <DCC_SYMBOL_PLATFORM>false</DCC_SYMBOL_PLATFORM>
        <DCC_UNIT_PLATFORM>false</DCC_UNIT_PLATFORM>
        <VerInfo_Release>2</VerInfo_Release>
        <VerInfo_PreRelease>true</VerInfo_PreRelease>
        <VerInfo_IncludeVerInfo>true</VerInfo_IncludeVerInfo>
        <VerInfo_Locale>1033</VerInfo_Locale>
        <DCC_UnitSearchPath>ZAAP;FreeImage;Plugins;Common;Common\NativeXml;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
        <Icon_MainIcon>ZPreview_Icon.ico</Icon_MainIcon>
        <DCC_Namespace>System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell;$(DCC_Namespace)</DCC_Namespace>
        <Manifest_File>$(BDS)\bin\default_app.manifest</Manifest_File>
        <SanitizedProjectName>ZPreview</SanitizedProjectName>
        <VerInfo_Keys>CompanyName=Martijn Coppoolse;FileDescription=ZTreeWin Preview Assistant Application;FileVersion=1.0.2.1;InternalName=ZPreview;LegalCopyright=;LegalTrademarks=;OriginalFilename=ZPreview.exe;ProductName=ZPreview;ProductVersion=1.0;Comments=http://fossil.2of4.net/zaap/</VerInfo_Keys>
        <DCC_DcuOutput>..\..\out\.dcu\$(Platform)\$(Config)</DCC_DcuOutput>
        <DCC_ExeOutput>..\..\out\$(Config)</DCC_ExeOutput>
        <DCC_E>false</DCC_E>
        <DCC_N>false</DCC_N>
        <DCC_S>false</DCC_S>
        <DCC_F>false</DCC_F>
        <DCC_K>false</DCC_K>
................................................................................
                    <VersionInfoKeys Name="restoreAnyVersion"/>
                    <VersionInfoKeys Name="installLocation"/>
                    <VersionInfoKeys Name="largeHeap"/>
                    <VersionInfoKeys Name="theme"/>
                </VersionInfoKeys>
            </Delphi.Personality>
            <Deployment>
                <DeployFile LocalName="Win32\Debug\ZPreview.exe" Configuration="Debug" Class="ProjectOutput">
                    <Platform Name="Win32">
                        <RemoteName>ZPreview.exe</RemoteName>
                        <Overwrite>true</Overwrite>
                    </Platform>
                </DeployFile>
                <DeployFile LocalName="..\..\out\Debug\ZPreview.32.exe" Configuration="Debug" Class="ProjectOutput">
                    <Platform Name="Win32">
                        <RemoteName>ZPreview.exe</RemoteName>
                        <Overwrite>true</Overwrite>
                    </Platform>
                </DeployFile>
                <DeployFile LocalName="Win32\Debug\ZPreview.32.exe" Configuration="Debug" Class="ProjectOutput">
                    <Platform Name="Win32">
                        <RemoteName>ZPreview.exe</RemoteName>
                        <Overwrite>true</Overwrite>
                    </Platform>
                </DeployFile>
                <DeployClass Required="true" Name="DependencyPackage">
                    <Platform Name="iOSDevice">