SReg84 Цитата: помогите пожалуйста
Ну…, если не хочешь разбираться Сам, то [more=вот]
[Setup]
AppName=My Program
AppVerName=My Program v 1.0
DefaultDirName={pf}\My Program
DefaultGroupName=My Program
AllowNoIcons=True
DisableProgramGroupPage=True
DisableReadyPage=True
ShowLanguageDialog=auto
OutputDir=userdocs:My Program.
[Languages]
Name: "eng"; MessagesFile: "compiler:Default.isl";
Name: "rus"; MessagesFile: "compiler:Languages\Russian.isl";
[CustomMessages]
eng.ICONSCHECK=Don't create a Start Menu folder
rus.ICONSCHECK=Не создавать папку в меню «Пуск»
[Files]
Source: "compiler:Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion;
[Icons]
Name: "{userdesktop}\My Program"; Filename: "{app}\MyProg.exe"; WorkingDir: "{app}"; Check: "Checked1";
Name: "{group}\My Program"; Filename: "{app}\MyProg.exe"; WorkingDir: "{app}"; Check: "Checked3";
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\My Program"; Filename: "{app}\MyProg.exe"; WorkingDir: "{app}"; Check: "Checked2";
[Code]
var
Check1, Check2, Check3: TCheckBox;
function Checked1: Boolean;
begin
Result := Check1.Checked;
end;
function Checked2: Boolean;
begin
Result := Check2.Checked;
end;
function Checked3: Boolean;
begin
Result := Check3.Checked = False;
end;
procedure InitializeWizard();
var
Text1: TNewStaticText;
begin
Text1 := TNewStaticText.Create(WizardForm);
Text1.Top := WizardForm.DirEdit.Top + WizardForm.DirEdit.Height + ScaleY(7);
Text1.Width := WizardForm.DirEdit.Width;
Text1.Caption := ExpandConstant('{cm:AdditionalIcons}');
Text1.Parent := WizardForm.SelectDirPage;
Check1 := TCheckBox.Create(WizardForm);
Check1.Top := Text1.Top + Text1.Height + ScaleY(7);
Check1.Width := WizardForm.DirEdit.Width;
Check1.Caption := ExpandConstant('{cm:CreateDesktopIcon}');
Check1.Checked := False;
Check1.Parent := WizardForm.SelectDirPage;
Check2 := TCheckBox.Create(WizardForm);
Check2.Top := Check1.Top + Check1.Height + ScaleY(7);
Check2.Width := WizardForm.DirEdit.Width;
Check2.Caption := ExpandConstant('{cm:CreateQuickLaunchIcon}');
Check2.Checked := False;
Check2.Parent := WizardForm.SelectDirPage;
Check3 := TCheckBox.Create(WizardForm);
Check3.Top := Check2.Top + Check2.Height + ScaleY(7);
Check3.Width := WizardForm.DirEdit.Width;
Check3.Caption := ExpandConstant('{cm:ICONSCHECK}');
Check3.Checked := False;
Check3.Parent := WizardForm.SelectDirPage;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
if CurPageID = wpSelectDir then
if ActiveLanguage = 'rus' then
WizardForm.NextButton.Caption := 'Установить'
else
WizardForm.NextButton.Caption := 'Install';
end;
[/more] готовый пример.