Остался "последний штрих"
[spoiler]Цитата:[/spoiler]
[Setup]
AppName=My Application
AppVersion=1.5
DefaultDirName={pf}\My Application
[Files]
Source: "compiler:Examples\MyProg.exe"; DestDir: "{app}"; Check: PortableCheck; Flags: ignoreversion
Source: "compiler:Examples\MyProg-x64.exe"; DestDir: "{app}"; Check: InstallerCheck; Flags: ignoreversion
[UninstallDelete]
Type: filesandordirs; Name: "{app}";
Type: filesandordirs; Name: "{localappdata}\папка на удаление";
Type: filesandordirs; Name: "{userappdata}\папка на удаление";
Код: Выделить всё
[/b]var
ComponentPage : TWizardPage;
InstallGroupBox : TNewGroupBox;
Installer : TNewRadioButton;
Portable : TNewRadioButton;
function InstallerCheck: Boolean;
begin
Result := Installer.Checked;
end;
function PortableCheck: Boolean;
begin
Result := Portable.Checked;
end;
procedure [b]InitializeWizard[/b]();
begin
ComponentPage := CreateCustomPage(wpWelcome, 'Выбор типа установки', 'Выберите тип установки');
{ InstallGroupBox }
InstallGroupBox := TNewGroupBox.Create(WizardForm);
with InstallGroupBox do
begin
Parent := ComponentPage.Surface;
SetBounds(ScaleX(0),ScaleY(0),ScaleX(210),ScaleY(60));
Caption := 'Выбор типа установки:';
end;
{ Installer }
Installer := TNewRadioButton.Create(WizardForm);
with Installer do
begin
Parent := InstallGroupBox;
SetBounds(ScaleX(5),ScaleY(14),ScaleX(195),ScaleY(17));
Caption := 'Установка обычной версии';
Checked := True;
end;
{ Portable }
Portable := TNewRadioButton.Create(WizardForm);
with Portable do
begin
Parent := InstallGroupBox;
SetBounds(ScaleX(5),ScaleY(36),ScaleX(195),ScaleY(17));
Caption := 'Распаковка портативной версии';
end;
end;