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

View file

@ -82,13 +82,18 @@ begin
// Set initial values (optional) // Set initial values (optional)
InstallDataPage.SelectedValueIndex := 0; // Default: Yes InstallDataPage.SelectedValueIndex := 0; // Default: Yes
// Locate W:ET 2.60b etmain directory // Let user choose the location of etmain directory
EtmainDirPage := CreateInputDirPage(InstallDataPage.ID, EtmainDirPage := CreateInputDirPage(InstallDataPage.ID,
'Select "etmain" directory inside W:ET 2.60b installation', '', 'Select "etmain" directory inside W:ET 2.60b installation', '',
'Select the "etmain" folder inside your Wolfenstein: Enemy Territory 2.60b installation, then click Next.', 'Select the "etmain" folder inside your Wolfenstein: Enemy Territory 2.60b installation, then click Next.',
False, ''); False, '');
EtmainDirPage.Add(''); 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 // Download W:ET data files
itd_init; itd_init;
itd_downloadafter(wpReady); itd_downloadafter(wpReady);