杉宫竹苑工作室

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1950|回复: 0

Inno Setup 勾选式协议页面

[复制链接]
发表于 2017-2-26 14:15:23 | 显示全部楼层 |阅读模式

正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!

您需要 登录 才可以下载或查看,没有账号?立即注册

x
  1. [Setup]
  2. AppName=我的程序
  3. AppVerName=我的程序 1.5
  4. AppPublisher=我的公司
  5. AppPublisherURL=http://www.mycompany.com
  6. AppSupportURL=http://www.mycompany.com
  7. AppUpdatesURL=http://www.mycompany.com
  8. DefaultDirName={pf}\我的程序
  9. DefaultGroupName=我的程序
  10. LicenseFile=license.txt
  11. OutputBaseFilename=setup
  12. Compression=lzma
  13. SolidCompression=yes

  14. [Languages]
  15. Name: chi; MessagesFile: compiler:Default.isl

  16. [Tasks]
  17. Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked

  18. [Files]
  19. Source: MyProg.exe; DestDir: {app}; Flags: ignoreversion

  20. [Icons]
  21. Name: {group}\我的程序; Filename: {app}\MyProg.exe
  22. Name: {userdesktop}\我的程序; Filename: {app}\MyProg.exe; Tasks: desktopicon

  23. [Run]
  24. Filename: {app}\MyProg.exe; Description: {cm:LaunchProgram,我的程序}; Flags: nowait postinstall skipifsilent

  25. [Code]
  26. var
  27.   Label2: TLabel;
  28.   Label1: TLabel;
  29.   CheckBox1: TCheckBox;
  30.   NewStaticText1: TNewStaticText;

  31. procedure Cus_Next(Sender: TObject);
  32. begin
  33.   if CheckBox1.Checked = True then
  34.     WizardForm.LicenseAcceptedRadio.Checked := True
  35.   else
  36.     WizardForm.LicenseNotAcceptedRadio.Checked := True
  37. end;

  38. procedure InitializeWizard();
  39. begin
  40.   WizardForm.LicenseMemo.Height := 127;

  41.   WizardForm.LicenseAcceptedRadio.visible := False;
  42.   WizardForm.LicenseNotAcceptedRadio.visible := False;

  43.   Label1 := TLabel.Create(WizardForm);
  44.   Label1.Parent := WizardForm.LicensePage;
  45.   Label1.Left := WizardForm.LicenseMemo.Left;
  46.   Label1.Top := WizardForm.LicenseMemo.Top + WizardForm.LicenseMemo.Height + 7;
  47.   Label1.Width := WizardForm.LicenseMemo.Width;
  48.   Label1.Height := ScaleY(12);
  49.   Label1.Caption := '如果您接受许可协议,点击下方的单选框。您必须接受协议才能安装 我的程序'#13'1.5。单击 [下一步(N)] 继续。';

  50.   CheckBox1 := TCheckBox.Create(WizardForm);
  51.   CheckBox1.Parent := WizardForm.LicensePage;
  52.   CheckBox1.Left := WizardForm.LicenseMemo.Left;
  53.   CheckBox1.Top := WizardForm.LicenseMemo.Top + WizardForm.LicenseMemo.Height + 47;
  54.   CheckBox1.Width :=WizardForm.LicenseMemo.Width;
  55.   CheckBox1.Height := ScaleY(17);
  56.   CheckBox1.Caption := '我同意“许可协议”中的条款(&A)';
  57.   CheckBox1.TabOrder := 0;
  58.   CheckBox1.OnClick := @Cus_Next;

  59. end;
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SgzyStudio

GMT+8, 2024-5-19 12:50 , Processed in 0.111653 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表