Jump to content

installation music?


Recommended Posts

I have a few questions on this script.

First, this is what happens If I run GsmUaPlayMusicV2.exe. I have to answer the questions you posted screen shots above, then it copies two files to the desktop (UaMusic.CMD and cmdlines.txt) and then the music I have selected starts playing and the player is hidden from view. This is great, however I don't want to have to answer the questions, I would just like to play the music with the player hidden. How can you do this?

If I just run UaMusic.CMD (which I plan to do in Runonce.CMD), It will play the music, but the player isn't hidden. So I'm guessing you have something in your VBS script that tells the player to run hidden. Is this correct? If so, can this be added to UaMusic.CMD?

Any help would be appreciated.

Thanks

The Screen Shots Are For The First Script Or Version
Use The Second Version It Requires No Typing
The Vbs Tells It to play that way
I Have The Cmd That Way so when it run in A
Ua Install You Could Close It If It was Causing
Any Problems.

Can be used this in T-39 (Detached Program) with another command lines in UaMusic.cmd for integrating and a sound driver before (for example) or disabling some components ? (offcourse including and devcon)

Well, something like this :

QUOTE

cmdow @ /HID

ECHO OFF

devcon disable ACPI\PNP0401

devcon disable ACPI\PNP0700

devcon [-r]update C:\OEM\WDM\wdma_emu.inf "PCI\VEN_1102&DEV_0004&CC_040100"

devcon [-r] update C:\OEM\WDM\ctljystk.inf "PCI\VEN_1102&DEV_7002&SUBSYS_00201102"

devcon [-r] update C:\OEM\WDM\ctgame2k.inf "PCI\VEN_1102&DEV_7003&SUBSYS_00401102"

echo.

CLS && mode 55,3 && color 3f

Title Gsm Play Music

Echo.

echo Playing User Selected Music

start /wait mplayer2.exe C:\music\list.m3u

ping -n 2 127.0.0.1>nul

exit

If, it is something wrong, can someone lighting my way ?

Thank You !

I dont know about this at the 39 min mark.
I have never had any success running
anything from there.

Edited by gunsmokingman
Link to comment
Share on other sites


This In My Test Will Play Either WMP10 Or Mplayer2 Hidden

Just Edit This Line In The Script

  ts.WriteLine "echo Playing User Selected Music"

  ts.WriteLine "start mplayer2.exe " & (Chr(34) & ObjFSO.FileName & Chr(34))

  ''''''PING IS USED TO PAUSE THE SCRIPT IT LIKE SLEEP.EXE

  ts.WriteLine "ping -n 2 127.0.0.1>nul"

Blue Is The New Code Line

It Set To Run WMP10

Just Replace The Red With A Blue Line

Red Is The Old Line Of Code ' These

Make The Code Line Inactive.

  ts.WriteLine "echo Playing User Selected Music"

  'ts.WriteLine "start mplayer2.exe " & (Chr(34) & ObjFSO.FileName & Chr(34))

'ts.WriteLine "start /min mplayer2.exe " & (Chr(34) & ObjFSO.FileName & Chr(34))

  ts.WriteLine "start /min wmplayer.exe " & (Chr(34) & ObjFSO.FileName & Chr(34)) 

  ''''''PING IS USED TO PAUSE THE SCRIPT IT LIKE SLEEP.EXE

  ts.WriteLine "ping -n 2 127.0.0.1>nul"

Link to comment
Share on other sites

for some reason, a batch file i created for my music selection does not execute at t-39

this is my batch script:

cls
@echo off
TITLE Windows XP SP2 - Unattended Installation
mode con cols=76 lines=23 & color f0

:MENU
ECHO Over the next few minutes, the following will be implemented:
ECHO.
ECHO Automated installations of various Sofware Applications
ECHO Windows Updates
ECHO Registry Tweaks
ECHO.
ECHO The computer will restart automatically once the whole process has finished!
ECHO ____________________________________________________________________________
ECHO Feel free to entertain yourself by using any of the options below:
echo.
ECHO M - Music
ECHO ____________________________________________________________________________
ECHO Other Options:
ECHO.
ECHO C - Color Options
ECHO * - Close Window
ECHO ____________________________________________________________________________

echo.
SET Choice=
SET /P Choice=Type the Letter/Number/Symbol and Press Enter:
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,4%
IF /I '%Choice%'==' ' GOTO  
IF /I '%Choice%'=='M' GOTO M
IF /I '%Choice%'=='*' GOTO *
IF /I '%Choice%'=='cmd' GOTO cmd
IF /I '%Choice%'=='C' GOTO C

:
ECHO Entering Nothing is NOT Valid
GOTO MENU

