Inno Setup - video file with relative path as splash screen

独自空忆成欢 提交于 2019-12-02 03:38:58
Miral

Just swap 'd:\video.avi' with ExpandConstant('{tmp}\video.avi'), with a prior call to ExtractTemporaryFile.

Or if you want to distribute the video alongside the setup (eg. on DVD) rather than embedded into it, then use {src} instead of {tmp}, and skip ExtractTemporaryFile.

To the second question. There was missing the message drain which would allow the IVideoWindow forward keyboard and mouse messages to the window owner. In the updated version of the library the messages are dispatched to the owner, so download the latest version and add the code like this to close the video window by clicking on it:

[Code]
procedure OnVideoFormClick(Sender: TObject); 
begin 
  // it's enough to just close the form as it owns the IVideoWindow
  VideoForm.Close;
end;

procedure InitializeWizard;
begin
  VideoForm := CreateCustomForm;
  ...
  VideoForm.OnClick := @OnVideoFormClick;
  ...
end;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!