Реестр.

tihiy_don

Пользователь
Здравствуйте. Делаю репак для игры The Battle for Middle-earth II + аддон The Rise of the Witch-king + мод AOTR 5.1
Вопрос заключается в следующем, когда я добавляю данные в реестр, нужно ли их прописывать как для 64-битных систем, так и для 32 по отдельности? Я знаю, что есть параметр Check: not IsWin64, но тогда мне придется дублировать код. А оригинальный инсталлятор пишет в реестр с подпапкой WOW6432Node, которая для 64 битных систем.

Вот мой код:
Код:
[Registry]
//Реестр The Battle for Middle-earth II
Root: HKLM; Subkey: "Software\Electronic Arts"; Flags: createvalueifdoesntexist uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts"; Flags: createvalueifdoesntexist uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}\The Battle for Middle-earth II\"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Language"; ValueData: "english"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: dword; ValueName: "MapPackVersion"; ValueData: "10000"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: dword; ValueName: "UseLocalUserMaps"; ValueData: "0"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "UserDataLeafName"; ValueData: "My Battle for Middle-earth(tm) II Files"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: dword; ValueName: "Version"; ValueData: "10006"

Root: HKLM; SubKey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II\ergc"; ValueType: string; ValueName: ; ValueData: "EYXXH34M3GWZ4YQ5LK22"

//Реестр The Lord of the Rings, The Rise of the Witch-king
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}\The Battle for Middle-earth II\ep1\"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Language"; ValueData: "english"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: dword; ValueName: "MapPackVersion"; ValueData: "20000"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: dword; ValueName: "UseLocalUserMaps"; ValueData: "0"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "UserDataLeafName"; ValueData: "My The Lord of the Rings, The Rise of the Witch-king Files"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: dword; ValueName: "Version"; ValueData: "20001"

Root: HKLM; SubKey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\ergc"; ValueType: string; ValueName: ; ValueData: "6YUCKNSWSK9HZCL2Q99X"

///////////////////
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; Flags: uninsdeletekey
///////////////////
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Battle for Middle-earth (tm) II"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueType: dword; ValueName: "Language"; ValueData: "13"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueType: string; ValueName: "LanguageName"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "CacheSize"; ValueData: "5499066368"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "CD Drive"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Battle for Middle-earth (tm) II"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Folder"; ValueData: "{group}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Install Dir"; ValueData: "{app}\The Battle for Middle-earth II\"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Installed From"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Language"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Locale"; ValueData: "en_uk"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Patch URL"; ValueData: "http://transtest.ea.com/Electronic Arts/The Battle for Middle-earth 2/NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Product GUID"; ValueData: "{{2A9F95AB-65A3-432c-8631-B8BC5BF7477A}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Region"; ValueData: "NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Registration"; ValueData: "SOFTWARE\Electronic Arts\Electronic Arts\The Battle for Middle-earth II\ergc"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Suppression Exe"; ValueData: ""
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "SwapSize"; ValueData: "0"

Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Lord of the Rings, The Rise of the Witch-king"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueType: dword; ValueName: "Language"; ValueData: "13"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueType: string; ValueName: "LanguageName"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "CacheSize"; ValueData: "3139187712"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "CD Drive"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Lord of the Rings, The Rise of the Witch-king"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Folder"; ValueData: "{group}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Install Dir"; ValueData: "{app}\The Battle for Middle-earth II\ep1\"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Installed From"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Language"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Locale"; ValueData: "en_uk"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Patch URL"; ValueData: "http://transtest.ea.com/Electronic Arts/The Battle for Middle-earth 2/NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Product GUID"; ValueData: "{{B931FB80-537A-4600-00AD-AC5DEDB6C25B}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Region"; ValueData: "NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Registration"; ValueData: "SOFTWARE\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\ergc"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Suppression Exe"; ValueData: ""
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "SwapSize"; ValueData: "0"
 

zettend

Старожил
По умолчанию многие приложения до сих пор используют ветку x32, но всё же да, лучше дублировать.
 

tihiy_don

Пользователь
По умолчанию многие приложения до сих пор используют ветку x32, но всё же да, лучше дублировать.
То-есть, без дублирования не пропишется в 64-битной системе в каталог WOW6432Node? Я протестировал, вроде прописывается.
 

dixen18

