GifLib_Example.iss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ; 脚本由 Inno Setup 脚本向导 生成!
  2. ; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档!
  3. #include "compiler:GifLib.iss"
  4. [Setup]
  5. ; 注: AppId的值为单独标识该应用程序。
  6. ; 不要为其他安装程序使用相同的AppId值。
  7. ; (生成新的GUID,点击 工具|在IDE中生成GUID。)
  8. AppId={{A18A3B64-E516-4299-A51A-5A48BF64E94D}
  9. AppName=我的程序
  10. AppVerName=我的程序 1.5
  11. AppPublisher=我的公司
  12. AppPublisherURL=http://www.example.com/
  13. AppSupportURL=http://www.example.com/
  14. AppUpdatesURL=http://www.example.com/
  15. DefaultDirName={pf}\我的程序
  16. DefaultGroupName=我的程序
  17. OutputDir=userdocs:Inno Setup Examples Output
  18. OutputBaseFilename=setup
  19. Compression=lzma
  20. SolidCompression=yes
  21. [Tasks]
  22. Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
  23. [Files]
  24. Source: compiler:Examples\MyProg.exe; DestDir: {app}; Flags: ignoreversion
  25. [Code]
  26. var
  27. GifHandle:Integer;
  28. procedure InitializeWizard();
  29. begin
  30. GifHandle := GifInit(WizardForm.WelcomePage.Handle);
  31. GifSetBounds(GifHandle, WizardForm.WizardBitmapImage.Left, WizardForm.WizardBitmapImage.Top, WizardForm.WizardBitmapImage.Width ,WizardForm.WizardBitmapImage.Height);
  32. GifSetFile(GifHandle, '1139681544755.gif');
  33. end;
  34. procedure CurPageChanged(CurPageID: Integer);
  35. begin
  36. Case CurPageID of
  37. wpWelcome : GifSetParentWindow(GifHandle, WizardForm.WelcomePage.Handle);
  38. wpFinished: GifSetParentWindow(GifHandle, WizardForm.FinishedPage.Handle);
  39. end;
  40. end;
  41. procedure DeinitializeSetup();
  42. begin
  43. GifAllFree;
  44. end;