Skip to content
⌘ NSIS Forum Archive

sound in the install program

5 posts

pacha35#

sound in the install program

Hi,

I want to play music during my install exe.
I work in MUI format and I don't find how to use this feature on the net.

I've tried this:
--------------
Function .oninit
...

InitPluginsDir
File /oname=$PLUGINSDIR\1.wav "C:\Program Files\NSIS\ajouts_RB\splash_01.wav"

splash::show $PLUGINSDIR\1.wav

...
FunctionEnd
----------------
This doesnot work
Thanks to help me

Pacha35
Afrow UK#
Splash is for showing a bitmap / playing a sound only before the installer shows up. To play a sound during the whole installation use the BgImage plugin. Readme in Contrib\BgImage

-Stu
Takhir#
BgImage plays wav files, but wavs are huge.. And plug-in adds package size. Few lines of script can play mp3 - see attachment.