Skip to content

Commit

Permalink
Rename directory
Browse files Browse the repository at this point in the history
'dartium' to 'chromium', also applied to older installations
  • Loading branch information
GeKorm committed Aug 19, 2015
1 parent 7d0ae88 commit 410b914
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
8 changes: 5 additions & 3 deletions dart_x64_dev_setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Source: "assets\7za.exe"; DestDir: "{tmp}\"; Flags: dontcopy
Source: "bin\updater-dev\Dart Update.exe"; DestDir: "{app}\"; Flags: ignoreversion overwritereadonly
Source: "assets\dart-icon.ico"; DestDir: "{app}\"; Flags: ignoreversion overwritereadonly
Source: "{tmp}\dart-sdk\*"; DestDir: "{app}\dart-sdk"; Flags: ignoreversion recursesubdirs createallsubdirs external
Source: "{tmp}\temp-dartium\dartium\*"; DestDir: "{app}\dartium"; Flags: ignoreversion recursesubdirs createallsubdirs external
Source: "{tmp}\temp-dartium\chromium\*"; DestDir: "{app}\chromium"; Flags: ignoreversion recursesubdirs createallsubdirs external
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Expand Down Expand Up @@ -154,7 +154,7 @@ var
Y: string;
ResultCode: Integer;
begin
Exec(ExpandConstant('{win}\cmd.exe'), 'ROBOCOPY ' + GetDartiumName(Y) + ' ' + ExpandConstant('{tmp}\dartium') + ' /E', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{win}\cmd.exe'), 'ROBOCOPY ' + GetDartiumName(Y) + ' ' + ExpandConstant('{tmp}\chromium') + ' /E', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
procedure CurPageChanged(CurPageID: Integer);
Expand Down Expand Up @@ -184,6 +184,8 @@ var
begin
if (CurStep = ssInstall) then
begin
RenameFile(GetDartiumName(S), ExpandConstant('{tmp}\temp-dartium\dartium'));
RenameFile(GetDartiumName(S), ExpandConstant('{tmp}\temp-dartium\chromium'));
if DirExists(ExpandConstant('{app}\dartium')) then
RenameFile(ExpandConstant('{app}\dartium'), ExpandConstant('{app}\chromium'));
end;
end;
6 changes: 3 additions & 3 deletions dart_x64_dev_update.iss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
Source: "assets\7za.exe"; DestDir: {tmp}; Flags: dontcopy
Source: "assets\dart-icon.ico"; DestDir: "{app}\"; Flags: ignoreversion overwritereadonly
Source: "{tmp}\dart-sdk\*"; DestDir: "{app}\dart-sdk"; Flags: ignoreversion recursesubdirs createallsubdirs overwritereadonly external
Source: "{tmp}\temp-dartium\dartium\*"; DestDir: "{app}\dartium"; Flags: ignoreversion recursesubdirs createallsubdirs overwritereadonly external
Source: "{tmp}\temp-dartium\chromium\*"; DestDir: "{app}\chromium"; Flags: ignoreversion recursesubdirs createallsubdirs overwritereadonly external
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Expand Down Expand Up @@ -158,7 +158,7 @@ var
Y: string;
ResultCode: Integer;
begin
Exec(ExpandConstant('{win}\cmd.exe'), 'ROBOCOPY ' + GetDartiumName(Y) + ' ' + ExpandConstant('{tmp}\dartium') + ' /E', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{win}\cmd.exe'), 'ROBOCOPY ' + GetDartiumName(Y) + ' ' + ExpandConstant('{tmp}\chromium') + ' /E', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
procedure CurPageChanged(CurPageID: Integer);
Expand Down Expand Up @@ -188,6 +188,6 @@ var
begin
if (CurStep = ssInstall) then
begin
RenameFile(GetDartiumName(S), ExpandConstant('{tmp}\temp-dartium\dartium'));
RenameFile(GetDartiumName(S), ExpandConstant('{tmp}\temp-dartium\chromium'));
end;
end;
8 changes: 5 additions & 3 deletions dart_x64_stable_setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Source: "assets\7za.exe"; DestDir: "{tmp}\"; Flags: dontcopy
Source: "bin\updater-stable\Dart Update.exe"; DestDir: "{app}\"; Flags: ignoreversion overwritereadonly
Source: "assets\dart-icon.ico"; DestDir: "{app}\"; Flags: ignoreversion overwritereadonly
Source: "{tmp}\dart-sdk\*"; DestDir: "{app}\dart-sdk"; Flags: ignoreversion recursesubdirs createallsubdirs external
Source: "{tmp}\temp-dartium\dartium\*"; DestDir: "{app}\dartium"; Flags: ignoreversion recursesubdirs createallsubdirs external
Source: "{tmp}\temp-dartium\chromium\*"; DestDir: "{app}\chromium"; Flags: ignoreversion recursesubdirs createallsubdirs external
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Expand Down Expand Up @@ -154,7 +154,7 @@ var
Y: string;
ResultCode: Integer;
begin
Exec(ExpandConstant('{win}\cmd.exe'), 'ROBOCOPY ' + GetDartiumName(Y) + ' ' + ExpandConstant('{tmp}\dartium') + ' /E', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{win}\cmd.exe'), 'ROBOCOPY ' + GetDartiumName(Y) + ' ' + ExpandConstant('{tmp}\chromium') + ' /E', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
procedure CurPageChanged(CurPageID: Integer);
Expand Down Expand Up @@ -184,6 +184,8 @@ var
begin
if (CurStep = ssInstall) then
begin
RenameFile(GetDartiumName(S), ExpandConstant('{tmp}\temp-dartium\dartium'));
RenameFile(GetDartiumName(S), ExpandConstant('{tmp}\temp-dartium\chromium'));
if DirExists(ExpandConstant('{app}\dartium')) then
RenameFile(ExpandConstant('{app}\dartium'), ExpandConstant('{app}\chromium'));
end;
end;
6 changes: 3 additions & 3 deletions dart_x64_stable_update.iss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
Source: "assets\7za.exe"; DestDir: {tmp}; Flags: dontcopy
Source: "assets\dart-icon.ico"; DestDir: "{app}\"; Flags: ignoreversion overwritereadonly
Source: "{tmp}\dart-sdk\*"; DestDir: "{app}\dart-sdk"; Flags: ignoreversion recursesubdirs createallsubdirs overwritereadonly external
Source: "{tmp}\temp-dartium\dartium\*"; DestDir: "{app}\dartium"; Flags: ignoreversion recursesubdirs createallsubdirs overwritereadonly external
Source: "{tmp}\temp-dartium\chromium\*"; DestDir: "{app}\chromium"; Flags: ignoreversion recursesubdirs createallsubdirs overwritereadonly external
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Expand Down Expand Up @@ -158,7 +158,7 @@ var
Y: string;
ResultCode: Integer;
begin
Exec(ExpandConstant('{win}\cmd.exe'), 'ROBOCOPY ' + GetDartiumName(Y) + ' ' + ExpandConstant('{tmp}\dartium') + ' /E', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
Exec(ExpandConstant('{win}\cmd.exe'), 'ROBOCOPY ' + GetDartiumName(Y) + ' ' + ExpandConstant('{tmp}\chromium') + ' /E', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
end;
procedure CurPageChanged(CurPageID: Integer);
Expand Down Expand Up @@ -188,6 +188,6 @@ var
begin
if (CurStep = ssInstall) then
begin
RenameFile(GetDartiumName(S), ExpandConstant('{tmp}\temp-dartium\dartium'));
RenameFile(GetDartiumName(S), ExpandConstant('{tmp}\temp-dartium\chromium'));
end;
end;

0 comments on commit 410b914

Please sign in to comment.