inno_installer: find W:ET 2.60b installation

This commit is contained in:
Radegast 2012-11-02 17:19:44 +00:00
parent bc079ba932
commit 2c2828e6d4
1 changed files with 6 additions and 1 deletions

View File

@ -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);