Skip to content

Commit

Permalink
finished installer
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVandezande committed Apr 28, 2013
1 parent d57694a commit 2742ff6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 85 deletions.
3 changes: 2 additions & 1 deletion Echoes/Build.train
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
folder.remove("BuildOutput", true);
folder.create("BuildOutput");

zip.compress("BuildOutput/XtraReports2012.2.zip", "source", "*.*", false, null);
zip.compress("BuildOutput/XtraReports2012.1.zip", "Reports/XtraReports2012.1", "*.*", false, null);
zip.compress("BuildOutput/XtraReports2012.2.zip", "Reports/XtraReports2012.2", "*.*", false, null);

var innoOptions =
{
Expand Down
105 changes: 22 additions & 83 deletions Echoes/CreateInstaller.iss
Original file line number Diff line number Diff line change
@@ -1,97 +1,36 @@
#include "scripts\products.iss"
#include "scripts\products\winversion.iss"
#include "scripts\products\fileversion.iss"
#include "scripts\products\msi31.iss"
#include "scripts\products\ie6.iss"
#include "scripts\products\dotnetfx35sp1.iss"
#define MyAppVer GetFileVersion(".\CompiledFiles\TestDesigner.exe")
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the Igerman.)
AppVersion={#MyAppVer}
AppId={{1F8E716E-EEC0-43F5-9CD9-131752D0C773}
AppName=Thunderbolt EIA/CLIA Test Designer
AppPublisher=Gold Standard Diagnostics
AppPublisherURL=http://www.gsdx.us/
AppSupportURL=http://www.gsdx.us/
AppUpdatesURL=http://www.gsdx.us/
AppCopyright=Copyright (C) 2013 Gold Standard Diagnostics
DefaultDirName={pf}\Gold Standard Diagnostics\ThunderBolt\EIA\TestDesigner
AppVersion=1.0
AppId={{780D1BA1-20DD-4498-BD84-E07D6B4DA530}
AppName=Oxygene Template Installer
AppPublisher=Team RO
DefaultDirName={userdocs}
DisableDirPage=yes
DefaultGroupName=Gold Standard Diagnostics\Thunderbolt EIA
;DefaultGroupName=Gold Standard Diagnostics\Thunderbolt EIA
DisableProgramGroupPage=yes
OutputBaseFilename=ThunderboltEIATestDesignerSetup_{#MyAppVer}
OutputBaseFilename=OxygeneTemplates
Compression=lzma/ultra
SolidCompression=yes
ArchitecturesInstallIn64BitMode=x64
SetupIconFile=GSD.ico
SetupIconFile=Oxygene.ico

[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"

[Files]
Source: ".\CompiledFiles\TestDesigner.exe"; DestDir: {code:GetCleanInstallFolder}; Flags: ignoreversion
Source: ".\CompiledFiles\*.dll"; DestDir: {code:GetCleanInstallFolder}; Flags: ignoreversion recursesubdirs
Source: ".\CompiledFiles\*.pdb"; DestDir: {code:GetCleanInstallFolder}; Flags: ignoreversion recursesubdirs
Source: ".\CompiledFiles\*.xml"; DestDir: {code:GetCleanInstallFolder}; Flags: ignoreversion recursesubdirs
Source: ".\Included Default Files\*.*"; DestDir: {code:GetCleanInstallFolder}; Flags: ignoreversion recursesubdirs createallsubdirs; Permissions: users-modify
;Source: "Test Designer Release Notes.html"; DestDir: {code:GetCleanInstallFolder}; Flags: ignoreversion
Source: ".\Included Files\*.*"; DestDir: {code:GetDataFolder}; Flags: ignoreversion recursesubdirs createallsubdirs; Permissions: users-full

[Icons]
Name: "{group}\Thunderbolt EIA Test Designer"; Filename: "{app}\TestDesigner.exe"
;Name: "{group}\Thunderbolt EIA Test Designer Release Notes"; Filename: "{app}\Test Designer Release Notes.html"
Name: "{group}\Data Folder"; Filename: {code:GetDataFolder}
Name: "{commondesktop}\Thunderbolt EIA Test Designer"; Filename: "{app}\TestDesigner.exe";


[Code]
var
UsagePage: TInputOptionWizardPage;
AppDirPage: TInputDirWizardPage;
DataDirPage: TInputDirWizardPage;
InstallFolderCleaned: Boolean;
procedure InitializeWizard;
begin
initwinversion();
if not minwinspversion(5, 1, 2) then
begin
MsgBox('Windows XP Service Pack 2 is the minimum supported system.', mbError, MB_OK);
Abort();
end;
msi31('3.0');
dotnetfx35sp1();
InstallFolderCleaned := false;
end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
end;
function GetDataFolder(par: String): String;
begin
result := ExpandConstant('{commonappdata}') + '\Gold Standard Diagnostics\ThunderBolt EIA\DataFolder';
end;
function GetCleanInstallFolder(par: String): String;
begin
result := ExpandConstant('{app}');
if not InstallFolderCleaned then
begin
DelTree(result + '\DefaultDispenses', true, true, true);
DelTree(result + '\DefaultFluidPickups', true, true, true);
DelTree(result + '\DefaultProbeWash', true, true, true);
DelTree(result + '\DefaultWellWash', true, true, true);
InstallFolderCleaned := true;
end;
end;
procedure CurStepChanged(CurStep: TSetupStep);
begin
end;
[Components]
Name: "vs2010"; Description: "Install into Visual Studio 2010"; Types: full;
Name: "vs2010\reporting"; Description: "Templates for reporting"; Types: full
Name: "vs2010\reporting\XtraReports2012_1"; Description: "XtraReports 2012.1"; Types: full
Name: "vs2010\reporting\XtraReports2012_2"; Description: "XtraReports 2012.2"; Types: full
Name: "vs2012"; Description: "Install into Visual Studio 2012"; Types: full;
Name: "vs2012\Reporting"; Description: "Templates for reporting"; Types: full
Name: "vs2012\Reporting\XtraReports2012_1"; Description: "XtraReports 2012.1"; Types: full
Name: "vs2012\Reporting\XtraReports2012_2"; Description: "XtraReports 2012.2"; Types: full

[Files]
Source: "BuildOutput\XtraReports2012.1.zip"; DestDir: "{app}\Visual Studio 2010\Templates\ItemTemplates\Oxygene\Reporting\1033"; Components: vs2010\reporting\XtraReports2012_1
Source: "BuildOutput\XtraReports2012.2.zip"; DestDir: "{app}\Visual Studio 2010\Templates\ItemTemplates\Oxygene\Reporting\1033"; Components: vs2010\reporting\XtraReports2012_2
Source: "BuildOutput\XtraReports2012.1.zip"; DestDir: "{app}\Visual Studio 2012\Templates\ItemTemplates\Oxygene\Reporting\1033"; Components: vs2012\reporting\XtraReports2012_1
Source: "BuildOutput\XtraReports2012.2.zip"; DestDir: "{app}\Visual Studio 2012\Templates\ItemTemplates\Oxygene\Reporting\1033"; Components: vs2012\reporting\XtraReports2012_2
Binary file added Echoes/Oxygene.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion Echoes/Reports/XtraReports2012.2/XtraReport.vstemplate
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<VSTemplate Version="2.0.0" Type="Item" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>XtraReport Class v12.1</Name>
<Name>XtraReport Class v12.2</Name>
<Description>A class for creating reports using the visual designer</Description>
<Icon>newreport.ico</Icon>
<ProjectType>Oxygene</ProjectType>
Expand Down

0 comments on commit 2742ff6

Please sign in to comment.