Gunny2k2
1st August 2004 11:00 UTC
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:
deguix
1st August 2004 12:28 UTC
We had some threads in the past here in the forums. Try to use the search feature for this purpose.
Comm@nder21
1st August 2004 18:53 UTC
yeah. or browse the "contrib" folder inside your nsis-directory. i think the "bgimage" plugin can play music in the backround.
Takhir
6th August 2004 13:24 UTC
http://forums.winamp.com/showthread....0&pagenumber=2
sound.nsi attachment to my post
razor_x
9th August 2004 17:33 UTC
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.:)
TonyDS
9th August 2004 22:23 UTC
With me it just hangs
razor_x
11th August 2004 18:29 UTC
Originally posted by TonyDS
With me it just hangs
whats your operating system?
TonyDS
11th August 2004 18:40 UTC
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
Takhir
11th August 2004 19:17 UTC
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.