:M
cls
@Echo off
mode con cols=50 lines=38 & color f0
:MUSIC
Title Music Selection
echo Music Selection:
echo.
echo !  - Play All
echo X  - Close open Media Player
echo MC - Color Options
ECHO M  - Return to Menu
echo *  - Close Music Selection Window
echo.
echo 1.   P.O.D - Intro
echo 2.   Paul Oakenfold - Aeternal
echo 3.   LFO - Freak
echo 4.   Omega Men - Sweet World
echo 5.   Moby - Sunday
echo 6.   Moby - Flower
echo 7.   Linkin Park - Session
echo 8.   Linkin Park - Cure For The Itch
echo 9.   Daft Punk - Da Funk
echo 10.  Daft Punk - Around The World
echo 11.  TR/TR2.OST - The Well
echo 12.  NFS3 - Romulus III
echo 13.  NFS4 - Quantum Singularity
echo 14.  NFS4 - Paradigm Shifter
echo 15.  Squeak E. Clean - Hello Tomorrow
echo 16.  AFI - This Time Imperfect
echo 17.  Green Day - Holiday
echo 18.  Collective Soul - Where The River Flows
echo 19.  Blink 182 - Adam's Song
echo 20.  White Stripes - Seven Nation Army
echo 21.  Radiohead - Electioneering
echo 22.  P.O.D - Youth Of The Nation
echo 23.  Our Lady Peace - Is Anybody Home
echo 24.  Nickelback - How You Remind Me
echo 25.  Nickelback - Someday
echo 26.  Newsboys - Million Pieces
echo 27.  Newsboys - He Reigns
echo 28.  Newsboys - Joy
echo.
SET Choice=
SET /P Choice=Type the Letter/Number/Symbol and Press Enter:
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,4%
IF /I '%Choice%'==' ' GOTO  
IF /I '%Choice%'=='!' GOTO !
IF /I '%Choice%'=='X' GOTO X
IF /I '%Choice%'=='MC' GOTO MC
IF /I '%Choice%'=='M' GOTO M
IF /I '%Choice%'=='*' GOTO *
IF /I '%Choice%'=='1' GOTO 1
IF /I '%Choice%'=='2' GOTO 2
IF /I '%Choice%'=='3' GOTO 3
IF /I '%Choice%'=='4' GOTO 4
IF /I '%Choice%'=='5' GOTO 5
IF /I '%Choice%'=='6' GOTO 6
IF /I '%Choice%'=='7' GOTO 7
IF /I '%Choice%'=='8' GOTO 8
IF /I '%Choice%'=='9' GOTO 9
IF /I '%Choice%'=='10' GOTO 10
IF /I '%Choice%'=='11' GOTO 11
IF /I '%Choice%'=='12' GOTO 12
IF /I '%Choice%'=='13' GOTO 13
IF /I '%Choice%'=='14' GOTO 14
IF /I '%Choice%'=='15' GOTO 15
IF /I '%Choice%'=='16' GOTO 16
IF /I '%Choice%'=='17' GOTO 17
IF /I '%Choice%'=='18' GOTO 18
IF /I '%Choice%'=='19' GOTO 19
IF /I '%Choice%'=='20' GOTO 20
IF /I '%Choice%'=='21' GOTO 21
IF /I '%Choice%'=='22' GOTO 22
IF /I '%Choice%'=='23' GOTO 23
IF /I '%Choice%'=='24' GOTO 24
IF /I '%Choice%'=='25' GOTO 25
IF /I '%Choice%'=='26' GOTO 26
IF /I '%Choice%'=='27' GOTO 27
IF /I '%Choice%'=='28' GOTO 28

:
ECHO Entering Nothing is NOT Valid
GOTO MUSIC

:!
start mplayer2.exe Playlist.m3u
GOTO MUSIC

:X
TASKKILL /F /IM MPLAYER2.EXE
GOTO MUSIC

:M
mode con cols=76 lines=23
TITLE Windows XP SP2 - Unattended Installation
GOTO MENU

:*
Exit

:1
start mplayer2.exe podintro7it.mp3
GOTO MUSIC

:2
start mplayer2.exe POAeternal.mp3
GOTO MUSIC

:3
start mplayer2.exe LFOF.mp3
GOTO MUSIC

:4
start mplayer2.exe SweetWorld.mp3
GOTO MUSIC

:5
start mplayer2.exe MSUN.mp3
GOTO MUSIC

:6
start mplayer2.exe Flower.mp3
GOTO MUSIC

:7
start mplayer2.exe LPS.mp3
GOTO MUSIC

:8
start mplayer2.exe LPCFTI.mp3
GOTO MUSIC

