; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
;
; (c) Copyright 2001-2005, The TiLP Team
;

[Setup]
AppName=TiLP2 SDK
AppVerName=TiLP2 SDK 1.04
AppPublisher=The TiLP Team
AppPublisherURL=http://lpg.ticalc.org/prj_tilp/tilp-news.php
AppSupportURL=http://lpg.ticalc.org/prj_tilp/tilp-staff.php
AppUpdatesURL=http://lpg.ticalc.org/prj_tilp/tilp-developers.php
DefaultDirName={pf}\TiLP2 SDK
DefaultGroupName=TiLP2
AllowNoIcons=yes
LicenseFile=C:\sources\roms\tilp2\COPYING
InfoBeforeFile=C:\sources\roms\tilp2\build\InnoSetup\TiLP-SDK\Informations.txt
InfoAfterFile=C:\sources\roms\tilp2\build\InnoSetup\TiLP-SDK\Release.txt

[Tasks]
Name: "desktopicon"; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"; MinVersion: 4,4
Name: "quicklaunchicon"; Description: "Create a &Quick Launch icon"; GroupDescription: "Additional icons:"; MinVersion: 4,4; Flags: unchecked

[Files]
; TiCables library
Source: "C:\sources\roms\ticables2\build\msvc\*.*"; DestDir: "{app}\ticables2\build\msvc"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticables2\docs\html\*.html"; DestDir: "{app}\ticables2\docs"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticables2\docs\html\*.gif"; DestDir: "{app}\ticables2\docs"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticables2\src\*.c"; DestDir: "{app}\ticables2\src"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticables2\src\*.h"; DestDir: "{app}\ticables2\src"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticables2\tests\*.c"; DestDir: "{app}\ticables2\tests"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;

Source: "C:\sources\roms\ticables2\tests\libticables2-1.dll"; DestDir: "{app}\ticables2\build\msvc\Release"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\ticables2\build\msvc\libticables2-1.lib"; DestDir: "{app}\ticables2\build\msvc\Release"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\ticables2\tests\test_ticables_2.exe"; DestDir: "{app}\ticables2\build\msvc\Release"; CopyMode: alwaysoverwrite;

Source: "C:\msvc\tilp2\libticables2-1.dll"; DestDir: "{app}\ticables2\build\msvc\Debug"; Flags: ignoreversion;
Source: "C:\msvc\tilp2\libticables2-1.lib"; DestDir: "{app}\ticables2\build\msvc\Debug"; Flags: ignoreversion;
Source: "C:\msvc\tilp2\test_ticables2.exe"; DestDir: "{app}\ticables2\build\msvc\Debug"; Flags: ignoreversion;


Source: "C:\sources\roms\ticables2\ChangeLog"; DestDir: "{app}\ticables2"; Flags: ignoreversion;
Source: "C:\sources\roms\ticables2\ReadMe"; DestDir: "{app}\ticables2"; Flags: ignoreversion;
Source: "C:\sources\roms\ticables2\Copying"; DestDir: "{app}\ticables2"; Flags: ignoreversion;

; COM Ticables wrapper
Source: "C:\sources\roms\ticables2\com\cticables2.tlb"; DestDir: "{app}\cticables2\"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\ticables2\com\cticables2.idl"; DestDir: "{app}\cticables2\"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\ticables2\com\cticables2.h"; DestDir: "{app}\cticables2\"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\ticables2\com\cticables2_i.c"; DestDir: "{app}\cticables2\"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\ticables2\com\cticables2_p.c"; DestDir: "{app}\cticables2\"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\ticables2\com\Debug\cticables2.dll"; DestDir: "{app}\cticables2\"; CopyMode: alwaysoverwrite;
Source: "C:\msvc\tilp2\libticables2-1.dll"; DestDir: "{app}\cticables2\"; Flags: ignoreversion;
Source: "C:\sources\roms\ticables2\com\test_vba.doc"; DestDir: "{app}\cticables2\"; CopyMode: alwaysoverwrite;

; TiCalcs library
Source: "C:\sources\roms\ticalcs2\build\msvc\*.*"; DestDir: "{app}\ticalcs2\build\msvc"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticalcs2\docs\html\*.html"; DestDir: "{app}\ticalcs2\docs"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticalcs2\docs\html\*.gif"; DestDir: "{app}\ticalcs2\docs"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticalcs2\src\*.c"; DestDir: "{app}\ticalcs2\src"; CopyMode: alwaysoverwrite; Flags:  recursesubdirs;
Source: "C:\sources\roms\ticalcs2\src\*.h"; DestDir: "{app}\ticalcs2\src"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticalcs2\tests\*.c"; DestDir: "{app}\ticalcs2\tests"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;

Source: "C:\sources\roms\ticalcs2\tests\libticalcs2-6.dll"; DestDir: "{app}\ticalcs2\build\msvc\Release"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\ticalcs2\build\msvc\ticalcs2.lib"; DestDir: "{app}\ticalcs2\build\msvc\Release"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\ticalcs2\tests\test_ticalcs_2.exe"; DestDir: "{app}\ticalcs2\build\msvc\Release"; CopyMode: alwaysoverwrite;

Source: "C:\msvc\tilp2\libticalcs2-6.dll"; DestDir: "{app}\ticalcs2\build\msvc\Debug"; Flags: ignoreversion;
Source: "C:\msvc\tilp2\libticalcs2-6.lib"; DestDir: "{app}\ticalcs2\build\msvc\Debug"; Flags: ignoreversion;
Source: "C:\msvc\tilp2\test_ticalcs_2.exe"; DestDir: "{app}\ticalcs2\build\msvc\Debug"; Flags: ignoreversion;

