; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
AppName=W4MapPackEditor
AppVerName=W4MapPackEditor 1.0
AppPublisher=Gerich
AppPublisherURL=http://w4tweaks.ucoz.ru/load/4-1-0-52
AppSupportURL=http://w4tweaks.ucoz.ru/load/4-1-0-52
AppUpdatesURL=http://w4tweaks.ucoz.ru/load/4-1-0-52
DefaultDirName={pf}\W4MapPackEditor
DefaultGroupName=W4MapPackEditor
OutputDir=C:\Program Files\Borland\Delphi7\Projects\W4MapPackEditor1.0\setup
OutputBaseFilename=setup
SetupIconFile=C:\Program Files\Borland\Delphi7\Projects\W4MapPackEditor1.0\iscc\setup.ico
Compression=lzma
SolidCompression=yes

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "basque"; MessagesFile: "compiler:Languages\Basque.isl"
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
Name: "catalan"; MessagesFile: "compiler:Languages\Catalan.isl"
Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
Name: "danish"; MessagesFile: "compiler:Languages\Danish.isl"
Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl"
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
Name: "hebrew"; MessagesFile: "compiler:Languages\Hebrew.isl"
Name: "hungarian"; MessagesFile: "compiler:Languages\Hungarian.isl"
Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
Name: "norwegian"; MessagesFile: "compiler:Languages\Norwegian.isl"
Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
Name: "slovak"; MessagesFile: "compiler:Languages\Slovak.isl"
Name: "slovenian"; MessagesFile: "compiler:Languages\Slovenian.isl"
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkedonce
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "C:\Program Files\Borland\Delphi7\Projects\W4MapPackEditor1.0\PackEditor.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Program Files\Borland\Delphi7\Projects\W4MapPackEditor1.0\lang.lng"; DestDir: "{app}"; Flags: ignoreversion; Check: isRussian()
Source: "C:\Program Files\Borland\Delphi7\Projects\W4MapPackEditor1.0\W4MapPackEditor.chm"; DestDir: "{app}"; Flags: ignoreversion; Check: isRussian()
Source: "C:\Program Files\Borland\Delphi7\Projects\W4MapPackEditor1.0\iscc\*"; DestDir: "{app}\iscc\"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\W4MapPackEditor"; Filename: "{app}\PackEditor.exe"; WorkingDir: "{app}"
Name: "{group}\Справка"; Filename: "{app}\W4MapPackEditor.chm"; WorkingDir: "{app}"; Check: isRussian()
Name: "{group}\{cm:ProgramOnTheWeb,W4MapPackEditor}"; Filename: "http://w4tweaks.ucoz.ru/load/4-1-0-52"
Name: "{group}\{cm:UninstallProgram,W4MapPackEditor}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\W4MapPackEditor"; Filename: "{app}\PackEditor.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\W4MapPackEditor"; Filename: "{app}\PackEditor.exe"; Tasks: quicklaunchicon

[Run]
Filename: "{app}\PackEditor.exe"; Description: "{cm:LaunchProgram,W4MapPackEditor}"; Flags: nowait postinstall skipifsilent

[Registry]
Root: HKLM; Subkey: "Software\Gerich\W4MapPackEditor"; ValueType: string; ValueName: "AppDir"; ValueData: "{app}"

[Code]
function isRussian(): Boolean;
begin
  if ExpandConstant('{language}') = 'russian' then Result := True;
end;
