#define MyAppURL "
https://krinkels.org/"
[Setup]
AppName=My Program
AppVerName=My Program 1.5
DefaultDirName={pf}\My Program
OutputBaseFilename=setup
DisableReadyPage=true
OutputDir=.
[Languages]
Name: russian; MessagesFile: compiler:Languages\Russian.isl
[Files]
Source: compiler:Examples\MyProg.exe; DestDir: {app}; Flags: ignoreversion
[Icons]
Name: {group}\My Program; Filename: {app}\My Program.exe; Components: StartMenuIcon
Name: {commondesktop}\Сайт в Интернете; Filename: "{#MyAppURL}"; Components: DesktopWeb;
Name: {commondesktop}\My Program; Filename: {app}\My Program.exe; Components: DesktopIcon;
[Types]
Name: full; Description: Full installation; Flags: iscustom
[Components]
Name: DesktopIcon; Description: Создать ярлык на Рабочий столе;
Name: StartMenuIcon; Description: Создать папку в меню Пуск;
Name: DesktopWeb; Description: Создать ярлык сайта на Рабочий столе;
Код:
procedure InitializeWizard ();
begin
with WizardForm.ComponentsList do
begin
Left := ScaleX(0);
Parent:= WizardForm.SelectDirPage;
Top := ScaleY(122);
Height := ScaleY(83);
Color := clMenu;
WantTabs := True;
//BorderStyle := bsNone;
WizardForm.ComponentsList.Checked[0]:=True;
WizardForm.ComponentsList.Checked[1]:=True;
WizardForm.ComponentsList.Checked[2]:=True;
end;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
if CurPageID = wpSelectDir then
begin
If WizardForm.FindComponent('NextButton') is TButton
then
TButton(WizardForm.FindComponent('NextButton')).Caption:='Установить';
end;
end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
if (PageID =wpSelectComponents)then
Result:= True;
end;
[/SPOILER]