Archive: Nother Quick Question.....


Nother Quick Question.....
Right, I've got my installer installing various things to various directories no problemo, last thing I want it to do, is launch winamp, change the skin that it launches with and play a demp MP3 that I've extracted.

Now, I can do the first few bits, lauch WA, change the skin, even get it to load the demo mp3 into the playlist, but how do I get it to exectute the damd thing?, I've tried various command line options listed in the developer section, but none of these work.

The solution I have so far is...

;
WriteINIStr "$INSTDIR\Winamp.ini" "Winamp" "skin" "mynewskin.wsz"
Exec '"$INSTDIR\winamp.exe"'
ExecShell open "C:\Program Files\Winamp\winamp.exe\C:\Program Files\Winamp\Demo.mp3"
First bit changes the skin, second opens winamp, the third should execute the installed demo.mp3 file, but for some reason it just loads the playlist.

What am I missing here :igor: . What I'd like to achieve at the end of the day is something similar to the installer that comes with winamp, loads the app, runs it and plays the classic llama whipping ditty.

Any ideas ?

Thanks in advance.

Have you tried


SetOutPath $INSTDIR
WriteINIStr Winamp.ini "Winamp" "skin" "mynewskin.wsz"
ExecShell open winamp.exe demo.mp3
?

Hope this helps -
Regards,
~ Florian

Thank you, worked a charm :)