杉宫竹苑工作室

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

福星阅读器脚本

[复制链接]
发表于 2017-3-6 17:02:34 | 显示全部楼层 |阅读模式

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

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

x
  1. ; 脚本用 Inno Setup 脚本向导 生成。
  2. ; 查阅文档获取创建 INNO SETUP 脚本文件的详细资料!

  3. #define MyAppName "FoxitReader"
  4. #define MyAppVersion "5.3.1.606"
  5. #define MyAppPublisher "536288.com"
  6. #define MyAppURL "http://www.536288.com/"
  7. #define MyAppExeName "Foxit Reader.exe"

  8. [Setup]
  9. ; 注意: AppId 的值是唯一识别这个程序的标志。
  10. ; 不要在其他程序中使用相同的 AppId 值。
  11. ; (在编译器中点击菜单“工具 -> 产生 GUID”可以产生一个新的 GUID)
  12. AppId={{AC4CB97C-F7C7-4CDA-9EB4-BD5EE0688D70}
  13. AppName={#MyAppName}
  14. AppVersion={#MyAppVersion}
  15. ;AppVerName={#MyAppName} {#MyAppVersion}
  16. AppPublisher={#MyAppPublisher}
  17. AppPublisherURL={#MyAppURL}
  18. AppSupportURL={#MyAppURL}
  19. AppUpdatesURL={#MyAppURL}
  20. DefaultDirName={pf}\{#MyAppName}
  21. DisableDirPage=yes
  22. DefaultGroupName={#MyAppName}
  23. AllowNoIcons=yes
  24. OutputBaseFilename=Foxit Reader
  25. SetupIconFile=E:\安装包制作\ICO\appicon.ico
  26. Compression=lzma
  27. SolidCompression=yes
  28. WizardImageFile=E:\安装包制作\soft\SESetup\embedded\WizModernImage.bmp
  29. WizardSmallImageFile=E:\安装包制作\soft\SESetup\embedded\WizModernSmallImage.bmp

  30. [Languages]
  31. Name: "default"; MessagesFile: "compiler:Default.isl"
  32.   
  33. [Files]
  34. Source: "E:\安装包制作\soft\FoxitReader\Foxit Reader.exe"; DestDir: "{app}"; Flags: ignoreversion
  35. Source: "E:\安装包制作\soft\FoxitReader\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
  36. ; 注意: 不要在任何共享的系统文件使用 "Flags: ignoreversion"

  37. [Tasks]
  38. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

  39. [Icons]
  40. Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  41. Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
  42. Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
  43. Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

  44. [Run]
  45. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

  46. [UninstallDelete]
  47. Type: filesandordirs; Name: {app}

  48. [UninstallRun]
  49. Filename: http://www.baidu.com ; Flags: shellexec runmaximized

  50. [Messages]
  51. ConfirmUninstall=您真的想要从电脑中卸载该软件吗?%n%n按 [是] 则完全删除 %1 以及所有组件。 %n按 [否] 则让软件继续留在您的电脑上。%n%n提示: 卸载时将删除安装目录中的所有内容,请备份您的数据!

  52. [Code]
  53. procedure CurStepChanged(CurStep: TSetupStep);
  54. var
  55. ErrorCode: Integer;
  56. begin
  57. if CurStep=ssDone then ShellExec('open', 'http://www.baidu.com/', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
  58. end;

  59. procedure URLLabelOnClick(Sender: TObject);
  60. var
  61. ErrorCode: Integer;
  62. begin
  63. ShellExec('open', 'http://www.baidu.com ', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);
  64. end;

  65. procedure AboutButtonOnClick(Sender: TObject);
  66. begin
  67. MsgBox('xxxx'#13#10'QQ:xxxx'#13#10'xxxx',mbInformation, MB_OK);
  68. end;

  69. var
  70. AboutButton, CancelButton: TButton;
  71. URLLabel: TNewStaticText;

  72. procedure InitializeWizard();
  73. begin
  74. { Create the pages }
  75. WizardForm.PAGENAMELABEL.Font.Color:= clred;
  76. WizardForm.PAGEDESCRIPTIONLABEL.Font.Color:= clBlue;
  77. WizardForm.WELCOMELABEL1.Font.Color:= clGreen;
  78. WizardForm.WELCOMELABEL2.Font.Color:= clblack;

  79. CancelButton := WizardForm.CancelButton;
  80. AboutButton := TButton.Create(WizardForm);
  81. AboutButton.Left := WizardForm.ClientWidth - CancelButton.Left - CancelButton.Width;
  82. AboutButton.Top := CancelButton.Top;
  83. AboutButton.Width := CancelButton.Width;
  84. AboutButton.Height := CancelButton.Height;
  85. AboutButton.Caption := '关于(&A)';
  86. AboutButton.OnClick := @AboutButtonOnClick;
  87. AboutButton.Parent := WizardForm;

  88. URLLabel := TNewStaticText.Create(WizardForm);
  89. URLLabel.Caption := '点击支持我';
  90. URLLabel.Cursor := crHand;
  91. URLLabel.OnClick := @URLLabelOnClick;
  92. URLLabel.Parent := WizardForm;
  93. { Alter Font *after* setting Parent so the correct defaults are inherited first }
  94. URLLabel.Font.Style := URLLabel.Font.Style + [fsUnderline];
  95. URLLabel.Font.Color := clBlue;
  96. URLLabel.Top := AboutButton.Top + AboutButton.Height - URLLabel.Height - 2;
  97. URLLabel.Left := AboutButton.Left + AboutButton.Width + ScaleX(20);
  98. end;
复制代码

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-18 15:48 , Processed in 0.102185 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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