Archive: Muisc While Installing? Pos? or InPos?


Muisc While Installing? Pos? or InPos?
Well firstly i d like to say i ve been using NSIS since 2.0's beta 3 and i m not a totaly n00b, but i m wonder if its possiable or inpossiable to play music while the installer is running (as in it plays in background and doesnt pause the installer) so the user can still install the product.

Example is like in Soldier Of Fortune 2 (uses InstallShield) plays a intro sound file about where SOF2 is about but u can still click next and install the game while its playing.

Any Comments and suggestions welcomed.
:D:) ;) :cool: :p :rolleyes: :igor: :weird: :blah:


We had some threads in the past here in the forums. Try to use the search feature for this purpose.


yeah. or browse the "contrib" folder inside your nsis-directory. i think the "bgimage" plugin can play music in the backround.


http://forums.winamp.com/showthread....0&pagenumber=2
sound.nsi attachment to my post


Originally posted by Takhir
http://forums.winamp.com/showthread....0&pagenumber=2
sound.nsi attachment to my post
ya ive used this Takhir,it works great thanks for this.:)

With me it just hangs


Originally posted by TonyDS
With me it just hangs
whats your operating system?

win xp

As I said it just hangs, I start the application a box appears, with a slider and stop button, then it freezes, no music is heard, I have to press Ctrl Alt Del to close it


Originally posted by TonyDS
win xp
As I said it just hangs
I tested 2 variants of sound.nsi - using PlaySound() and MCIWndCreate().
In my tests PlaySound() hangs on Win98 SE, MCIWndCreate() works fine on Win98, XP, W2K (testing is a part of my job). May be this is NSIS problem, because I used PlaySound() a lot of times in C programs earlier - all of them work fine (in this part :). Unfortunately I am under strong customer pressure now and cannot investigate this problem in detail :(
BTW I had the same problem with NSIS splash plugin (bmp banner+sound) - no sound on Win98, may be because it uses PlaySound() call (see splash.c line 98:
PlaySound(fn2,NULL,SND_ASYNC|SND_FILENAME|SND_NODEFAULT);
Finally what I want to say: I published MCIWndCreate() script variant not because I like it more then PlaySound() call, the only reason - in my brief test it worked on all platforms, but PlaySound() not worked on Win98 (in this script).
The only thing I see - MCIWndCreateW() must be used for wide char. progs.