AlexZetCrow
Новичок
Я уже заколебался, не знаю какую функцию вписать для GetRandomKey ни один не срабатывает пишет ошибку .. уже не знаю что и делать, помогите пожалуйста.
[Setup]
AppName=History Of Middle-Earth™
AppVerName=History Of Middle-Earth: BFME III
AppId={{1672F537-766B-4C4A-8B98-89AF90CDAC34}
AppVersion=1.0
AppPublisher=Repack - Herald of the Ring
AppPublisherURL=https://vk.com/thoakodding
AppSupportURL=https://vk.com/thoakodding
AppUpdatesURL=https://vk.com/thoakodding
DefaultDirName={sd}\Games\BFME III
DefaultGroupName=History Of Middle-Earth: BFME III Repack by Herald of the Ring
OutputBaseFilename=setup
Compression=lzma2
DisableDirPage=auto
DisableProgramGroupPage=auto
AllowNoIcons=yes
InfoBeforeFile=embedded\InfoBefore.rtf
InfoAfterFile=embedded\InfoAfter.rtf
WizardImageFile=embedded\WizardImage0.bmp
WizardSmallImageFile=embedded\WizardSmallImage0.bmp
[Files]
Source: "{app}\Readme.txt"; DestDir: "{app}"; MinVersion: 0.0,1.0;
Source: "{app}\info.rtf"; DestDir: "{app}"; MinVersion: 0.0,1.0;
Source: "{userappdata}\My Battle for Middle-earth(tm) II Files\Options.ini"; DestDir: "{userappdata}\My Battle for Middle-earth(tm) II Files"; MinVersion: 0.0,1.0;
Source: "{userappdata}\My The Lord of the Rings, The Rise of the Witch-king Files\Options.ini"; DestDir: "{userappdata}\My The Lord of the Rings, The Rise of the Witch-king Files"; MinVersion: 0.0,1.0;
Source: "{userappdata}\My The History Of Ages™ Mod Files\Options.ini"; DestDir: "{userappdata}\My The History Of Ages™ Mod Files"; MinVersion: 0.0,1.0;
AppName=History Of Middle-Earth™
AppVerName=History Of Middle-Earth: BFME III
AppId={{1672F537-766B-4C4A-8B98-89AF90CDAC34}
AppVersion=1.0
AppPublisher=Repack - Herald of the Ring
AppPublisherURL=https://vk.com/thoakodding
AppSupportURL=https://vk.com/thoakodding
AppUpdatesURL=https://vk.com/thoakodding
DefaultDirName={sd}\Games\BFME III
DefaultGroupName=History Of Middle-Earth: BFME III Repack by Herald of the Ring
OutputBaseFilename=setup
Compression=lzma2
DisableDirPage=auto
DisableProgramGroupPage=auto
AllowNoIcons=yes
InfoBeforeFile=embedded\InfoBefore.rtf
InfoAfterFile=embedded\InfoAfter.rtf
WizardImageFile=embedded\WizardImage0.bmp
WizardSmallImageFile=embedded\WizardSmallImage0.bmp
[Files]
Source: "{app}\Readme.txt"; DestDir: "{app}"; MinVersion: 0.0,1.0;
Source: "{app}\info.rtf"; DestDir: "{app}"; MinVersion: 0.0,1.0;
Source: "{userappdata}\My Battle for Middle-earth(tm) II Files\Options.ini"; DestDir: "{userappdata}\My Battle for Middle-earth(tm) II Files"; MinVersion: 0.0,1.0;
Source: "{userappdata}\My The Lord of the Rings, The Rise of the Witch-king Files\Options.ini"; DestDir: "{userappdata}\My The Lord of the Rings, The Rise of the Witch-king Files"; MinVersion: 0.0,1.0;
Source: "{userappdata}\My The History Of Ages™ Mod Files\Options.ini"; DestDir: "{userappdata}\My The History Of Ages™ Mod Files"; MinVersion: 0.0,1.0;
Код:
type
HDC = LongWord;
function GetDC(HWND: hWnd): HDC; external 'GetDC@user32.dll stdcall';
function GetDeviceCaps(HDC: HDC; Index: Integer): Integer; external 'GetDeviceCaps@gdi32.dll stdcall';
function ReleaseDC(HWND: hWnd; DC: HDC): Integer; external 'ReleaseDC@user32.dll stdcall';
function GetMonitorInfo: TPoint;
var
DC: HDC;
Screen, null: TPoint;
begin
Result:=null;
DC:=GetDC(MainForm.Handle);
Screen.x:=GetDeviceCaps(DC, 08);
Screen.y:=GetDeviceCaps(DC, 10);
if (Screen.x <> 0) and (Screen.y <> 0) then Result:=Screen;
ReleaseDC(MainForm.Handle, DC);
end;
function SetResolutionInINI(FileName: PAnsiChar): Boolean;
var
s: AnsiString;
Screen: TPoint;
i, b, e: Integer;
ErrCheck: Boolean;
begin
Result:=False;
if not LoadStringFromFile(FileName, s) then Exit;
if Pos('Resolution', s) <> 0 then begin
for i:=Pos('Resolution', s) + Length('Resolution') to Length(s)-1 do begin
if (s[i] = '=') and ErrCheck then Exit;
if (s[i] = '=') and not ErrCheck then begin
ErrCheck:=True;
b:=i;
end;
if s[i] = #13 then begin
e:=i;
Break;
end;
end;
Screen:=GetMonitorInfo;
Result:=SaveStringToFile(FileName, Copy(s, 0, b)+' '+IntToStr(Screen.x)+' '+IntToStr(Screen.y)+Copy(s, e, Length(s)-e-1), False);
end;
end;
procedure InitializeWizard;
begin
SetResolutionInINI(ExpandConstant('{src}\Options.ini'));
end;
procedure CurStepChanged(CurStep: TSetupStep);
begin
case CurStep of
ssDone: SetResolutionInINI(ExpandConstant('{userappdata}\...\Options.ini'));
end;
end;
function GetDefRoot(Param: String): String;
begin
if not IsAdmin then
Result := ExpandConstant('{localappdata}')
else
Result := ExpandConstant('{pf}')
end;
[Registry]
Root: HKLM; Subkey: "Software\Electronic Arts"; MinVersion: 0.0,1.0; Flags: createvalueifdoesntexist uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts"; MinVersion: 0.0,1.0; Flags: createvalueifdoesntexist uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; MinVersion: 0.0,1.0; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueName: "InstallPath"; ValueType: String; ValueData: "{app}\Electronic Arts\The Lord of the Rings - The Battle for Middle-earth II\"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueName: "Language"; ValueType: String; ValueData: "russian"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueName: "MapPackVersion"; ValueType: Dword; ValueData: "$10000"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueName: "UseLocalUserMaps"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueName: "UserDataLeafName"; ValueType: String; ValueData: "My Battle for Middle-earth(tm) II Files"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueName: "Version"; ValueType: Dword; ValueData: "$10006"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II\ergc"; ValueType: String; ValueData: "{code:GetRandomKey}"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; MinVersion: 0.0,1.0; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "InstallPath"; ValueType: String; ValueData: "{app}\Electronic Arts\The Rise of the Witch-king\"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Language"; ValueType: String; ValueData: "russian"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "MapPackVersion"; ValueType: Dword; ValueData: "$20000"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "UseLocalUserMaps"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "UserDataLeafName"; ValueType: String; ValueData: "My The Lord of the Rings, The Rise of the Witch-king Files"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Version"; ValueType: Dword; ValueData: "$20001"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\ergc"; ValueType: String; ValueData: "{code:GetRandomKey}"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The History Of Ages™"; MinVersion: 0.0,1.0; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The History Of Ages™"; ValueName: "InstallPath"; ValueType: String; ValueData: "{app}\Electronic Arts\The History Of Ages™\"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The History Of Ages™"; ValueName: "Language"; ValueType: String; ValueData: "russian"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The History Of Ages™"; ValueName: "MapPackVersion"; ValueType: Dword; ValueData: "$30000"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The History Of Ages™"; ValueName: "UseLocalUserMaps"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The History Of Ages™"; ValueName: "UserDataLeafName"; ValueType: String; ValueData: "My The History Of Ages™ Mod Files"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The History Of Ages™"; ValueName: "Version"; ValueType: Dword; ValueData: "$30001"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The History Of Ages™\ergc"; ValueType: String; ValueData: "{code:GetRandomKey}"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; MinVersion: 0.0,1.0; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; MinVersion: 0.0,1.0; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™"; MinVersion: 0.0,1.0; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueName: "DisplayName"; ValueType: String; ValueData: "The Battle for Middle-earth™ II"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueName: "Language"; ValueType: Dword; ValueData: "$10"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueName: "LanguageName"; ValueType: String; ValueData: "Russian"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueName: "CacheSize"; ValueType: String; ValueData: "5441287168"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueName: "DisplayName"; ValueType: String; ValueData: "The Battle for Middle-earth™ II"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueName: "Install Dir"; ValueType: String; ValueData: "{app}\Electronic Arts\The Lord of the Rings - The Battle for Middle-earth II\"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueName: "Language"; ValueType: String; ValueData: "Russian"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueName: "Locale"; ValueType: String; ValueData: "ru"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueName: "Product GUID"; ValueType: String; ValueData: "{{2A9F95AB-65A3-432c-8631-B8BC5BF7477A}"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueName: "Region"; ValueType: String; ValueData: "NorthAmerica"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueName: "Registration"; ValueType: String; ValueData: "SOFTWARE\Electronic Arts\Electronic Arts\The Battle for Middle-earth II\ergc"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueName: "Suppression Exe"; ValueType: String; ValueData: "rtsi.exe"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueName: "SwapSize"; ValueType: String; ValueData: "0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™\1.0"; ValueName: "DisplayName"; ValueType: String; ValueData: "The History Of Ages™"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™\1.0"; ValueName: "Language"; ValueType: Dword; ValueData: "$10"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™\1.0"; ValueName: "LanguageName"; ValueType: String; ValueData: "Russian"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™"; ValueName: "CacheSize"; ValueType: String; ValueData: "3139187712"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™"; ValueName: "DisplayName"; ValueType: String; ValueData: "The History Of Ages™"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™"; ValueName: "Install Dir"; ValueType: String; ValueData: "{app}\Electronic Arts\The History Of Ages™\"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™"; ValueName: "Language"; ValueType: String; ValueData: "Russian"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™"; ValueName: "Locale"; ValueType: String; ValueData: "ru"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™"; ValueName: "Product GUID"; ValueType: String; ValueData: "{{FF29EB11-AA54-4E5C-B0DF-B9C7FF84CDB7}"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™"; ValueName: "Region"; ValueType: String; ValueData: "NorthAmerica"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™"; ValueName: "Registration"; ValueType: String; ValueData: "SOFTWARE\Electronic Arts\Electronic Arts\The History Of Ages™\ergc"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™"; ValueName: "Suppression Exe"; ValueType: String; ValueData: "rtsi.exe"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The History Of Ages™"; ValueName: "SwapSize"; ValueType: String; ValueData: "0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueName: "DisplayName"; ValueType: String; ValueData: "The Rise of the Witch-king™"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueName: "Language"; ValueType: Dword; ValueData: "$10"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueName: "LanguageName"; ValueType: String; ValueData: "Russian"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "CacheSize"; ValueType: String; ValueData: "3139187712"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "DisplayName"; ValueType: String; ValueData: "The Rise of the Witch-king™"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Install Dir"; ValueType: String; ValueData: "{app}\Electronic Arts\The Rise of the Witch-king\"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Language"; ValueType: String; ValueData: "Russian"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Locale"; ValueType: String; ValueData: "ru"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Product GUID"; ValueType: String; ValueData: "{{B931FB80-537A-4600-00AD-AC5DEDB6C25B}"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Region"; ValueType: String; ValueData: "NorthAmerica"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Registration"; ValueType: String; ValueData: "SOFTWARE\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\ergc"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Suppression Exe"; ValueType: String; ValueData: "rtsi.exe"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "SwapSize"; ValueType: String; ValueData: "0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueName: "Path"; ValueType: String; ValueData: "{app}\Electronic Arts\The Lord of the Rings - The Battle for Middle-earth II\"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueType: String; ValueData: "{app}\Electronic Arts\The Lord of the Rings - The Battle for Middle-earth II\lotrbfme2.exe"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueName: "DirectX Installed"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueName: "Game Registry"; ValueType: String; ValueData: "SOFTWARE\Electronic Arts\The Battle for Middle-earth II"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueName: "Installed"; ValueType: Dword; ValueData: "$1"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueName: "Restart"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueName: "Restart"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueName: "DirectX Installed"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueName: "Game Registry"; ValueType: String; ValueData: "SOFTWARE\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueName: "Path"; ValueType: String; ValueData: "{app}\Electronic Arts\The Rise of the Witch-king"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueName: "Installed"; ValueType: Dword; ValueData: "$1"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueType: String; ValueData: "{app}\Electronic Arts\The Rise of the Witch-king\lotrbfme2ep1.exe"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\THOA.exe"; ValueName: "Restart"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\THOA.exe"; ValueName: "DirectX Installed"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\THOA.exe"; ValueName: "Game Registry"; ValueType: String; ValueData: "SOFTWARE\Electronic Arts\The History Of Ages™"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\THOA.exe"; ValueName: "Path"; ValueType: String; ValueData: "{app}\Electronic Arts\The History Of Ages™"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\THOA.exe"; ValueName: "Installed"; ValueType: Dword; ValueData: "$1"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\THOA.exe"; ValueType: String; ValueData: "{app}\Electronic Arts\The History Of Ages™\THOA.exe"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueName: "Path"; ValueType: String; ValueData: "{app}\Electronic Arts\The Lord of the Rings - The Battle for Middle-earth II\"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueType: String; ValueData: "{app}\Electronic Arts\The Lord of the Rings - The Battle for Middle-earth II\lotrbfme2.exe"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueName: "DirectX Installed"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueName: "Game Registry"; ValueType: String; ValueData: "SOFTWARE\Electronic Arts\The Battle for Middle-earth II"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueName: "Installed"; ValueType: Dword; ValueData: "$1"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2.exe"; ValueName: "Restart"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueName: "Restart"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueName: "DirectX Installed"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueName: "Game Registry"; ValueType: String; ValueData: "SOFTWARE\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueName: "Path"; ValueType: String; ValueData: "{app}\Electronic Arts\The Rise of the Witch-king"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueName: "Installed"; ValueType: Dword; ValueData: "$1"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\lotrbfme2ep1.exe"; ValueType: String; ValueData: "{app}\Electronic Arts\The Rise of the Witch-king\lotrbfme2ep1.exe"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\THOA.exe"; ValueName: "DirectX Installed"; ValueType: Dword; ValueData: "$0"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\THOA.exe"; ValueName: "Game Registry"; ValueType: String; ValueData: "SOFTWARE\Electronic Arts\The History Of Ages™"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\THOA.exe"; ValueName: "Path"; ValueType: String; ValueData: "{app}\Electronic Arts\The History Of Ages™"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\THOA.exe"; ValueName: "Installed"; ValueType: Dword; ValueData: "$1"; MinVersion: 0.0,1.0;
Root: HKLM; Subkey: "SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\App Paths\THOA.exe"; ValueType: String; ValueData: "{app}\Electronic Arts\The History Of Ages™\THOA.exe"; MinVersion: 0.0,1.0;
[Run]
Filename: "{app}\Electronic Arts\The History Of Ages™\lotrbfme2ep1.exe"; Description: "{cm:LaunchProgram,The History Of Ages™}"; MinVersion: 0.0,1.0; Flags: postinstall skipifsilent nowait
Filename: "{app}\Readme.txt"; Description: "Прочитать гайд для игры по сети"; MinVersion: 0.0,1.0; Flags: shellexec postinstall skipifsilent nowait
[Icons]
Name: "{group}\The Battle for Middle-earth II"; Filename: "{app}\Electronic Arts\The Lord of the Rings - The Battle for Middle-earth II\lotrbfme2.exe"; WorkingDir: "{app}\BFME III"; IconFilename: "{app}\Electronic Arts\The Lord of the Rings - The Battle for Middle-earth II\lotrbfme2.ico"; MinVersion: 0.0,1.0;
Name: "{group}\The Rise of the Witch-king"; Filename: "{app}\Electronic Arts\The Rise of the Witch-king\lotrbfme2ep1.exe"; WorkingDir: "{app}\BFME III"; IconFilename: "{app}\Electronic Arts\The Rise of the Witch-king\lotrbfme2ep1.ico"; MinVersion: 0.0,1.0;
Name: "{group}\The History Of Ages™ Launcher"; Filename: "{app}\Electronic Arts\The History Of Ages™\launcher.exe"; WorkingDir: "{app}\BFME III"; IconFilename: "{app}\Electronic Arts\The History Of Ages™\THOA.ico"; MinVersion: 0.0,1.0;
Name: "{group}\The History Of Ages™ GameRanger"; Filename: "{app}\Electronic Arts\The History Of Ages™\lotrbfme2ep1.exe"; WorkingDir: "{app}\BFME III"; IconFilename: "{app}\Electronic Arts\The History Of Ages™\lotrbfme2ep1.ico"; MinVersion: 0.0,1.0;
Name: "{group}\Удалить игру"; Filename: "{uninstallexe}"; WorkingDir: "{app}"; MinVersion: 0.0,1.0;
Name: "{group}\Наша группа Вконтакте"; Filename: "https://vk.com/thoakodding"; MinVersion: 0.0,1.0;
Name: "{commondesktop}\CDKeyFixer"; Filename: "{app}\Electronic Arts\CDKeyFixer (Tools Modding)\CDKeyFixer\CDKeyFixer.exe"; WorkingDir: "{app}\Electronic Arts\CDKeyFixer (Tools Modding)\CDKeyFixer"; Tasks: desktopicon; MinVersion: 0.0,1.0;
Name: "{commondesktop}\The Battle for Middle-earth II"; Filename: "{app}\Electronic Arts\The Lord of the Rings - The Battle for Middle-earth II\lotrbfme2.exe"; IconFilename: "{app}\Electronic Arts\The Lord of the Rings - The Battle for Middle-earth II\lotrbfme2.ico"; Tasks: desktopicon; MinVersion: 0.0,1.0;
Name: "{commondesktop}\The Rise of the Witch-king"; Filename: "{app}\Electronic Arts\The Rise of the Witch-king\lotrbfme2ep1.exe"; IconFilename: "{app}\Electronic Arts\The Rise of the Witch-king\lotrbfme2ep1.ico"; Tasks: desktopicon; MinVersion: 0.0,1.0;
Name: "{commondesktop}\The History Of Ages™ Launcher"; Filename: "{app}\Electronic Arts\The History Of Ages™\launcher.exe"; IconFilename: "{app}\Electronic Arts\The History Of Ages™\THOA.ico"; Tasks: desktopicon; MinVersion: 0.0,1.0;
Name: "{commondesktop}\The History Of Ages™ GameRanger"; Filename: "{app}\Electronic Arts\The History Of Ages™\lotrbfme2ep1.exe"; IconFilename: "{app}\Electronic Arts\The History Of Ages™\lotrbfme2ep1.ico"; Tasks: desktopicon; MinVersion: 0.0,1.0;
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; MinVersion: 0.0,1.0;
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; MinVersion: 0.0,1.0; OnlyBelowVersion: 0.0,6.01;
[UninstallDelete]
Type: files; Name: "{app}\*.ini";
Type: files; Name: "{app}\Log\*.log";
Type: dirifempty; Name: "{app}\Log";
[CustomMessages]
russian.NameAndVersion=%1, версия %2
russian.AdditionalIcons=Дополнительные значки:
russian.CreateDesktopIcon=Создать значок на &Рабочем столе
russian.CreateQuickLaunchIcon=Создать значок в &Панели быстрого запуска
russian.ProgramOnTheWeb=Гайд %1 в интернете
russian.UninstallProgram=Деинсталлировать %1
russian.LaunchProgram=Запустить %1
russian.AssocFileExtension=Св&язать %1 с файлами, имеющими расширение %2
russian.AssocingFileExtension=Связывание %1 с файлами %2...
russian.AutoStartProgramGroupDescription=Автозапуск:
russian.AutoStartProgram=Автоматически запускать %1
russian.AddonHostProgramNotFound=%1 не найден в указанной вами папке.%n%nВы всё равно хотите продолжить?
[Languages]
Name: "russian"; MessagesFile: "embedded\russian.isl";
[/SPOILER]
Вложения
-
26.7 KB Просмотры: 13