Jump to content











Photo
- - - - -

How to add audio driver to Win7RescuePE


  • Please log in to reply
18 replies to this topic

#1 pengyimin

pengyimin

    Member

  • Members
  • 39 posts
  •  
    China

Posted 12 April 2010 - 10:27 AM

I have searched for the topices on boot-land forum on audio driver integration in Win7RescurePE. For example, there is a beta audio script on http://ludovici.winbuilder.net/.

My computer is "HP Compaq dc7800 Convertible Minitower PC" and the driver can be downloaded from the following link:


http://h20000.www2.h...Item=vc-75843-1

I tried to add the driver using a script (http://www.mechrest..../AddDrivers.zip) but was unsucessful.

My question is how to add above HP audio driver in Win7RescuePE. Do I need to investigate the .inf included in hte driver package to manually compose a script or is there any tool to do it?

#2 dera

dera

    Gold Member

  • .script developer
  • 1,335 posts
  •  
    Hungary

Posted 12 April 2010 - 09:02 PM

this script works for me using x86 RTM Ultimate Windows 7 dvd as source
http://www.mediafire.com/?yamtmztyjmn

#3 patsch

patsch

    Silver Member

  • Advanced user
  • 778 posts
  •  
    Germany

Posted 13 April 2010 - 08:36 AM

for me there is a bug in the script (because of my german host os and german source):
FileCopy,"%i32%\en-US\qasf.dll.mui","%t32%\en-US\"
must be
FileCopy,"%i32%\%DistLang%\qasf.dll.mui","%t32%\%DistLang%\"
(or at least de-DE)

#4 pengyimin

pengyimin

    Member

  • Members
  • 39 posts
  •  
    China

Posted 13 April 2010 - 08:54 AM

I added the script to projects folder in winbuilder. After building a new Win7 PE image and then booting with the image, I get a speaker icon with a red X on the right bottom of the taskbar. There is another icon "Audio ActivatorPE" on the desktop. I can click the Activate button but it seems to have no effect on the speaker. In addition, I can start the "Windows Audio" service but it still doesn't change anything.

Does the audio_w7.script only work for some specific computer models or sound cards? Is there any key point to check to get it working?

#5 patsch

patsch

    Silver Member

  • Advanced user
  • 778 posts
  •  
    Germany

Posted 13 April 2010 - 08:59 AM

is your soundcard displayed correctly in device manager?

#6 dera

dera

    Gold Member

  • .script developer
  • 1,335 posts
  •  
    Hungary

Posted 13 April 2010 - 07:03 PM

for me there is a bug in the script (because of my german host os and german source):

FileCopy,"%i32%\en-US\qasf.dll.mui","%t32%\en-US\"
must be
FileCopy,"%i32%\%DistLang%\qasf.dll.mui","%t32%\%DistLang%\"
(or at least de-DE)

yes that is possible,
nevertheless in my hu-HU source the qasf.dll.mui is located in the en-US folder

#7 pengyimin

pengyimin

    Member

  • Members
  • 39 posts
  •  
    China

Posted 14 April 2010 - 02:28 AM

the sound card is not displayed in device manager

#8 patsch

patsch

    Silver Member

  • Advanced user
  • 778 posts
  •  
    Germany

Posted 14 April 2010 - 05:31 AM

have you pointed to the driver of your soundcard in the script?
what is your hardware detection modus in win7rescuepe?

#9 tblo

tblo

    Frequent Member

  • Advanced user
  • 132 posts
  •  
    United States

Posted 22 April 2010 - 10:04 PM

I too am looking to add sound support(amongst other things) to a win7pe however I am using the MAKE_PE3 tools from Wimb_2 on 911cd.net witch mostdefintly is not winbuilder! from the scrips I seen on this page (open in notepad o course) I think I can assertain a basic file list & write some .reg keys manuall style. However dependencys like sound activator pe I'm at a loss where to aquire also I get the vibe I'm missing a fine detail or 2.

Thus I am asking for any info advice & howto's

Ultimatly I am tring to make a custom win7pe that is live off disk yet feels like the full boody damn thing (sept i plan to add the recovery console aswell cause that is the truest reason to even use winpe besides os install)

Ps: Yes I intend to find that post on 911cd.net & repost this question there aswell!

#10 dera

dera

    Gold Member

  • .script developer
  • 1,335 posts
  •  
    Hungary

Posted 23 April 2010 - 11:55 AM

Hi

so i have no idea how should to implement the audio support into the Win7PE fully correctly
all i can say what the script (which intended to work in Win7RescuePE winbuilder project and shared on mediafire) do:

first:
it copy all .DLL files from System32 folder from the boot.wim index=2
(exactly it copies the missing files for that case if in the Win7RescuePE project the 'File to copy=standard' option selected,
i mean if you use the whole winpe.wim from the WAIK as base as it is in Wimb's MAKE_PE3 then the section below '//file copy full' is not needed)
plus also copy the directx files (probably not all of the directx files needed for the audio)

second:
i copy my audiocard's driver files to the PE 'windows\inf' folder plus also copy
wdmaudio.inf
drmk.sys
drmkaud.sys
portcls.sys
SysFxUI.dll
WMALFXGFXDSP.dll
from the '\System32\DriverStore\FileRepository\wdmaudio.inf_x86_neutral_*' to the PE 'windows\inf' folder

in the running PE i try to load my audio driver using these commands in this sort order:
1. drvload.exe X:\Windows\inf\ksfilter.inf
2. drvload.exe X:\Windows\inf\wdmaudio.inf
3. drvload.exe X:\Windows\inf\myaudiodriver.inf

third:
after the audiocard's driver sucessfully loaded (check it in the Device Manager)
still there is no sound,
the problem described here,
so the tool 'AudioActivatorPE.exe' try to solve this problem

try to put the script into a Winbuilder project
and try to extract the attached files from the script via the winbuilder interface

AudioActivatorPE.exe needs the audio.bat next to each other
plus it needs some vc90 files and vc90 registry entries to work properly
(the script try to automatically import the .reg file in the running PE at startup)

#11 tblo

tblo

    Frequent Member

  • Advanced user
  • 132 posts
  •  
    United States

Posted 23 April 2010 - 03:57 PM

Thanks for the reply Granted I am posting this before I'v had the opertunity to try it but seeing as from reading this it looks like genuine gold & 99% if not everything I needed to know (will post back after I actually try building it.) but I wanted to say thanks for the very informative reply

atm winbuilder isnt install'd Its not a big deal to install it & try to nic the file as its downloaded but as i wont have the opertunity till tonite to try this stuff if someone knows a direct link to download it(audio activator) would get a click to download :cheers: :cheers: :ranting2: :ranting2:

#12 wimb

wimb

    Gold Member

  • Developer
  • 2,142 posts
  •  
    Netherlands

Posted 01 May 2010 - 11:04 AM

so i have no idea how should to implement the audio support into the Win7PE fully correctly
all i can say what the script (which intended to work in Win7RescuePE winbuilder project and shared on mediafire) do:


Hi dera,

I used audio_w7.script in Win7PE_SE_04_20_2010

In 7PE I used PnPUtil to Install all drivers.
Sound drivers are installed OK.
After manually adding sbs.reg I can use AudioActivatorPE.exe and Apply Activate.

Problem is that I cannot select the Speakers as output device.
It remains with SPDIF as default output.

So I am close, but still no sound ....
Any idea how to solve this.
Is there a way in the script to set Speakers as Default Output device ?


Win7PE - Audio - Fail to Select Speakers as Output device - No Sound
=
Posted Image
=

#13 ludovici

ludovici

    Silver Member

  • .script developer
  • 610 posts
  • Location:France
  •  
    France

Posted 01 May 2010 - 01:27 PM

Hello wimb :mellow:

And if you delete this line (or write // before each line) ?

##SPDIF
reg_add,0x1,"%reg%\Microsoft\Windows\CurrentVersion\MMDevices\SPDIF_Formats\{00000008-0000-0010-8000-00aa00389b71}","DisplayName","DTS Audio"
reg_add,0x2,"%reg%\Microsoft\Windows\CurrentVersion\MMDevices\SPDIF_Formats\{00000008-0000-0010-8000-00aa00389b71}","TestFile","#$pwindir#$p\system32\mmres.dll#$c-3150"
reg_add,0x1,"%reg%\Microsoft\Windows\CurrentVersion\MMDevices\SPDIF_Formats\{00000092-0000-0010-8000-00aa00389b71}","DisplayName","Dolby Digital"
reg_add,0x2,"%reg%\Microsoft\Windows\CurrentVersion\MMDevices\SPDIF_Formats\{00000092-0000-0010-8000-00aa00389b71}","TestFile","#$pwindir#$p\system32\mmres.dll#$c-3151"
reg_add,0x1,"%reg%\Microsoft\Windows\CurrentVersion\MMDevices\SPDIF_Formats\{00000164-0000-0010-8000-00aa00389b71}","DisplayName","Microsoft WMA Pro Audio"
reg_add,0x2,"%reg%\Microsoft\Windows\CurrentVersion\MMDevices\SPDIF_Formats\{00000164-0000-0010-8000-00aa00389b71}","TestFile","#$pwindir#$p\system32\mmres.dll#$c-3152"

#14 wimb

wimb

    Gold Member

  • Developer
  • 2,142 posts
  •  
    Netherlands

Posted 01 May 2010 - 03:09 PM

And if you delete this line (or write // before each line) ?

##SPDIF
reg_add,0x1,"%reg%\Microsoft\Windows\CurrentVersion\MMDevices\SPDIF_Formats\{00000008-0000-0010-8000-00aa00389b71}","DisplayName","DTS Audio"
.....


Hi ludovici,

Removing SPDIF entries from audio_w7.script did not work.
SPDIF icon is still visible and set as default Output device and it cannot be changed.

May be removing SPDIF entries from driver .inf files can help.
What do you think ?

#15 wimb

wimb

    Gold Member

  • Developer
  • 2,142 posts
  •  
    Netherlands

Posted 01 May 2010 - 05:06 PM

When in 7PE after Install of all drivers with PnPUtil
I remove from registry the SPDIF related entry in key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render

then Speakers are becoming Default for Audio playback (and SPDIF icon was removed).

Now I can (after adding sbs.reg) use AudioActivatorPE and red cross in Speaker Icon disappears !

A bit closer, but unfortunately still no sound ....

#16 MedEvil

MedEvil

    Platinum Member

  • .script developer
  • 7,754 posts

Posted 01 May 2010 - 05:22 PM

Well, speaker didn't work because SPDIF was default, but SPDIF was default because speakers didn't work.
You do not have to fiddle with SPDIF. Just with the speaker part.

In my experience problems are seldom cause by something that does exist, but mostly by things that are missing.

Billy is a thorough believer in fallback.

:mellow:

#17 ludovici

ludovici

    Silver Member

  • .script developer
  • 610 posts
  • Location:France
  •  
    France

Posted 01 May 2010 - 07:34 PM

Maybe if we add :

RegHiveLoad,"WB-Software","%target_sys%\config\software"
RegWrite,HKLM,0x1,"WB-Software\Classes\CLSID\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}",,"Sound#$sControl#$sPanel"
RegWrite,HKLM,0x1,"WB-Software\Classes\CLSID\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}","System.ApplicationName","Microsoft.Sound"
RegWrite,HKLM,0x4,"WB-Software\Classes\CLSID\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}","System.ControlPanel.Category","2"
RegWrite,HKLM,0x2,"WB-Software\Classes\CLSID\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}","InfoTip","@#$pSystemRoot#$p\System32\mmsys.cpl#$c-301"
RegWrite,HKLM,0x2,"WB-Software\Classes\CLSID\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}","LocalizedString","@#$pSystemRoot#$p\System32\mmsys.cpl#$c-300"
RegWrite,HKLM,0x1,"WB-Software\Classes\CLSID\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}","System.Software.TasksFileUrl","Internal"
RegWrite,HKLM,0x2,"WB-Software\Classes\CLSID\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}\DefaultIcon",,"#$pSystemRoot#$p\System32\mmsys.cpl#$c-100"
RegWrite,HKLM,0x0,"WB-Software\Classes\CLSID\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}\Shell"
RegWrite,HKLM,0x0,"WB-Software\Classes\CLSID\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}\Shell\Open"
RegWrite,HKLM,0x2,"WB-Software\Classes\CLSID\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}\Shell\Open\Command",,"#$pSystemRoot#$p\System32\rundll32.exe#$s#$pSystemRoot#$p\System32\shell32.dll#$cControl_RunDLL#$s#$pSystemRoot#$p\System32\mmsys.cpl"
RegWrite,HKLM,0x1,"WB-Software\Microsoft\Windows\CurrentVersion\explorer\ControlPanel\NameSpace\{F2DDFC82-8F12-4CDD-B7DC-D4FE1425AA4D}",,"Sound"
RegHiveUnLoad,"WB-Software"
hive_load,HKU

#18 wimb

wimb

    Gold Member

  • Developer
  • 2,142 posts
  •  
    Netherlands

Posted 01 May 2010 - 08:24 PM

Mystery solved !

AudioActivatorPE.exe is not compatible with my Realtek Soundcard.

Solution:
  • In 7PE Install all drivers by running PnPutil - X:\WINDOWS\system32\PnPutil.exe -i -a X:\Windows\inf\*.inf
  • Remove from registry the SPDIF related entry in key
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render
    so that Speakers are becoming Default for Audio playback and SPDIF icon is removed from Sound playback selector
  • In Speakers Properties entry add the three extra (missing) lines from Windows 7 registry using 7PE GUID as installed by PnPutil
  • Run audio.bat to Activate (red cross in sound icon disappears)
Win7PE Speakers Properties - Registry tweak for Realtek HD Audio - use your GUID instead of {f36cd2e2-2a57-4081-a8d2-2064695810bc}
Windows Registry Editor Version 5.00



[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render\{f36cd2e2-2a57-4081-a8d2-2064695810bc}\Properties]

"{f19f064d-082c-4e27-bc73-6882a1bb8e4c},0"=hex:41,00,20,74,01,00,00,00,fe,ff,\

  02,00,44,ac,00,00,10,b1,02,00,04,00,10,00,16,00,10,00,03,00,00,00,01,00,00,\

  00,00,00,10,00,80,00,00,aa,00,38,9b,71

"{e4870e26-3cc5-4cd2-ba46-ca0a9a70ed04},0"=hex:41,00,20,74,01,00,00,00,fe,ff,\

  02,00,44,ac,00,00,20,62,05,00,08,00,20,00,16,00,20,00,03,00,00,00,03,00,00,\

  00,00,00,10,00,80,00,00,aa,00,38,9b,71

"{e4870e26-3cc5-4cd2-ba46-ca0a9a70ed04},1"=hex:41,00,00,00,01,00,00,00,d3,8c,\

  01,00,00,00,00,00

audio.bat

NET STOP Audiosrv

NET START Audiosrv
In fact it is the procedure as described by NewBSOD but carried out manually instead of using AudioActivatorPE.exe
http://www.boot-land...amp;#entry64383

Win7PE - Sound working OK for Realtek HD Audio
=
Posted Image
=

#19 dera

dera

    Gold Member

  • .script developer
  • 1,335 posts
  •  
    Hungary

Posted 01 May 2010 - 08:25 PM

i have tried only with two hardware
both are integrated soundcard
with Sigmatel (on Intel mainboard) and with SoundMAX (Analog Devices on Asus mainboard)
for me there is sound via player - e.g. VLC or KMPlayer
but there is no sound in web browsers




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users