:9
start mplayer2.exe DPDF.mp3
GOTO MUSIC

:10
start mplayer2.exe DPATW.mp3
GOTO MUSIC

:11
start mplayer2.exe TheWell.mp3
GOTO MUSIC

:12
start mplayer2.exe NFS3R3.mp3
GOTO MUSIC

:13
start mplayer2.exe NFS4QS.mp3
GOTO MUSIC

:14
start mplayer2.exe NFS4PS.mp3
GOTO MUSIC

:15
start mplayer2.exe SECHT.mp3
GOTO MUSIC

:16
start mplayer2.exe Imperfect.mp3
GOTO MUSIC

:17
start mplayer2.exe Holiday.mp3
GOTO MUSIC

:18
start mplayer2.exe CSWTRF.mp3
GOTO MUSIC

:19
start mplayer2.exe B182AS.mp3
GOTO MUSIC

:20
start mplayer2.exe WSSNA.mp3
GOTO MUSIC

:21
start mplayer2.exe Electioneering.mp3
GOTO MUSIC

:22
start mplayer2.exe PODYOTN.mp3
GOTO MUSIC

:23
start mplayer2.exe OLPIAH.mp3
GOTO MUSIC

:24
start mplayer2.exe NBMe.mp3
GOTO MUSIC

:25
start mplayer2.exe NBSD.mp3
GOTO MUSIC

:26
start mplayer2.exe MillionPieces.mp3
GOTO MUSIC

:27
start mplayer2.exe NBHR.mp3
GOTO MUSIC

:28
start mplayer2.exe Joy.mp3
GOTO MUSIC

:*
EXIT

:MC
cls
@echo off
TITLE Color Selection
mode con cols=50 lines=13

ECHO Color Options:
ECHO [Backround - Foreground]
ECHO.
ECHO 1 - White and Black
ECHO 2 - Black and Green
ECHO 3 - Light Blue and White
ECHO _________________________________________________
ECHO Other Options:
ECHO.
ECHO M - Return to Music
ECHO * - Close Window
ECHO _________________________________________________
SET Choice=
SET /P Choice=Type the Letter/Number/Symbol and Press Enter:
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,4%
IF /I '%Choice%'=='1' GOTO 1
IF /I '%Choice%'=='2' GOTO 2
IF /I '%Choice%'=='3' GOTO 3
IF /I '%Choice%'=='M' GOTO M
IF /I '%Choice%'=='*' GOTO *
IF /I '%Choice%'=='cmd' GOTO cmd

:
ECHO Entering Nothing is NOT Valid

:1
color F0
GOTO MC

:2
COLOR 0A
GOTO MC

:3
COLOR 9F
GOTO MC

:M
mode con cols=50 lines=38
GOTO MUSIC

:*
EXIT

:cmd
cmd

:C
cls
@echo off
TITLE Color Selection
mode con cols=50 lines=13

ECHO Color Options:
ECHO [Backround - Foreground]
ECHO.
ECHO 1 - White and Black
ECHO 2 - Black and Green
ECHO 3 - Light Blue and White
ECHO _________________________________________________
ECHO Other Options:
ECHO.
ECHO M - Return to Menu
ECHO * - Close Window
ECHO _________________________________________________
SET Choice=
SET /P Choice=Type the Letter/Number/Symbol and Press Enter:
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,4%
IF /I '%Choice%'=='1' GOTO 1
IF /I '%Choice%'=='2' GOTO 2
IF /I '%Choice%'=='3' GOTO 3
IF /I '%Choice%'=='M' GOTO M
IF /I '%Choice%'=='*' GOTO *
IF /I '%Choice%'=='cmd' GOTO cmd

:
ECHO Entering Nothing is NOT Valid

:1
color F0
GOTO C

:2
COLOR 0A
GOTO C

:3
COLOR 9F
GOTO C

:M
mode con cols=76 lines=23
TITLE Windows XP SP2 - Unattended Installation
GOTO MENU

:*
EXIT

:cmd
cmd

my batch script is located here in the unattended cd:

music2tb.jpg

this is what i had put in my winnt.sif:

[GuiUnattended]
DetachedProgram="%systemdrive%\install\music\prepare.cmd"

Link to comment
Share on other sites

ok ill try that. thanks!

but shouldn't the cmd load even though mplayer.exe is not in the folder?

and shouldnt it already work because mplayer2.exe is already in the system folder.

ive read some other posts and it said that detachedprogram wouldnt be able to open cmd files

but it would be able to open exe files

i ttryed converting the cmd file to exe by using quick batch file compiler and it still didnt work!

Help Me! :P

does "DetachedProgram" really disallow cmd files?

also could more people help me?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...