mediapla Posted October 31, 2005 Posted October 31, 2005 At the momemt i run a little animation film during setup, started with detachedprograms in winnt.sif. But i habe no sound in this phase of setup. At T12 i play some MP3 files,runs fine, but is it possible to have sound at t32 or earlier ?
cluberti Posted November 3, 2005 Posted November 3, 2005 No - at least not until after all of your drivers have been installed at around the T-28 stage, I think. You'd have to play around a bit after the "Installing Devices" step finishes.
-I- Posted November 6, 2005 Posted November 6, 2005 or if you can set dosinitated to 'yes' you migh be able to load a dos based low resolution 'generic' sound-driver - but i shure as hell wont garantee anything ... ive never tryed before.
mediapla Posted December 20, 2005 Author Posted December 20, 2005 Problem solved, Sound is normally possible at T32, tested with Realtek/CMI-HDA, some AC97 soundchips like Soundmax,Via Vinyl and Realtek. .. Now i play a little animation film at T39 without sound(detachedprograms) and at T32 it starts playing random a mp3 File to the reboot. After the reboot of the GUI setup it also plays random mp3 soundfiles at GUIRunOnce... Multimedia Setup.... Thanks to all here and to the German Site www.windows-unattended.de for some good ideas !!!
muiz Posted December 20, 2005 Posted December 20, 2005 Problem solved, Sound is normally possible at T32, tested with Realtek/CMI-HDA, some AC97 soundchips like Soundmax,Via Vinyl and Realtek. .. Now i play a little animation film at T39 without sound(detachedprograms) and at T32 it starts playing random a mp3 File to the reboot. After the reboot of the GUI setup it also plays random mp3 soundfiles at GUIRunOnce... Multimedia Setup.... Thanks to all here and to the German Site www.windows-unattended.de for some good ideas !!!Would you tell us how you did it ?
mediapla Posted December 21, 2005 Author Posted December 21, 2005 Why not ? Im sure , something can be better, im just a beginner...read somthing here and there, tried manyconfigurations...and my english is not the best, i hope you understandI use detached Programs in winnt.sif to start a cmd-File. @echo off%systemdrive%\cmdow @ /hidFOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\XPF2\$OEM$\$1\detached.cmd SET CDROM=%%dif exist %CDROM%\film.exe copy %CDROM%\film.exe %systemdrive%\ %systemdrive%\pssuspend.exe setup.exe (pause Windows setup)start /wait %CDROM%\d.exe -x -y -o%systemdrive% (extract packed drivers)%systemdrive%\SDP.exe %systemdrive%\D (systemdevicepath - i dont know if i need it really )start %Systemdrive%\WDSP.exe (Driversigning - i dont know if i really need it)%systemdrive%\pssuspend.exe -r setup.exe (setup runs )start %systemdrive%\film.exe ( starts the animation film - is a bink video wmv2exe converted file)md %systemdrive%\sysprepmd %systemdrive%\sysprep\mp3md %systemdrive%\sysprep\exerem if exist %cdrom%\$OEM$\$$ xcopy %cdrom%\$OEM$\$$ %systemdrive%\windows /e/h/r/y/z/c >nulif exist %cdrom%\$OEM$\C xcopy %cdrom%\$OEM$\C\sysprep %systemdrive%\sysprep\ /e/h/r/y/z/c >nulif exist %cdrom%\$OEM$\TOOLS xcopy %cdrom%\$OEM$\tools %systemdrive%\windows\tools\ /e/h/r/y/z/c >nul if exist %cdrom%\$OEM$\ADDON xcopy %cdrom%\$OEM$\ADDON %systemdrive%\ADDON\ /e/h/r/y/z/c >nulif exist %cdrom%\$OEM$\C\sysprep\EXE xcopy %cdrom%\$OEM$\C\sysprep\EXE %systemdrive%\sysprep\EXE /e/h/r/y/z/c >nulif exist %cdrom%\$OEM$\C\sysprep\MP3 xcopy %cdrom%\$OEM$\C\sysprep\MP3 %systemdrive%\sysprep\MP3 /e/h/r/y/z/c >nul (the last lines copys some dirs/files to HDD. Normally i copied it at T12, but this slows down the mp3 sound, so i found the way to copy it at this point)SET MIN=1 (this is a batch file part to get a random mp3 file - a mp32exe converted file - 1.....9, should not play even the same sound at every installation)SET MAX=9SET /a Zufall=MIN+(MAX-MIN+1)*%random%/32768if "%zufall%" EQU "1" goto 1 if "%zufall%" EQU "2" goto 2if "%zufall%" EQU "3" goto 3if "%zufall%" EQU "4" goto 4if "%zufall%" EQU "5" goto 5if "%zufall%" EQU "6" goto 6if "%zufall%" EQU "7" goto 7if "%zufall%" EQU "8" goto 8if "%zufall%" EQU "9" goto 9goto end:1copy %systemdrive%\sysprep\exe\1.exe %systemdrive%\a.exe /ygoto end:2copy %systemdrive%\sysprep\exe\2.exe %systemdrive%\a.exe /Ygoto end:3copy %systemdrive%\sysprep\exe\3.exe %systemdrive%\a.exe /ygoto end:4copy %systemdrive%\sysprep\exe\4.exe %systemdrive%\a.exe /Ygoto end:5copy %systemdrive%\sysprep\exe\5.exe %systemdrive%\a.exe /Ygoto end:6copy %systemdrive%\sysprep\exe\6.exe %systemdrive%\a.exe /Ygoto end:7copy %systemdrive%\sysprep\exe\7.exe %systemdrive%\a.exe /Ygoto end:8copy %systemdrive%\sysprep\exe\8.exe %systemdrive%\a.exe /Ygoto end:9copy %systemdrive%\sysprep\exe\9.exe %systemdrive%\a.exe /Ygoto end:endstart %systemdrive%\filmrun.exe (this line starts the AUTOIT Script, looks for T32)EXITThis is the AutoItScript (Special thanks to the German Windows-unattended Forum)$CD = DriveGetDrive("CDROM") (normally i need no CD dedection...For $I=1 to Number($CD[0])$pa = $CD[$I] & "\d.exe"If FileExists($pa) Then$instDrv=$CD[$I]EndifNextAutoItSetOption("WinDetectHiddenText", 1)AutoItSetOption("MouseCoordMode", 0)AutoItSetOption("TrayIconHide", 1)Winwait("Windows XP Professional Setup", "Netzwerkkomponenten") (looks for T32,Driver Installation is ready)sleep(25000)SoundSetWaveVolume(70)Sleep(1000)FileDelete( & @ScriptDir"\film.exe")Run("a.exe") (-THIS STARTS THE MP3 File, is a MP32EXE converted file)ProcessSetPriority("a.exe", 4)WinWait("a.exe","Previous") ControlClick("a.exe","Previous","Button7")ControlClick("a.exe","Previous","Button9")if WinExists ("Windows XP Professional Setup", "Installation abgeschlossen in ungefähr 1 Minute") thenControlClick("a.exe", "Exit EXEmp3","Button10")WinKill("a.exe")EndIfexitThe last 5 lines are not functional, i have not found a "Windows text" for this moment. Normally no problem, but if a SoundMax Soundchip is used, Setup try to reboot --- BSOD. So i Thougt, i can kill the playing file before windows setup reboots, because if no sound - no BSODThen GUIRunOnce starts a vbs-Script for RANDOM MP3 File selection (Had this function earlier than the cmd-batch part above , i dont wanna change my BOOT DVD. First i would use the script at T39, but it doennt run at this time) Set fs = CreateObject( _ "Scripting.FileSystemObject") Set dict = CreateObject( _ "Scripting.Dictionary") mp3 = _ "c:\sysprep\mp3" desktop = "C:\sysprep\oem" extension = "mp3" default = "test.mp3" If Not fs.FolderExists(mp3) Then ' Ordner existiert nicht MsgBox "Ordner " & mp3 & _ " existiert nicht!", vbExclamation WScript.Quit End If ' alle Dateien im Ordner untersuchen cc = 0 Set MP3Sound = _ fs.GetFolder(mp3).files For Each file In MP3Sound ' Dateityp ermitteln ext = lcase(fs.GetExtensionName( _ file.name)) ' ist es ein MP3-File? If ext = extension Then ' ja, ins Dictionary einfügen dict.Add cc, file.path cc = cc + 1 End If Next If cc > 0 Then ' eins der gesammelten mp3s aussuchen: Randomize zufall = Fix(Rnd * dict.Count) ' MP3 aktivieren fs.copyfile dict(zufall), desktop & _ "\" & default Else MsgBox "Keine " & ucase(extension) & _ "-MP3s im Ordner " & mp3 & "." End Ifthen the mediaPlayer Classic plays the selected files
mediapla Posted April 13, 2006 Author Posted April 13, 2006 in winnt.sif:[GuiUnattended] DetachedProgram=cmd.exe Arguments="/C START %systemdrive%\detached.cmd"
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now