1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| Const
CSIDL_NETHOOD = $0013;
.......
procedure CreateTheWizardPages;
begin
Path := GetShellFolderByCSIDL(CSIDL_NETHOOD , True);
if msgBox(ExpandConstant('{cm:DoYouHaveFs9Installed}'),mbConfirmation, mb_YesNo)=idYes then
begin
Page9:= CreateInputDirPage(wpSelectDir,
ExpandConstant('{cm:FS9installFolder}'),ExpandConstant('{cm:TypeFlightSimulatorinstallationfoldercompletepath}'),'',False,'');
Page9.Add(ExpandConstant('{cm:FS9installFolder}'));
Page9.Add(ExpandConstant('{cm:FS9FpFolder}'));
Page9.Add('FS9 network');
Page9.Values[0]:= 'C:\Program Files (x86)\Microsoft Games\Flight Simulator 9 ';
Page9.Values[1]:= ExpandConstant('{userdocs}')+ '\';
Page9.Values[2]:= Path;
FS9:= True;
end
else
begin
FS9:= False;
end; |
Partager