Source: "C:\sources\roms\ticalcs2\ChangeLog"; DestDir: "{app}\ticalcs2"; Flags: ignoreversion;
Source: "C:\sources\roms\ticalcs2\ReadMe"; DestDir: "{app}\ticalcs2"; Flags: ignoreversion;
Source: "C:\sources\roms\ticalcs2\Copying"; DestDir: "{app}\ticalcs2"; Flags: ignoreversion;

; TiFiles library
Source: "C:\sources\roms\tifiles2\build\msvc\*.*"; DestDir: "{app}\tifiles2\build\msvc"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\tifiles2\docs\html\*.html"; DestDir: "{app}\tifiles2\docs"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\tifiles2\docs\html\*.gif"; DestDir: "{app}\tifiles2\docs"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\tifiles2\src\*.c"; DestDir: "{app}\tifiles2\src"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\tifiles2\src\*.h"; DestDir: "{app}\tifiles2\src"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\tifiles2\tests\*.c"; DestDir: "{app}\tifiles2\tests"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;

Source: "C:\sources\roms\tifiles2\tests\libtifiles2-4.dll"; DestDir: "{app}\tifiles2\build\msvc\Release"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\tifiles2\build\msvc\tifiles2.lib"; DestDir: "{app}\tifiles2\build\msvc\Release"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\tifiles2\tests\test_tifiles_2.exe"; DestDir: "{app}\tifiles2\build\msvc\Release"; CopyMode: alwaysoverwrite;

Source: "C:\msvc\tilp2\libtifiles2-4.dll"; DestDir: "{app}\tifiles2\build\msvc\Debug"; Flags: ignoreversion;
Source: "C:\msvc\tilp2\libtifiles2-4.lib"; DestDir: "{app}\tifiles2\build\msvc\Debug"; Flags: ignoreversion;
Source: "C:\msvc\tilp2\test_tifiles_2.exe"; DestDir: "{app}\tifiles2\build\msvc\Debug"; Flags: ignoreversion;

Source: "C:\sources\roms\tifiles2\ChangeLog"; DestDir: "{app}\tifiles2"; Flags: ignoreversion;
Source: "C:\sources\roms\tifiles2\ReadMe"; DestDir: "{app}\tifiles2"; Flags: ignoreversion;
Source: "C:\sources\roms\tifiles2\Copying"; DestDir: "{app}\tifiles2"; Flags: ignoreversion;

; TiConv library
Source: "C:\sources\roms\ticonv\build\msvc\*.*"; DestDir: "{app}\ticonv\build\msvc"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticonv\docs\html\*.html"; DestDir: "{app}\ticonv\docs"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticonv\docs\html\*.gif"; DestDir: "{app}\ticonv\docs"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticonv\docs\charsets\*.*"; DestDir: "{app}\ticonv\charsets"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticonv\src\*.c"; DestDir: "{app}\ticonv\src"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticonv\src\*.h"; DestDir: "{app}\ticonv\src"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;
Source: "C:\sources\roms\ticonv\tests\*.c"; DestDir: "{app}\ticonv\tests"; CopyMode: alwaysoverwrite; Flags: recursesubdirs;

Source: "C:\sources\roms\ticonv\tests\libticonv-3.dll"; DestDir: "{app}\ticonv\build\msvc\Release"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\ticonv\build\msvc\libticonv-3.lib"; DestDir: "{app}\ticonv\build\msvc\Release"; CopyMode: alwaysoverwrite;
Source: "C:\sources\roms\ticonv\tests\test_ticonv.exe"; DestDir: "{app}\ticonv\build\msvc\Release"; CopyMode: alwaysoverwrite;

Source: "C:\msvc\tilp2\libticonv-3.dll"; DestDir: "{app}\ticonv\build\msvc\Debug"; Flags: ignoreversion;
Source: "C:\msvc\tilp2\libticonv-3.lib"; DestDir: "{app}\ticonv\build\msvc\Debug"; Flags: ignoreversion;
Source: "C:\msvc\tilp2\test_tifiles_2.exe"; DestDir: "{app}\ticonv\build\msvc\Debug"; Flags: ignoreversion;

Source: "C:\sources\roms\ticonv\ChangeLog"; DestDir: "{app}\ticonv"; Flags: ignoreversion;
Source: "C:\sources\roms\ticonv\ReadMe"; DestDir: "{app}\ticonv"; Flags: ignoreversion;
Source: "C:\sources\roms\ticonv\Copying"; DestDir: "{app}\ticonv"; Flags: ignoreversion;

[INI]
Filename: "{app}\tilp2-sdk.url"; Section: "InternetShortcut"; Key: "URL"; String: "http://lpg.ticalc.org/prj_tilp/architecture.html"

[Icons]
Name: "{group}\SDK\Developer's area"; Filename: "{app}\tilp2-sdk.url"
Name: "{group}\SDK\Uninstall the TiLP2 SDK"; Filename: "{uninstallexe}"
Name: "{group}\SDK\ticables2 library"; Filename: "{app}\ticables2\docs\index.html"
Name: "{group}\SDK\ticalcs2 library"; Filename: "{app}\ticalcs2\docs\index.html"
Name: "{group}\SDK\tifiles2 library"; Filename: "{app}\tifiles2\docs\index.html"
Name: "{group}\SDK\ticonv library"; Filename: "{app}\ticonv\docs\index.html"

[Run]
; Remove any previously installed PortTalk driver (especially v1.x)
Filename: "{sys}\regsvr32.exe"; Parameters: """{app}\cticables2\cticables2.dll"""; MinVersion: 0,4;

[UninstallDelete]
Type: files; Name: "{app}\tilp2-sdk.url"
