(Setup]
AppName=Fallout 2 Weapons Redone
AppID=Fallout 2 Weapons Redone
AppVerName=Fallout 2: Weapons Redone 1.1
AppPublisher=Magnus
AppPublisherURL=http://www.nma-fallout.com/forum/viewtopic.php?t=42580
AppSupportURL=http://www.nma-fallout.com/forum/viewtopic.php?t=42580
AppUpdatesURL=http://www.nma-fallout.com/forum/viewtopic.php?t=42580
VersionInfoVersion=1.1
DefaultDirName={reg:HKLM\SOFTWARE\Interplay\Fallout2\1.0,DestPath}
DefaultGroupName=F2 Weapons Redone
AllowNoIcons=yes
OutputBaseFilename=F2WR_setup
Compression=lzma
SolidCompression=yes
DirExistsWarning=no
UninstallFilesDir={app}\F2WR\uninstall
(Tasks]
Name: "ammo"; Description: "&Armour and Ammo"; GroupDescription: "Components:";
Name: "biggun"; Description: "&Big guns"; GroupDescription: "Components:";
Name: "energy"; Description: "&Energy"; GroupDescription: "Components:";
Name: "energyna"; Description: "&Energy without armour"; GroupDescription: "Components:"; Flags: unchecked;
Name: "grenades"; Description: "&Grenades"; GroupDescription: "Components:";
Name: "lowtech"; Description: "&Low-tech"; GroupDescription: "Components:";
Name: "pistols"; Description: "&Pistols"; GroupDescription: "Components:";
Name: "rifles"; Description: "&Rifles"; GroupDescription: "Components:";
Name: "shotguns"; Description: "&Shotguns"; GroupDescription: "Components:";
(Files]
Source: "C:\Games\Fallout2\mods\F2WRv1.1\items.lst"; DestDir: "{app}\data\Proto\Items"; Flags: onlyifdoesntexist;
Source: "C:\Games\Fallout2\mods\F2WRv1.1\F2WRReadme.txt"; DestDir: "{app}"; Flags: ignoreversion isreadme;
Source: "C:\Games\Fallout2\mods\F2WRv1.1\Armor & Ammo\*"; DestDir: "{app}\data\Proto\Items"; Flags: ignoreversion overwritereadonly; Tasks: ammo; Attribs: readonly;
Source: "C:\Games\Fallout2\mods\F2WRv1.1\Big Guns\*"; DestDir: "{app}\data\Proto\Items"; Flags: ignoreversion overwritereadonly; Tasks: biggun; Attribs: readonly;
Source: "C:\Games\Fallout2\mods\F2WRv1.1\Energy\*"; DestDir: "{app}\data\Proto\Items"; Flags: ignoreversion overwritereadonly; Tasks: energy; Attribs: readonly;
Source: "C:\Games\Fallout2\mods\F2WRv1.1\Energy Without Armor\*"; DestDir: "{app}\data\Proto\Items"; Flags: ignoreversion overwritereadonly; Tasks: energyna; Attribs: readonly;
Source: "C:\Games\Fallout2\mods\F2WRv1.1\Grenades\*"; DestDir: "{app}\data\Proto\Items"; Flags: ignoreversion overwritereadonly; Tasks: grenades; Attribs: readonly;
Source: "C:\Games\Fallout2\mods\F2WRv1.1\Low-Tech\*"; DestDir: "{app}\data\Proto\Items"; Flags: ignoreversion overwritereadonly; Tasks: lowtech; Attribs: readonly;
Source: "C:\Games\Fallout2\mods\F2WRv1.1\Pistols\*"; DestDir: "{app}\data\Proto\Items"; Flags: ignoreversion overwritereadonly; Tasks: pistols; Attribs: readonly;
Source: "C:\Games\Fallout2\mods\F2WRv1.1\Rifles\*"; DestDir: "{app}\data\Proto\Items"; Flags: ignoreversion overwritereadonly; Tasks: rifles; Attribs: readonly;
Source: "C:\Games\Fallout2\mods\F2WRv1.1\Shotguns\*"; DestDir: "{app}\data\Proto\Items"; Flags: ignoreversion overwritereadonly; Tasks: shotguns; Attribs: readonly;
(Icons]
Name: "{group}\{cm:UninstallProgram,Fallout 2 Weapons Redone}"; Filename: "{uninstallexe}"; WorkingDir: "{app}"
(code]
function NextButtonClick(PageID: Integer): Boolean;
var
s: string;
begin
Result := true;
if PageID = wpSelectDir then begin
s := WizardDirValue();
if not FileExists(s+'\fallout2.exe') then begin
MsgBox('Fallout 2 Weapons Redone must be installed to the Fallout 2 installation directory', mbError, MB_OK);
Result:=false;
end;
end;
if PageID = wpSelectTasks then begin
if IsTaskSelected('energy') and IsTaskSelected('energyna') then begin
MsgBox('You cannot install both the Energy and Energy without Armour components', mbError, MB_OK);
Result:=false;
end;
end;
end;