Пользователь
Здравствуйте. Делаю репак для игры The Battle for Middle-earth II + аддон The Rise of the Witch-king + мод AOTR 5.1
Вопрос заключается в следующем, когда я добавляю данные в реестр, нужно ли их прописывать как для 64-битных систем, так и для 32 по отдельности? Я знаю, что есть параметр Check: not IsWin64, но тогда мне придется дублировать код. А оригинальный инсталлятор пишет в реестр с подпапкой WOW6432Node, которая для 64 битных систем.

Вот мой код:
Код:
[Registry]
//Реестр The Battle for Middle-earth II
Root: HKLM; Subkey: "Software\Electronic Arts"; Flags: createvalueifdoesntexist uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts"; Flags: createvalueifdoesntexist uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}\The Battle for Middle-earth II\"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Language"; ValueData: "english"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: dword; ValueName: "MapPackVersion"; ValueData: "10000"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: dword; ValueName: "UseLocalUserMaps"; ValueData: "0"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "UserDataLeafName"; ValueData: "My Battle for Middle-earth(tm) II Files"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: dword; ValueName: "Version"; ValueData: "10006"

Root: HKLM; SubKey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II\ergc"; ValueType: string; ValueName: ; ValueData: "EYXXH34M3GWZ4YQ5LK22"

//Реестр The Lord of the Rings, The Rise of the Witch-king
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}\The Battle for Middle-earth II\ep1\"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Language"; ValueData: "english"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: dword; ValueName: "MapPackVersion"; ValueData: "20000"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: dword; ValueName: "UseLocalUserMaps"; ValueData: "0"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "UserDataLeafName"; ValueData: "My The Lord of the Rings, The Rise of the Witch-king Files"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: dword; ValueName: "Version"; ValueData: "20001"

Root: HKLM; SubKey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\ergc"; ValueType: string; ValueName: ; ValueData: "6YUCKNSWSK9HZCL2Q99X"

///////////////////
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; Flags: uninsdeletekey
///////////////////
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Battle for Middle-earth (tm) II"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueType: dword; ValueName: "Language"; ValueData: "13"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueType: string; ValueName: "LanguageName"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "CacheSize"; ValueData: "5499066368"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "CD Drive"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Battle for Middle-earth (tm) II"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Folder"; ValueData: "{group}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Install Dir"; ValueData: "{app}\The Battle for Middle-earth II\"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Installed From"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Language"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Locale"; ValueData: "en_uk"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Patch URL"; ValueData: "http://transtest.ea.com/Electronic Arts/The Battle for Middle-earth 2/NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Product GUID"; ValueData: "{{2A9F95AB-65A3-432c-8631-B8BC5BF7477A}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Region"; ValueData: "NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Registration"; ValueData: "SOFTWARE\Electronic Arts\Electronic Arts\The Battle for Middle-earth II\ergc"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Suppression Exe"; ValueData: ""
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "SwapSize"; ValueData: "0"

Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Lord of the Rings, The Rise of the Witch-king"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueType: dword; ValueName: "Language"; ValueData: "13"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueType: string; ValueName: "LanguageName"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "CacheSize"; ValueData: "3139187712"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "CD Drive"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Lord of the Rings, The Rise of the Witch-king"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Folder"; ValueData: "{group}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Install Dir"; ValueData: "{app}\The Battle for Middle-earth II\ep1\"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Installed From"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Language"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Locale"; ValueData: "en_uk"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Patch URL"; ValueData: "http://transtest.ea.com/Electronic Arts/The Battle for Middle-earth 2/NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Product GUID"; ValueData: "{{B931FB80-537A-4600-00AD-AC5DEDB6C25B}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Region"; ValueData: "NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Registration"; ValueData: "SOFTWARE\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\ergc"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Suppression Exe"; ValueData: ""
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "SwapSize"; ValueData: "0"
Вообще по идее если скрипт написан прямыми руками инсталлятор должен сам определять разрядность ОС и, исходя из этого, прописывать все куда положено.. В моем репаке именно так и сделано но сейчас у меня к нему нет доступа так что вставить код сюда я не смогу.
Дублирование веток может привести к созданию еще одной ветки с именем WOW6432Node, в результате чего может произойти путаница и игра не запустится.
Выход есть - путем тестовой установки проконтролировать верность путей в реестре.
 

zettend

