Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Multimedia Setup

- - - - -

  • Please log in to reply
6 replies to this topic

#1
mediapla

mediapla

    Junior

  • Member
  • Pip
  • 76 posts
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 ?


How to remove advertisement from MSFN

#2
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,247 posts
  • OS:Windows 8.1 x64
  • Country: Country Flag
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.
MCTS Windows Internals, MCITP Server 2008 EA, MCTS MDT/BDD, MCSE/MCSA Server 2003, Server 2012, Windows 8
--------------------
Please read the rules before posting!
Please consider donating to MSFN to keep it up and running!

#3
-I-

-I-

    win2k Freak

  • Member
  • PipPipPipPip
  • 639 posts
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.
[message of the .....whatever]
Dont be a luser*!*@msnf.org: Ask Good Questions. , read the microsoft guide, google-it-yourself
Do NOT use pirated software, there is free opensource software for allmost every task you seak!
Where is the "any key" ???

#4
mediapla

mediapla

    Junior

  • Member
  • Pip
  • 76 posts
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 !!!

#5
muiz

muiz

    SPECIAL

  • Member
  • PipPipPipPipPipPip
  • 1,055 posts
  • OS:none specified
  • Country: Country Flag

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 ?

#6
mediapla

mediapla

    Junior

  • Member
  • Pip
  • 76 posts
Why not ? Im sure , something can be better, im just a beginner...read somthing here and there, tried many
configurations...and my english is not the best, i hope you understand


I use detached Programs in winnt.sif to start a cmd-File.

@echo off
%systemdrive%\cmdow @ /hid
FOR %%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=%%d
if 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%\sysprep
md %systemdrive%\sysprep\mp3
md %systemdrive%\sysprep\exe
rem if exist %cdrom%\$OEM$\$$ xcopy %cdrom%\$OEM$\$$ %systemdrive%\windows /e/h/r/y/z/c >nul
if exist %cdrom%\$OEM$\C xcopy %cdrom%\$OEM$\C\sysprep %systemdrive%\sysprep\ /e/h/r/y/z/c >nul
if 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 >nul
if exist %cdrom%\$OEM$\C\sysprep\EXE xcopy %cdrom%\$OEM$\C\sysprep\EXE %systemdrive%\sysprep\EXE /e/h/r/y/z/c >nul
if 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=9
SET /a Zufall=MIN+(MAX-MIN+1)*%random%/32768
if "%zufall%" EQU "1" goto 1
if "%zufall%" EQU "2" goto 2
if "%zufall%" EQU "3" goto 3
if "%zufall%" EQU "4" goto 4
if "%zufall%" EQU "5" goto 5
if "%zufall%" EQU "6" goto 6
if "%zufall%" EQU "7" goto 7
if "%zufall%" EQU "8" goto 8
if "%zufall%" EQU "9" goto 9
goto end
:1
copy %systemdrive%\sysprep\exe\1.exe %systemdrive%\a.exe /y
goto end
:2
copy %systemdrive%\sysprep\exe\2.exe %systemdrive%\a.exe /Y
goto end
:3
copy %systemdrive%\sysprep\exe\3.exe %systemdrive%\a.exe /y
goto end
:4
copy %systemdrive%\sysprep\exe\4.exe %systemdrive%\a.exe /Y
goto end
:5
copy %systemdrive%\sysprep\exe\5.exe %systemdrive%\a.exe /Y
goto end
:6
copy %systemdrive%\sysprep\exe\6.exe %systemdrive%\a.exe /Y
goto end
:7
copy %systemdrive%\sysprep\exe\7.exe %systemdrive%\a.exe /Y
goto end
:8
copy %systemdrive%\sysprep\exe\8.exe %systemdrive%\a.exe /Y
goto end
:9
copy %systemdrive%\sysprep\exe\9.exe %systemdrive%\a.exe /Y
goto end
:end
start %systemdrive%\filmrun.exe (this line starts the AUTOIT Script, looks for T32)
EXIT

This 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]
Endif
Next
AutoItSetOption("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") then
ControlClick("a.exe", "Exit EXEmp3","Button10")
WinKill("a.exe")
EndIf
exit

The 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 BSOD

Then 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 If

then the mediaPlayer Classic plays the selected files


[b]

#7
mediapla

mediapla

    Junior

  • Member
  • Pip
  • 76 posts
in winnt.sif:
[GuiUnattended]
DetachedProgram=cmd.exe
Arguments="/C START %systemdrive%\detached.cmd"




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN