杉宫竹苑工作室

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

Inno Setup XP SP2补丁包

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

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

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

x
  1. [Setup]
  2. AppName=XP
  3. AppVerName=XP
  4. AppPublisher=XP
  5. AppPublisherURL=http://www.imseb.cn/
  6. AppSupportURL=http://www.imseb.cn/
  7. AppUpdatesURL=http://www.imseb.cn/
  8. CreateAppDir=false
  9. LicenseFile=D:\xp\xp.txt
  10. OutputDir=D:\
  11. OutputBaseFilename=setup
  12. Compression=lzma
  13. SolidCompression=true
  14. VersionInfoVersion=1.0.0.0
  15. VersionInfoTextVersion=1.0.0.0
  16. Uninstallable=false

  17. [Languages]
  18. Name: chinesesimp; MessagesFile: compiler:Default.isl

  19. [Files]
  20. Source: D:\xp\WindowsXP-KB935708-x86-CHS.exe; DestDir: {tmp}; Flags: ignoreversion; Components: xp
  21. Source: D:\xp\WindowsXP-KB933360-x86-CHS.exe; DestDir: {tmp}; Flags: ignoreversion; Components: nt



  22. [Components]
  23. Name: xp; Description: xp; Flags: checkablealone; Types: full
  24. Name: nt; Description: nt; Flags: checkablealone; Types: custom compact
  25. [Run]
  26. Filename: {tmp}\WindowsXP-KB935708-x86-CHS.exe; Parameters: /passive /quiet /norestart /nobackup; Flags: runminimized; Components: xp
  27. Filename: {tmp}\WindowsXP-KB933360-x86-CHS.exe; Parameters: /passive /quiet /norestart /nobackup; Flags: runminimized; Components: nt
  28. [Code]
  29. procedure AboutButtonOnClick(Sender: TObject);
  30. begin
  31. MsgBox('欢迎使用aaplayboy制作的程序,该程序来自霏凡论坛。', mbInformation, mb_Ok);
  32. end;

  33. procedure URLLabelOnClick(Sender: TObject);
  34. var
  35.   ErrorCode: Integer;
  36. begin
  37.   ShellExec('open', 'http://bbs.crsky.com', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
  38. end;

  39. procedure InitializeWizard();
  40. var

  41. AboutButton, CancelButton: TButton;
  42. URLLabel: TNewStaticText;
  43. BackgroundBitmapImage: TBitmapImage;
  44. BackgroundBitmapText: TNewStaticText;
  45. begin
  46. CancelButton := WizardForm.CancelButton;

  47. AboutButton := TButton.Create(WizardForm);
  48. AboutButton.Left := WizardForm.ClientWidth - CancelButton.Left - CancelButton.Width;
  49. AboutButton.Top := CancelButton.Top;
  50. AboutButton.Width := CancelButton.Width;
  51. AboutButton.Height := CancelButton.Height;
  52. AboutButton.Caption := '关于(&A)';
  53. AboutButton.OnClick := @AboutButtonOnClick;
  54. AboutButton.Parent := WizardForm;

  55. URLLabel := TNewStaticText.Create(WizardForm);
  56. URLLabel.Top := AboutButton.Top + AboutButton.Height - URLLabel.Height - 2;
  57. URLLabel.Left := AboutButton.Left + AboutButton.Width + 20;
  58. URLLabel.Caption := '霏凡论坛';
  59. URLLabel.Font.Style := URLLabel.Font.Style + [fsUnderLine];
  60. URLLabel.Font.Color := clBlue;
  61. URLLabel.Cursor := crHand;
  62. URLLabel.OnClick := @URLLabelOnClick;
  63. URLLabel.Parent := WizardForm;

  64. BackgroundBitmapImage := TBitmapImage.Create(MainForm);
  65. BackgroundBitmapImage.AutoSize := True;
  66. BackgroundBitmapImage.Bitmap := WizardForm.WizardBitmapImage.Bitmap;
  67. BackgroundBitmapImage.Left := 50;
  68. BackgroundBitmapImage.Top := 100;
  69. BackgroundBitmapImage.Parent := MainForm;

  70. BackgroundBitmapText := TNewStaticText.Create(MainForm);
  71. BackgroundBitmapText.Caption := 'TBitmapImage';
  72. BackgroundBitmapText.Left := BackGroundBitmapImage.Left;
  73. BackgroundBitmapText.Top := BackGroundBitmapImage.Top + BackGroundBitmapImage.Height + 8;
  74. BackgroundBitmapText.Parent := MainForm;
  75. //许可协议
  76. WizardForm.LicenseAcceptedRadio.Checked := True;
  77. //注册表判断组件
  78. if RegValueExists(HKEY_CURRENT_USER, 'Software\liatro', 'ScreenCY') then
  79.   begin
  80.   WizardForm.ComponentsList.ITEMENABLED[1]:= false; //组件(第二个)不可选
  81.   WizardForm.ComponentsList.CHECKED[1]:= false;   //默认不选中组件
  82.   end
  83. else
  84.   begin
  85.   WizardForm.ComponentsList.ITEMENABLED[1]:= true; //组件可选
  86.   WizardForm.ComponentsList.CHECKED[1]:= true; //默认选中组件
  87.   end;
  88. end;
复制代码


回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-18 12:41 , Processed in 0.103905 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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