Старожил
Пример:
code_language.pascal:
  Name: {group}\{#GameNameFolder}; Filename: {#exeGameFolder}\{#exeGameFile}; WorkingDir: {#exeGameFolder}; IconFilename: {app}\Uninstall\Icon_1.ico; Check: not ISWin64 and IconGroup and CheckError; Components: Icons\Group
  Name: {group}\{#GameNameFolder}; Filename: {#exeGameFolder64}\{#exeGameFile}; WorkingDir: {#exeGameFolder64}; IconFilename: {app}\Uninstall\Icon_1.ico; Check: ISWin64 and IconGroup and CheckError; Components: Icons\Group
В первом он выполнит только в том случае, если ОС 32 бит; во втором, если ОС 64 бит.
 

tihiy_don

Пользователь
Вообщем с этой проблемой я разобрался. Спасибо, инсталлятор сам определяет путь. Но вот теперь загвоздка в том, что аддон The Rise of the Witch-king не хочет запускаться, мол не может найти игру The Battle for Middle-earth II. Сам аддон лежит в папке с оригинальной игрой и запускается у меня без проблем, а после распаковки репака уже не хочет. Пути реестра прописываю согласно оригинальным образам и установщикам, так же заимствовал с другого рабочего репака пути реестра.

Никто не сталкивался с такой проблемой,товарищи?

Вот код моего скрипта:
code_language.pascal:
#include "botva2.iss"
#include "BASS_Module.iss"

#define MyAppName "Age of the Ring"
#define MyAppVersion "5.1"
#define MyAppPublisher "Tihiy_Don"
#define MyAppURL "https://vk.com/ageofthering"
#define MyAppExeName "lotrbfme2ep1.exe"

[Setup]
; Примечание: Значение AppId является уникальным идентификатором для этого приложения.
; Не используйте одно и тоже значение AppId для разных приложений.
; (Для создания нового значения GUID, выберите в меню "Инструменты" пункт "Создать GUID".)
AppId={{9C84BF97-B765-45A3-8E58-AA947379C8B5}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName=Age of the Ring 5.1 Repack by Tihiy_don
AllowNoIcons=yes
InfoBeforeFile=D:\инсталл властелин колец\before.rtf
InfoAfterFile=D:\инсталл властелин колец\информация.rtf
OutputDir=D:\инсталл властелин колец\Age of the Ring 5.1 - Repack by Tihiy_Don
OutputBaseFilename=setup
SetupIconFile=D:\инсталл властелин колец\aotr.ico
WizardSmallImageFile=small.bmp
DiskSpanning=yes
SlicesPerDisk=1
DiskSliceSize=2100000000
DiskClusterSize=4096
ReserveBytes=0
Compression=lzma/ultra
InternalCompressLevel=ultra64
SolidCompression=true
FlatComponentsList=yes
DisableDirPage=no

[Languages]
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1

[Files]
//Source: "b2p.dll"; DestDir : {tmp}; Flags: dontcopy
//Source: "botva2.dll"; DestDir : {tmp}; Flags: dontcopy
//Source: "bass.dll"; DestDir: {tmp}; Flags: dontcopy
//Source: "CallbackCtrl.dll"; DestDir : {tmp}; Flags: dontcopy
Source: "music.mp3"; DestDir : {tmp}; Flags: dontcopy
Source: BASS_Files\*; DestDir : {tmp}; Flags: dontcopy

//Source: "D:\games\Аge of the Ring\Age of the Ring\lotrbfme2ep1.exe"; DestDir: "{app}\Age of the Ring\"; Flags: ignoreversion
Source: "D:\games\Аge of the Ring\The Battle for Middle-earth II\CDKeyFixer\CDKeyFixer.exe"; DestDir: "{app}\The Battle for Middle-earth II\CDKeyFixer\"; Flags: ignoreversion
;========================================= Файлы ======================================================;
Source: "D:\games\Аge of the Ring\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs;            
;=======================================================================================================;

//для установки дов онлайна///////////////////
Source: "D:\инсталл властелин колец\Readme.txt"; DestDir: "{app}"
Source: "D:\инсталл властелин колец\Информация.rtf"; DestDir: "{app}"
//////////////////////////////////////////////
//////===========Пихаем в Appdate папку с файлом======/////
Source: "D:\инсталл властелин колец\Options.ini"; DestDir: "{userappdata}\My Battle for Middle-earth(tm) II Files"
Source: "D:\инсталл властелин колец\Options.ini"; DestDir: "{userappdata}\My The Lord of the Rings, The Rise of the Witch-king Files"
[Components]

[code]

// Процедура для изменения громкости
// Можно добавить в сам модуль BASS_Module.iss
//------------------------------------------------------------------------------
procedure BASS_SetVolume(Pos: DWORD);
var
  nLeft, bLeft, bTop, bWidth, bHeight: Integer;
begin
  if (Pos >= 0) and (Pos <= 100) then begin
  BASSChangePos(Pos);
  nLeft:= BASS_VolBar.MinLeft + round(BASS_VolBar.BarWidth*BASS_Cfg.Volume/100);
  if (nLeft<BASS_VolBar.MinLeft) then nLeft:= BASS_VolBar.MinLeft;
  if (nLeft>BASS_VolBar.MaxLeft) then nleft:= BASS_VolBar.MaxLeft;
  BtnGetPosition(BASS_VolBar.BarDote, bLeft, bTop, bWidth, bHeight);
  BtnSetPosition(BASS_VolBar.BarDote, nLeft, bTop, bWidth, bHeight);
  ImgApplyChanges(BASS_VolBar.Parent); // вроде не нужно, но навсякий написал
end;
end;
//------------------------------------------------------------------------------

procedure InitializeWizard();
begin
ExtractTemporaryFile('bass.dll');
ExtractTemporaryFile('music.mp3');
ExtractTemporaryFile('MusicButton.png')
ExtractTemporaryFile('volmax.png')
ExtractTemporaryFile('volmin.png')
ExtractTemporaryFile('volpb.png')
ExtractTemporaryFile('volpbt.png')
ExtractTemporaryFile('voldote.png')
ExtractTemporaryFile('botva2.dll')
ExtractTemporaryFile('CallbackCtrl.dll')
                                                       
Bass_Init ('{tmp}\music.mp3');
BASS_CreateMediaPlayer(WizardForm, '{tmp}\volmax.png', '{tmp}\volmin.png', '{tmp}\volpb.png', '{tmp}\volpbt.png', '{tmp}\voldote.png', 20, 320, 150, True);
BASS_SetVolume(15);
end;

procedure DeinitializeSetup();
begin
Bass_DeInit;
gdipShutdown
end;

begin
  WizardForm.TypesCombo.Visible:= False;
end.

[Registry]
//Реестр The Battle for Middle-earth II
Root: HKLM; Subkey: "Software\Electronic Arts"; Flags: createvalueifdoesntexist uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts"; Flags: createvalueifdoesntexist uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}\The Battle for Middle-earth II\"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Language"; ValueData: "english"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: dword; ValueName: "MapPackVersion"; ValueData: "65536"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: dword; ValueName: "UseLocalUserMaps"; ValueData: "0"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "UserDataLeafName"; ValueData: "My Battle for Middle-earth(tm) II Files"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II"; ValueType: dword; ValueName: "Version"; ValueData: "65542"

Root: HKLM; SubKey: "Software\Electronic Arts\Electronic Arts\The Battle for Middle-earth II\ergc"; ValueType: string; ValueName: ; ValueData: "EYXXH34M3GWZ4YQ5LK22"

//Реестр The Lord of the Rings, The Rise of the Witch-king
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; Flags: uninsdeletekey; Check: not IsWin64
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}\The Battle for Middle-earth II\ep1\"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Language"; ValueData: "english"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: dword; ValueName: "MapPackVersion"; ValueData: "131072"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: dword; ValueName: "UseLocalUserMaps"; ValueData: "0"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "UserDataLeafName"; ValueData: "My The Lord of the Rings, The Rise of the Witch-king Files"
Root: HKLM; Subkey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: dword; ValueName: "Version"; ValueData: "131073"

Root: HKLM; SubKey: "Software\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\ergc"; ValueType: string; ValueName: ; ValueData: "6YUCKNSWSK9HZCL2Q99X"

///////////////////
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; Flags: uninsdeletekey
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; Flags: uninsdeletekey
///////////////////
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Battle for Middle-earth (tm) II"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueType: dword; ValueName: "Language"; ValueData: "13"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II\1.0"; ValueType: string; ValueName: "LanguageName"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "CacheSize"; ValueData: "5499066368"
//Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "CD Drive"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Battle for Middle-earth (tm) II"
//Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Folder"; ValueData: "{group}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Install Dir"; ValueData: "{app}\The Battle for Middle-earth II"
//Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Installed From"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Language"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Locale"; ValueData: "en_uk"
//Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Patch URL"; ValueData: "http://transtest.ea.com/Electronic Arts/The Battle for Middle-earth 2/NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Product GUID"; ValueData: "{{2A9F95AB-65A3-432c-8631-B8BC5BF7477A}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Region"; ValueData: "NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Registration"; ValueData: "SOFTWARE\Electronic Arts\Electronic Arts\The Battle for Middle-earth II\ergc"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "Suppression Exe"; ValueData: "rtsi.exe"
Root: HKLM; Subkey: "Software\Electronic Arts\The Battle for Middle-earth II"; ValueType: string; ValueName: "SwapSize"; ValueData: "0"

Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Lord of the Rings, The Rise of the Witch-king"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueType: dword; ValueName: "Language"; ValueData: "13"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueType: string; ValueName: "LanguageName"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "CacheSize"; ValueData: "3139187712"
//Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "CD Drive"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "DisplayName"; ValueData: "The Lord of the Rings, The Rise of the Witch-king"
//Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Folder"; ValueData: "{group}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Install Dir"; ValueData: "{app}\The Battle for Middle-earth II\ep1\"
//Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Installed From"; ValueData: "{src}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Language"; ValueData: "English UK"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Locale"; ValueData: "en_uk"
//Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Patch URL"; ValueData: "http://transtest.ea.com/Electronic Arts/The Battle for Middle-earth 2/NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Product GUID"; ValueData: "{{B931FB80-537A-4600-00AD-AC5DEDB6C25B}"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Region"; ValueData: "NorthAmerica"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Registration"; ValueData: "SOFTWARE\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\ergc"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "Suppression Exe"; ValueData: "rtsi.exe"
Root: HKLM; Subkey: "Software\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueType: string; ValueName: "SwapSize"; ValueData: "0"

[Icons]
Name: "{group}\Запустить игру"; IconFilename: "{app}\Age of the Ring\launcher_files\aotr.ico"; Filename: "{app}\Age of the Ring\lotrbfme2ep1.exe"; WorkingDir: "{app}\Age of the Ring"
Name: "{group}\Удалить игру"; Filename: "{uninstallexe}"; WorkingDir: "{app}"
Name: "{group}\Наша группа Вконтакте"; Filename: "{#MyAppURL}"
Name: "{commondesktop}\Age of the Ring 5.1"; IconFilename: "{app}\Age of the Ring\launcher_files\aotr.ico"; Filename: "{app}\Age of the Ring\lotrbfme2ep1.exe"; Tasks: desktopicon
Name: "{commondesktop}\CDKeyFixer"; Filename: "{app}\The Battle for Middle-earth II\CDKeyFixer\CDKeyFixer.exe"; Tasks: desktopicon; WorkingDir: "{app}\The Battle for Middle-earth II\CDKeyFixer"
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon

[Run]
Filename: "{app}\Age of the Ring\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent runascurrentuser
Filename: "{app}\Readme.txt"; Description: "Прочитать гайд для игры по сети"; Flags: postinstall shellexec skipifsilent

[UninstallDelete]
Type: files; Name: "{app}\*.ini"
Type: files; Name: "{app}\Log\*.log"
Type: dirifempty; Name: "{app}\Log"
 

dixen18

Пользователь
Вообщем с этой проблемой я разобрался. Спасибо, инсталлятор сам определяет путь. Но вот теперь загвоздка в том, что аддон The Rise of the Witch-king не хочет запускаться, мол не может найти игру The Battle for Middle-earth II. Сам аддон лежит в папке с оригинальной игрой и запускается у меня без проблем, а после распаковки репака уже не хочет. Пути реестра прописываю согласно оригинальным образам и установщикам, так же заимствовал с другого рабочего репака пути реестра.

Никто не сталкивался с такой проблемой,товарищи?
В старых играх часто бывает так что игра не видит 64-разрядных веток..попробуйте экспортировать ветку с дополнением в REG файл, удалить через блокнот WOW6432Node, сохранить и импортировать обратно..
Вот моя запись реестра из дополнения

[Registry]
Root: HKLM; Subkey: "SOFTWARE\Electronic Arts"; MinVersion: 0.0,5.0; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\Electronic Arts\Electronic Arts"; MinVersion: 0.0,5.0; Flags: uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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}"; MinVersion: 0.0,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "UserDataLeafName"; ValueType: String; ValueData: "Властелин Колец, Под знаменем Короля-чародея - Мои файлы"; MinVersion: 0.0,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\Electronic Arts\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\ergc"; ValueType: String; ValueData: "M67FBTDWDA9QHQWHNR5J"; MinVersion: 0.0,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "DisplayName"; ValueType: String; ValueData: "Под знаменем Короля-чародея™"; MinVersion: 0.0,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Installed From"; ValueType: String; ValueData: "{src}"; MinVersion: 0.0,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "CD Drive"; ValueType: String; ValueData: "{src}"; MinVersion: 0.0,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Install Dir"; ValueType: String; ValueData: "{app}"; MinVersion: 0.0,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king"; ValueName: "Patch URL"; ValueType: String; ValueData: "http://transtest.ea.com/Electronic Arts/The Battle for Middle-earth 2/NorthAmerica"; MinVersion: 0.0,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
Root: HKLM; Subkey: "SOFTWARE\Electronic Arts\The Lord of the Rings, The Rise of the Witch-king\1.0"; ValueName: "DisplayName"; ValueType: String; ValueData: "Под знаменем Короля-чародея™"; MinVersion: 0.0,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
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,5.0; Flags: uninsdeletevalue uninsdeletekeyifempty
И еще один совет - не берите за основу своих репаков сторонние репаки..Старайтесь находить либо стим-рипы либо лицензионные образы..
 

tihiy_don

Пользователь
В старых играх часто бывает так что игра не видит 64-разрядных веток..попробуйте экспортировать ветку с дополнением в REG файл, удалить через блокнот WOW6432Node, сохранить и импортировать обратно..
Вот моя запись реестра из дополнения


И еще один совет - не берите за основу своих репаков сторонние репаки..Старайтесь находить либо стим-рипы либо лицензионные образы..
Дело в том, что я тестирую но ноутбуке с 32 разрядной системой виндовс 7. Там путь не с WOW6432Node. Компилирую на основном пк виндовс 10 64разрядная система.
 

dixen18

Пользователь
Насколько я помню - совместить аддон с оригинальной игрой нельзя.. У самого в раздаче есть оригинал 2 части и аддон - отдельными инсталляторами
 

Вложения

tihiy_don

Пользователь
Насколько я помню - совместить аддон с оригинальной игрой нельзя.. У самого в раздаче есть оригинал 2 части и аддон - отдельными инсталляторами
Насколько я знаю, аддон требует оригинальную игру? Плюс я недавно видел в одном репаке там игра + аддон и всё работает. Ошибка такая "base game not installed application will exit " - это происходит при запуске аддона.
 
Последнее редактирование:

Хамик

Пользователь
32-битная система поддерживает только 32-разрядные приложения, а 64-битная - 32- и 64-разрядные, и чтобы разделить разрядность реестра 64-битная система использует ветку WOW6432Node для 32-разрядных приложений. Получается если прописать
Код:
Root: HKLM; Subkey: "Software\Electronic Arts"; Flags: createvalueifdoesntexist uninsdeletekeyifempty
то на 32-битной системе будет HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts, а на 64-битной будет HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Electronic Arts.
P.S. Cоветую заглянуть в справку. Поймете что к чему.
 

Хамик

Пользователь
Скомпилируйте этот код и запустите на разных осях, сами все увидите, никаких ошибочных путей не будет.
Код:
[Setup]
AppName=My Application
AppVersion=1.5
DefaultDirName={pf}\My Application

[Registry]
Root: HKLM; Subkey: "Software\Electronic Arts"; Flags: createvalueifdoesntexist uninsdeletekeyifempty
 

dixen18

Пользователь
почему? вы проверяли?
Потому что инсталлятор сам определять должен разрядность ОС. Конечно проверял..Помню первый вариант третьих симсов - указал все ветки для обоих разрядностей и пользователи потом жаловались на то что игра не запускается т.к не установлена..Потом когда я убрал все ветки с 64-битной версией - все запустилось без ошибок..
Но такое есть не во всех скрпитах..Насколько я знаю в скрипте у Хатаба надо указывать обе разрядности..
 
Сверху