2007-10-05 08:00:29 +00:00
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
AppName=Doom Builder 2
AppVerName=Doom Builder 2.0
AppPublisher=CodeImp
AppPublisherURL=http://www.codeimp.com/
AppSupportURL=http://www.doombuilder.com/
AppUpdatesURL=http://www.doombuilder.com/
DefaultDirName={pf}\Doom Builder 2
DefaultGroupName=Doom Builder
AllowNoIcons=true
InfoBeforeFile=E:\Projects\Doom Builder\Setup\disclaimer.txt
OutputDir=E:\Projects\Doom Builder\Setup
OutputBaseFilename=builder2debug_setup
Compression=lzma/ultra64
SolidCompression=true
SourceDir=E:\Projects\Doom Builder\Build
SetupLogging=false
AppMutex=doombuilder2
PrivilegesRequired=poweruser
ShowLanguageDialog=no
2008-05-30 07:06:28 +00:00
MinVersion=0,5.01.2600
2007-10-05 08:00:29 +00:00
[Languages]
Name: english; MessagesFile: compiler:Default.isl
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
[Files]
Source: Builder.exe; DestDir: {app}; Flags: ignoreversion
2008-05-26 06:54:32 +00:00
Source: Builder.cfg; DestDir: {app}; Flags: ignoreversion
2007-10-05 08:00:29 +00:00
Source: Builder.pdb; DestDir: {app}; Flags: ignoreversion
Source: SlimDX.dll; DestDir: {app}; Flags: ignoreversion
2008-02-15 13:22:12 +00:00
Source: Sharpzip.dll; DestDir: {app}; Flags: ignoreversion
2007-10-05 08:00:29 +00:00
Source: Compilers\*; DestDir: {app}\Compilers; Flags: ignoreversion
Source: Configurations\*; DestDir: {app}\Configurations; Flags: ignoreversion
Source: Scripting\*; DestDir: {app}\Scripting; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
2008-05-30 07:06:28 +00:00
Source: Plugins\BuilderModes.dll; DestDir: {app}\Plugins; Flags: ignoreversion
Source: Plugins\BuilderModes.pdb; DestDir: {app}\Plugins; Flags: ignoreversion
2008-05-11 09:17:56 +00:00
Source: Setup\*; DestDir: {app}\Setup; Flags: ignoreversion
2007-10-05 08:00:29 +00:00
[Icons]
Name: {group}\Doom Builder; Filename: {app}\Builder.exe
Name: {group}\{cm:UninstallProgram,Doom Builder}; Filename: {uninstallexe}
Name: {commondesktop}\Doom Builder; Filename: {app}\Builder.exe; Tasks: desktopicon
[Run]
2008-05-26 15:46:08 +00:00
Filename: {app}\Setup\vcredist_x86.exe; StatusMsg: Setup is updating required files...; Parameters: /Q
Filename: {app}\Setup\dxwebsetup.exe; Parameters: /Q; StatusMsg: Setup is updating Microsoft DirectX....
2007-10-05 08:00:29 +00:00
[UninstallDelete]
2008-05-20 09:55:33 +00:00
Name: {localappdata}\Doom Builder; Type: files
2008-05-26 15:46:08 +00:00
[Registry]
Root: HKLM; Subkey: SOFTWARE\CodeImp\Doom Builder\; ValueType: string; ValueName: Location; ValueData: {app}; Flags: uninsdeletevalue
2008-02-15 13:22:12 +00:00
[Code]
2008-05-11 09:17:56 +00:00
// Global variables
2008-02-15 13:22:12 +00:00
var
2008-05-26 15:46:08 +00:00
//page_info_dx: TOutputMsgWizardPage;
//page_setup_dx: TOutputProgressWizardPage;
2008-05-11 09:17:56 +00:00
page_info_net: TOutputMsgWizardPage;
page_setup_net: TOutputProgressWizardPage;
2008-02-15 13:22:12 +00:00
2008-05-11 09:17:56 +00:00
// When the wizard initializes
procedure InitializeWizard();
2008-02-15 13:22:12 +00:00
begin
2008-05-11 09:17:56 +00:00
// Make custom pages
2008-05-26 15:46:08 +00:00
//page_info_dx := CreateOutputMsgPage(wpInstalling, 'Installing Microsoft DirectX', '', 'Setup will now start the installation and/or update of your Microsoft DirectX version. Press Next to begin.');
//page_setup_dx := CreateOutputProgressPage('Installing Microsoft DirectX', 'Setup is installing Microsoft DirectX, please wait...');
//page_info_net := CreateOutputMsgPage(page_info_dx.ID, 'Installing Microsoft .NET Framework', '', 'Setup will now start the installation and/or update of your Microsoft .NET Framework. Press Next to begin.');
page_info_net := CreateOutputMsgPage(wpInstalling, 'Installing Microsoft .NET Framework', '', 'Setup will now start the installation and/or update of your Microsoft .NET Framework. Press Next to begin.');
2008-05-11 09:17:56 +00:00
page_setup_net := CreateOutputProgressPage('Installing Microsoft .NET Framework', 'Setup is installing Microsoft.NET Framework, please wait...');
2008-02-15 13:22:12 +00:00
end;
2008-05-11 09:17:56 +00:00
// This is called to check if a page must be skipped
function ShouldSkipPage(PageID: Integer): Boolean;
2008-02-15 13:22:12 +00:00
begin
2008-05-11 09:17:56 +00:00
// Skip the .NET page?
if(PageID = page_info_net.ID) then
Result := RegKeyExists(HKLM, 'SOFTWARE\Microsoft\.NETFramework\policy\v2.0')
else
Result := False;
2008-02-15 13:22:12 +00:00
end;
2008-05-11 09:17:56 +00:00
// This is called when the Next button is clicked
function NextButtonClick(CurPage: Integer): Boolean;
var
ErrorCode: Integer;
2008-02-15 13:22:12 +00:00
begin
2008-05-11 09:17:56 +00:00
// Next pressed on DX info page?
2008-05-26 15:46:08 +00:00
//if(CurPage = page_info_dx.ID) then
//begin
// // Show progress page and run setup
// page_setup_dx.Show;
// try
// ShellExec('open', ExpandConstant('{app}\Setup\dxwebsetup.exe'), '', '/Q', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
// finally
// page_setup_dx.Hide;
// end;
//end
2008-02-15 13:22:12 +00:00
2008-05-11 09:17:56 +00:00
// Next pressed on .NET info page?
if(CurPage = page_info_net.ID) then
begin
// Show progress page and run setup
page_setup_net.Show;
try
2008-05-26 15:46:08 +00:00
ShellExec('open', ExpandConstant('{app}\Setup\dotnetfx35setup.exe'), '', '/QB', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
2008-05-11 09:17:56 +00:00
finally
page_setup_net.Hide;
end;
2008-02-15 13:22:12 +00:00
end
2008-05-11 09:17:56 +00:00
Result := True;
2008-02-15 13:22:12 +00:00
end;
2008-05-11 09:17:56 +00:00
2008-05-26 15:46:08 +00:00
2008-05-25 09:02:39 +00:00
2008-05-11 09:17:56 +00:00