mirror of
https://github.com/etlegacy/etlegacy-tools.git
synced 2024-11-10 06:42:02 +00:00
inno_installer: find W:ET 2.60b installation
This commit is contained in:
parent
bc079ba932
commit
2c2828e6d4
1 changed files with 6 additions and 1 deletions
|
@ -82,13 +82,18 @@ begin
|
|||
// Set initial values (optional)
|
||||
InstallDataPage.SelectedValueIndex := 0; // Default: Yes
|
||||
|
||||
// Locate W:ET 2.60b etmain directory
|
||||
// Let user choose the location of etmain directory
|
||||
EtmainDirPage := CreateInputDirPage(InstallDataPage.ID,
|
||||
'Select "etmain" directory inside W:ET 2.60b installation', '',
|
||||
'Select the "etmain" folder inside your Wolfenstein: Enemy Territory 2.60b installation, then click Next.',
|
||||
False, '');
|
||||
EtmainDirPage.Add('');
|
||||
|
||||
// Locate W:ET 2.60b etmain directory
|
||||
if RegQueryStringValue(HKLM, 'Software\Activision\Wolfenstein - Enemy Territory', 'InstallPath', InstallPath) then begin
|
||||
EtmainDirPage.Values[0] := InstallPath + '\etmain'
|
||||
end;
|
||||
|
||||
// Download W:ET data files
|
||||
itd_init;
|
||||
itd_downloadafter(wpReady);
|
||||
|
|
Loading…
Reference in a new issue