Inno Setup
详细教程
一
.
关于
Inno Setup
如何在安装时播放音乐方法?/p>
1
?/p>
:在
脚本编译里的
[Code]
?/p>
[Files]
段处添加以下代码?/p>
[Code]
Function mciSendString(lpszCommand: String;
lpszReturnString: Integer; cchReturnLength: Integer;
hwndCallback: Integer): Integer;
external ''mciSendStringA@winmm.dll stdcall'';
procedure InitializeWizard();
var
BGMusicFile, SplashFile: string;
SplashForm: TForm;
SplashFileName: String;
I: Integer;
beginExtractTemporaryFile(ExtractFileName(ExpandConstant(''
{tmp}\music.mp3'')));
SplashForm := TForm.create(nil);
with SplashForm do
begin
mciSendString(ExpandConstant(''play
{tmp}\music.mp3''),0,0,0);
Close;