Help - Search - Members - Calendar
Full Version: HOWTO: integrate wmp10 (with a lot of work)
MSFN Forums > Unattended Windows Discussion & Support > Application Installs
Pages: 1, 2

   
Google Internet Forums Unattended CD/DVD Guide
evilvoice
Ok, im only posting a new topic so people can look and find out how to do this...Ok lets start

First things to note...
you will end up with wmp10.cab being around 5mb, wmp10.in_ is not really worth noting the size, mp10setup.exe (I used 7zip) is around 9mb...grand total of around 14.5mb on cd...
current setup is wmp9 on cd is 16mb and mp10setup.exe (still using the same size as 7zip one) is 9mb...grand total of 25mb...
integrating wmp10 using mce files should be around 16mb (this assumes the file sizes havent changed)...grand total of 16mb
*BEST METHOD FOR SAVING SPACE = This method!!!

Also note that if you dont want wmp at all on your system, then you will save 14mb to 25mb depending on how you wanted to look at the situation...with least amount of work, youll save 25mb

Credits goto GreenMachine, nuhi, RyanVM, RaveRod

1. get mp10setup.exe
2. extract the contents of mp10setup.exe somewhere (mp10setup)
3. copy these files to someplace else (temp)
CODE
wmp.dll
wmplayer.exe
wmlaunch.exe
asferror.dll
wmpdxm.dll
custsat.dll
wmpasf.dll
wmpshell.dll
mpvis.dll
wmploc.dll
migrate.exe
wmerror.dll
unregmp2.exe
wmpband.dll
wmp10.chm
wmperr10.chm
wmplayer.adm
eula.txt
wmpenc.exe
wmpencen.dll
wmpsrcwp.dll
Audiodev.dll
wmp10.inf
l3codecp.acm

4. cab all those files into WMP10.cab (you can use makecab or cabarc)
5. copy mp10setup.exe and unregmp2.exe to your svcpack folder (unregmp2.exe is in the mp10setup folder)
6. delete mp10setup folder
7. edit svcpack.inf and include these lines
CODE
"mp10setup.exe /Q:A /c:""setup_wm.exe /Q /R:N /NoPID /DisallowSystemRestore /P:#e"""
"unregmp2.exe /Shortcuts /RegExts"

8. run nlite and ONLY select Components Removal...once there ONLY select Windows Media Player and Windows Media Codecs...let nlite remove them.
9. open dosnet.inf and add these lines under [Files]
CODE
d1,WMP10.cab
d1,WMP10.inf

10. open txtsetup.sif and add these lines under [SourceDisksFiles]
CODE
WMP10.inf = 1,,,,,,,20,0,0
WMP10.cab = 100,,,,,,_x,,3,3

11. delete temp folder
12. copy wmp10.in_ and wmp10.cab to your i386 folder
13. extract sysoc.in_ in your i386 folder, and add this line
CODE
WMP10=ocgen.dll,OcEntry,WMP10.inf,HIDE,7

14. makecab sysoc.inf (should end up with sysoc.in_)
15. delete sysoc.inf
16. Done

NOTES: If someone wants to host WMP10.cab, I can send the file to them, its about 4.98MB
Zhoerd
Looks great, but for one thing:

QUOTE
4. cab all those files into WMP10.cab (you can use makecab or cabarc)


How does one do that? If tried makecab, but I only get 1 file at a time in the cab fiie. I've tried googling, but nothing I can use. Can anyone tell me how?

If I've got it all, I'll post my findings.
evilvoice
save as "makecab(one cab file).bat"
CODE
@echo off

rem Compressing WMP10.cab
echo .Set Cabinet=on>> WMP10.ddf
echo .Set Compress=on>> WMP10.ddf
echo .Set CompressionType=LZX>> WMP10.ddf
echo .Set CompressionMemory=21>> WMP10.ddf
echo .Set CabinetNameTemplate=WMP10.cab>> WMP10.ddf
echo .Set MaxDiskSize=CDROM>> WMP10.ddf
echo .Set FolderSizeThreshold=5000000>> WMP10.ddf
for /f %%i in ('dir temp /b') do echo temp\%%i>> WMP10.ddf
makecab /f WMP10.ddf

move disk1\WMP10.cab WMP10.cab
del temp\*.* /q/f
del WMP10.ddf
del setup.inf
del setup.rpt
rd disk1


this is assuming that you copied the files to dir named temp and that the bat file is in the dir above that...I used WMP10 as my main dir...so this is my dir structure for this

WMP10
makecab.bat goes in this dir, mp10setup.exe should be in this dir also
-mp10setup
files extracted from mp10setup.exe
-temp
files to be put in cab file

(since some people may not know what "-" means, it means that mp10setup and temp dirs are in WMP10 dir)
Zhoerd
Sanks a lot biggrin.gif

Just make sure you don't call it Makecab.bat, else you'll get a loop biggrin.gif
jdeboeck
or... you could just get CD1 from Windows XP Media Center Edition 2005 which has WMP10 built in (instead of the usual WMP9 that comes with SP2)

or if you really wanted to slipstream WMP10 you should use the files from MCE 2005. This way the slipstream will even be signed and all smile.gif
evilvoice
well, since youre installing mp10setup.exe in svcpack.inf, its signed. and I thought someone tried converting mce2005 to xp and it didnt work
jdeboeck
MCE 2005 has WMP10 instead of WMP9. It has modified wmp.inf, wmfsdk.inf, txtsetup.sif, sysoc.inf and catfiles. And yes you can turn it into Pro if you replace that wellknown set of files (but that would be considered illegal)

evilvoice: do you need the files from mce 2005 to make a signed slipstream ?
evilvoice
i think ive got them somewhere...just noone really said if it worked or not. BTW, good to see youre back
1chaoticadult
Nice work evilvoice. I was wondering when someone would come up with a way to do this.
Zhoerd
Just to make the instruction complete. It doesn't say where WMP10.cab is supposed to be. It says to create it, but where?

Running test right now!
Zhoerd
Nothing happened sad.gif

Rerunning now...
Zhoerd
Could not open wmp10.inf??
evilvoice
what do you mean could not open wmp10.inf?

first post updated...wmp10.cab goes in i386 folder along with wmp10.in_
Zhoerd
That's what is says in setuperr.log after installation. If never actually been able to use a NLite modified I386 in my network install though. That might be it...
RogueSpear
This is semi-topic related, but could almost use a thread of it's own. I was looking through the file layout.inf and noticed there are entries in there that refer to WMP9. And I was wondering, would it be beneficial to eliminate for instance wmp.inf from this listing and replace it with wmp10.inf?

I also noticed that nLite does not seem to remove anything from this file. Heck, I'm not even 100% sure what the file is for. It looks like it's telling setup which subdirectories all the various files should be copied to, but I don't know if it does more than that.

So, I'm really curious if our unattended installs would go any faster or be more reliable perhaps, if we were to groom the layout.inf file to more accurately reflect our modifications.

EDIT: I forgot to mention that this guide worked out great for me the first time through. Very well put together and thank you for all the time it will save me!
evilvoice
im glad it worked out for one person newwink.gif. I tried to do most of the troubleshooting and make a complete howto without any "user error" problems...if this method does not work for you, I honestly would have no idea why it doesnt...I have a nlited cd that I took out more than just wmp and it still works (though im now having a problem with something else...not sure if it is related)...I also use Pyrons method for drivers with Bashrats drivers and serialzs presetup.cmd...Im only saying this to show that almost no matter what youve done with your cd, this method should work.

about layout.inf...im not 100% sure what depends on what but I believe txtsetup.sif tells windows what to install and it look at layout.inf to determine what to do with the file (in the sense as to whether the file is extracted or compressed)...but dont quote me on that...I believe if the file is not in txtsetup.sif, then setup wont query layout.inf...I know nlite does not remove entries from layout.inf...but I also believe that there is some security check on the file or something as to why noone has been able to edit it yet.
Metzen
QUOTE (jdeboeck @ Oct 20 2004, 04:38 AM)
And yes you can turn it into Pro if you replace that wellknown set of files (but that would be considered illegal)

You turn it into Pro by entering a Windows XP Professional product key. No messing of files is necessary.

Windows XP checks the product key you enter on your Windows MCE media -> if it's a MCE key, it installs MCE, if it's Pro, it installs Pro.
edmoncu
i was wondering, how much space can one save in doing this method than by running the wmp10 installer via svcpack.inf?

since the files removed by nlite is replaced by the 4.98mb wmp10 cab.
RyanVM
QUOTE (jdeboeck @ Oct 20 2004, 07:33 AM)
or... you could just get CD1 from Windows XP Media Center Edition 2005 which has WMP10 built in (instead of the usual WMP9 that comes with SP2)

or if you really wanted to slipstream WMP10 you should use the files from MCE 2005. This way the slipstream will even be signed and all smile.gif

HE LIVES!!!! tongue.gif
RyanVM
QUOTE (RogueSpear @ Oct 21 2004, 11:07 AM)
This is semi-topic related, but could almost use a thread of it's own.  I was looking through the file layout.inf and noticed there are entries in there that refer to WMP9.  And I was wondering, would it be beneficial to eliminate for instance wmp.inf from this listing and replace it with wmp10.inf?

I also noticed that nLite does not seem to remove anything from this file.  Heck, I'm not even 100% sure what the file is for.  It looks like it's telling setup which subdirectories all the various files should be copied to, but I don't know if it does more than that.

So, I'm really curious if our unattended installs would go any faster or be more reliable perhaps, if we were to groom the layout.inf file to more accurately reflect our modifications.

EDIT:  I forgot to mention that this guide worked out great for me the first time through.  Very well put together and thank you for all the time it will save me!

If you edit layout.inf, Windows Setup will die a horrible death. OK, maybe that's a bit of an exaggeration. Windows Setup will give you an error saying it's unable to copy the security catalog files and won't let you continue. Though nLite patches sysssetup.dll so you can work around that newwink.gif
evilvoice
QUOTE (edmoncu @ Oct 23 2004, 11:13 AM)
i was wondering, how much space can one save in doing this method than by running the wmp10 installer via svcpack.inf?

since the files removed by nlite is replaced by the 4.98mb wmp10 cab.

honestly, I dunno if it saves any space...but it does get rid of wmp9 and installs wmp10...if you remove wmp9 and try to install wmp10 from svcpack.inf you will get an error and it wont install. Using that thinking, it does save some space...removing wmp9 saved around 12mb from cd, and adding the wmp10.cab only added 5mb, so thats a savings of 7mb (I know not a lot)...but thats what it saves.
SiMoNsAyS
ok i found this interesting but as said the big problem i see it's question of size.
probably will take more than necessary before and same result can be achieved without removing wm9 (safer).
anyway it's a nice job and hope that this can help some1 to create another method to replace wmp9 with wmp10 saving space.

offtopic: i thought a time ago ... what about replacing wmp9 files with dummy (0-byte) cabbed files?? this should give 4/5 precious mb extra in an unattended installation
evilvoice
hmmm, I just said it saves 7mb...thats with the 5mb wmp10.cab included...when I removed wmp9, it said I saved 19mb...this was because it removed my 5mb wmp10.cab...so we take 19 and subtract 5, which gives us 14mb (this is what would have been removed had it not removed wmp10.cab)...now we subtract 5mb for wmp10.cab which gives us a total savings of 9mb...even more than what I said...this also does not include removing wmp9 codecs (which can be removed since the codecs are included in mp10setup.exe)...I could try and nlite from a true source and find out how much is removed by only removing wmp9 and codecs and tell you how much it is...i may do that in a minute or 2...

EDIT just nlited with removing only wmp and wmp codecs...saved 16mb, so with the 5mb cab file added in, thats a total saving of 11mb over what we have so far...this does not get rid of mp10setup.exe in svcpack dir...which is why more space isnt removed...I havent had a chance to try integrating mce2k5 wmp10 into source yet, but will try soon, and that should save a total of 9mb...as you can see, you actually save more using my method...my mp10setup.exe file is 9mb (7zipped), and since using the mce files would replace said wmp9 files, it can be assumed that it will take the same amount of space, so this means the only file we can remove is mp10setup from svcpack.inf (this takes into account that we no longer use wmp10.cab and therefore the size of 16mb saved would be replaced by the wmp10 files)...so if you look at it that way...my way saves the MOST amount of space.
evilvoice
1st post updated comparing sizes of different methods
MrCobra
QUOTE (jdeboeck @ Oct 20 2004, 05:33 AM)
or... you could just get CD1 from Windows XP Media Center Edition 2005 which has WMP10 built in (instead of the usual WMP9 that comes with SP2)

or if you really wanted to slipstream WMP10 you should use the files from MCE 2005. This way the slipstream will even be signed and all smile.gif

That's what I did when I got it. Added DX9c and MP10 to SP1 as well.
MrCobra
QUOTE (Metzen @ Oct 21 2004, 10:25 AM)
You turn it into Pro by entering a Windows XP Professional product key.  No messing of files is necessary. 

Windows XP checks the product key you enter on your Windows MCE media -> if it's a MCE key, it installs MCE, if it's Pro, it installs Pro.

I've tried this and it doesn't seem to work. Yes, the product key is legal.
Metzen
QUOTE (MrCobra @ Oct 23 2004, 08:04 PM)
QUOTE (Metzen @ Oct 21 2004, 10:25 AM)

You turn it into Pro by entering a Windows XP Professional product key.  No messing of files is necessary. 

Windows XP checks the product key you enter on your Windows MCE media -> if it's a MCE key, it installs MCE, if it's Pro, it installs Pro.

I've tried this and it doesn't seem to work. Yes, the product key is legal.

Make sure the Product key matches the version of the CD. My MCE2005 media will not work with Retail keys/volume keys, etc. but does work with OEM keys.

That is your problem.
Providence
i have some questions about this method
1.wmp10.cat
since used svcpack's mothed,why wmp10.cat is missing?or it's unneccessary?
2.svcpack.inf
err.....just create it?and leave it uncompressed?(svcpack.in_)
since i have used RaynVM's Update Pack;svcpack.in_ is exist,so how should i do?just add the content then recompress it?
3.nlite
i use nlite to integrate RaynVM's Update Pack,so svcpack.in_ will overwrite mine.can i modify svcpack.inf after nlite's process is over?

my last question is that how to check svcpack whether it is available for both @installation,does any different between svcpack.inf and svcpack.in_


following is svcpack.inf i modified,is it correct?
/////////////////////////////////////////////////////////////////////////
[Version]
Signature="$Windows NT$"

[SetupData]
CatalogSubDir="\i386\svcpack"

[ProductCatalogsToInstall]
KB832414.CAT
KB884020.CAT
KB885523.CAT
KB885626.CAT
KB885894.CAT
SCRIPTEN.CAT

[SetupHotfixesToRun]
"mp10setup.exe /Q:A /c:""setup_wm.exe /Q /R:N /NoPID /DisallowSystemRestore /P:#e"""
"unregmp2.exe /Shortcuts /RegExts"
evilvoice
1. wmp10.cat is inside mp10setup.exe
2. I personally leave svcpack.inf uncompressed...just easier to edit
3. I would recommend to edit svcpack.inf AFTER nlite...I think thats the way its listed in the HOWTO

and lastly, it looksok...you may wanna make sure your svcpack.inf works...because I have a lot more info in mine than you do...so I would check to make sure it works first.
Providence
QUOTE (evilvoice @ Oct 24 2004, 01:20 PM)
1. wmp10.cat is inside mp10setup.exe
2.  I personally leave svcpack.inf uncompressed...just easier to edit
3.  I would recommend to edit svcpack.inf AFTER nlite...I think thats the way its listed in the HOWTO

and lastly, it looksok...you may wanna make sure your svcpack.inf works...because I have a lot more info in mine than you do...so I would check to make sure it works first.

it seems i asked some fool questions,shy blushing.gif
thx for your reply

the svcpack.inf i posted is correct?
the addon position is right?
[SetupHotfixesToRun]
"mp10setup.exe /Q:A /c:""setup_wm.exe /Q /R:N /NoPID /DisallowSystemRestore /P:#e"""
"unregmp2.exe /Shortcuts /RegExts"

i'm not know well about svcpack method blushing.gif
Providence
test report:
wmp10 did not installed automatically finally,however,user can still to install wmp10 manually.because WMP Core(WMP10.cab) worked well

the reason i think is svcpack,it seems not work.(but RyanVM's Update Pack worked well)

my suggestion is that:there is no need to modify svcpack.inf,just not use svcpack mode to install wmp10.users can use other method,for example,winnt.sif/xplode/cmd and so on.just use parametar to run mp10setup and unregmp2 sliently and automatically

finally,i still have to say:"great work,evilvoice"
evilvoice
as I said, you are missing some information in svcpack.inf...this is what mine looks like

CODE
[Version]
Signature="$Windows NT$"
MajorVersion=5
MinorVersion=1
BuildNumber=2600

[SetupData]
CatalogSubDir="\i386\UPDATE"

[ProductCatalogsToInstall]
KB832414.cat
KB834707.cat
KB884020.cat
KB885523.cat
KB885626.cat
KB885894.cat
scripten.cat

[SetupHotfixesToRun]
dotnetfw.exe
msjvm.exe
mp10setup.exe
"unregmp2.exe /Shortcuts /RegExts"
wmcsetup.exe


notice the difference under [Version]...this is the only way Ive gotten svcpack.inf to work.

Whowhooo! another person who says it works smile.gif
evilvoice
sorry for 2 replies in a row...but I need some help...

This is for people who use RyanVM's Update Pack and this method of integrating wmp10...

When following this guide perfectly and also installing RyanVM's Update Pack, do all hotfixes install...Im trying to figure out what breaks the Update Pack install...I removed more than just wmp with nlite, but I want to make sure this isnt causing the problem...here is my scenario

Using this method and RyanVM's Pack (Full for English) Highmat says it is needed via Windows Update...if I regsvr32 hmtcd.dll it is no longer a needed update...I am trying to find out if this HOWTO is causing it not to regsvr the file during optional component setup or not...So anyone who uses the Full Pack for English and this method, please post back if Highmat says its needed in Windows Update...it would really help me out in determining where I need to start to fix the problem...I do not believe my method causes the problem, but something else I removed, Im just checking with people...so either pm or reply with results, it will be greatly appreciated.
Providence
QUOTE (evilvoice @ Oct 24 2004, 06:26 PM)
as I said, you are missing some information in svcpack.inf...this is what mine looks like

CODE
[Version]
Signature="$Windows NT$"
MajorVersion=5
MinorVersion=1
BuildNumber=2600

[SetupData]
CatalogSubDir="\i386\UPDATE"

[ProductCatalogsToInstall]
KB832414.cat
KB834707.cat
KB884020.cat
KB885523.cat
KB885626.cat
KB885894.cat
scripten.cat

[SetupHotfixesToRun]
dotnetfw.exe
msjvm.exe
mp10setup.exe
"unregmp2.exe /Shortcuts /RegExts"
wmcsetup.exe


notice the difference under [Version]...this is the only way Ive gotten svcpack.inf to work.

Whowhooo! another person who says it works smile.gif

of coz sth is wrong @svcpack.inf,i said i'm not familiar with svcpack.inf confused.gif

it seems some parameters are different with top guide @7
i think u can give more details @top guide,eg.a sample of svcpack.inf,this will make the method more clear

i will try svcpack method next time.

BTW:i also didn't only remove wmp with nlite and used with RyanVM's Lite Pack,it works ok.this method can be do after nlite.it's independence
SiMoNsAyS
well i decided to give an oportunity to this method.
after first test (unsuccessful) i noticed an important thing and why it would NEVER run properly. have you tried to extract the files from wmp10.cab and run wmp10.inf?
it will popup an error message similar to "The Software you are trying to install is not signed." so firstly you need to add wmp10.cat to the list of files needed.
after that you are able to install wmp10 but... another thing i have noticed it's that first run dialog it's displayed as always and need to be avoided with a regtweak.
finally the most annoying for me it's that no wmp shortcuts are created on my start menu.
i'll deeply take a look later on my next "unattended test"
space saved it's about ~10mb until building the iso file in the root dir after removing wmp9 and wmp9 codecs.
evilvoice
hmmm, dunno if its different cuz your not using english maybe...mine never complains about wmp10.cat being in the file...I also get a start menu button...I am unsure as to whether the icon gets created in "Programs" but I do have it on the MRU list...SimonSays...about wmp10.cat, Im gonna assume you used your own wmp10.inf and not the one I provided in the attachment...if so, you need to remove some lines from the beginning of the wmp10.inf file...I never said that wmp10 would not behave as wmp9 did...so yes, first run is displayed like always...(I dont remember saying I was gonna give ANYONE any regtweaks for wmp10...the reason I decided on this is my tweaks may not be your tweaks)...

I am not sure if SimonSays is using my attachment or not...but I cannot stress enough that YOU MUST USE MY ATTACHMENT AS WMP10.IN_...If you do not, you will run into more problems than its worth...now, if you want to extract my wmp10.in_ and convert what I have done into YOUR language, by all means, do so...but DO NOT simply copy wmp10.inf from mp10setup.exe and think its gonna work, because it wont.

About space saved...if you have nlited at all before doing this, your space saved results will vary...I believe I said that you should not nlite before this...but dunno...my space results are based on a true xpsp2 source and ONLY removing wmp9 and codecs and adding ONLY wmp10.cab and mp10setup.exe (7zipped to reduce size of file)...so using that formula, you will arrive at my totals. I used the same idea for including the other methods...so it isnt like I unfairly reported results. Although I do not know if wmp10 can be makecabbed smaller than wmp9 currently on the cd...as I said, using nlite removes 16mb, so if makecabbing all of wmp10 yields a smaller size, then that would be the only difference in my totals...I could try real quick and post back my size reults in compressing wmp10, to give people I guess a true representation...even though in the end, I can almost guarantee my method will still have the least amount of size. (also, i do not take into account the inf and unregmp2 files because it doesnt really add anything that would offset my totals)
RogueSpear
Like I had posted earlier, this guide worked for me the first try. I did nLite (put Ryan's pack in using nLite) and then followed this guide. And I did use the inf proided here. Now that its mentioned, Windows Update does have HighMAT listed, but I dont remember if it was listed before implementing this how to.
SiMoNsAyS
ok so first, yes i used my own wmp10.inf (with english one it prompts an error)
QUOTE
you need to remove some lines from the beginning of the wmp10.inf file
this is interesting but... what lines?
my regtweak include preferences and first run so i decided to import them sometime in runonce
QUOTE
Windows Registry Editor Version 5.00

;WMP10 Setup no FirstRun dialog
[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences]
"WMARecordRate"=dword:0001f400
"MP3RecordRate"=dword:0002ee00
"AutoAddMusicToLibrary"=dword:00000000
"AcceptedPrivacyStatement"=dword:00000001
"FirstRun"=dword:00000000
"LibraryPaneVisible"=dword:00000000
"LibraryHasBeenRun"=dword:00000001
"UsageTracking"=dword:00000000
"DisableMRU"=dword:00000001
"AlwaysOnTop"=dword:00000000
"EnableScreensaver"=dword:00000000
"DoNotShowAnchor"=dword:00000001
"AcceptedPrivacyStatement"=dword:00000001

;remove "WMP Play Folder As Playlist Launcher"
[-HKEY_CLASSES_ROOT\CLSID\{7D4734E6-047E-41e2-AEAA-E763B4739DC4}]
;remove "WMP Burn Audio CD Launcher"
[-HKEY_CLASSES_ROOT\CLSID\{8DD448E6-C188-4aed-AF92-44956194EB1F}]
;remove "WMP Play As Playlist Launcher"
[-HKEY_CLASSES_ROOT\CLSID\{CE3FB1D1-02AE-4a5f-A6E9-D9F1B4073E6C}]
;remove "WMP Add To Playlist Launcher"
[-HKEY_CLASSES_ROOT\CLSID\{F1B9284F-E9DC-4e68-9D7E-42362A59F0FD}]

as i said my space saved it's 10mb (before nlite), only removed wmp9 and codecs and added wmp10 cab and wmp10setup (standart compression).
titou2k
Why use WMP10.cab if the files are in mp10setup.exe!
You can save 5MB (from WMP10.cab) easily, you do not need it.

My method, 1!!! File (11.7MB) which do all things. You can remove WMP9 and Codecs with Nlite.

1) Extract the contents of mp10setup.exe somewhere (mp10setup)

2) Make a setup.inf with the code below and put it in the folder. Or get this file.
CODE
[Version]
Signature="$Windows NT$"
ClassGUID={00000000-0000-0000-0000-000000000000}
LayoutFile=layout.inf
SetupClass=BASE

[DefaultInstall]
AddReg         = Run.Prepare,Run.Setup,Run.Shortcut_Extension
CopyFiles      = wm.stream.copy
Registerdlls   = regwmp.dlls
AddReg         = Regs.Config

[Run.Prepare]
HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce","Prepare",, "rundll32 setupapi,InstallHinfSection DefaultInstall 128 ./WMP10.inf"
[Run.Setup]
HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce","Setup",, "setup_wm.exe /Q /R:N /NoPID /DisallowSystemRestore /P:#e"
[Run.Shortcut_Extension]
HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce","Shortcut_Extension",, "unregmp2.exe /Shortcuts /RegExts"

[DestinationDirs]
DefaultDestDir=11
wm.stream.copy=11
[SourceDisksNames]
5655 = %SourceFileDesc%,,0
[SourceDisksFiles]
msdxm.ocx = 5655
[wm.stream.copy]
msdxm.ocx,,,97

[RegSection]
Registerdlls   = regwmp.dlls
[regwmp.dlls]
11,,WMNetMgr.dll,1
11,,wmp.dll,1
11,,msdxm.ocx,1
11,,wmpasf.dll,1
11,,wmpdxm.dll,1
11,,wmploc.DLL,1
11,,wmpshell.dll,1
11,,wmpsrcwp.dll,1

[Regs.Config]
;Add what you want to configure WMP10.

You can add all registry tweaks you want in 'setup.inf' under the [Regs.Config] section.

3) Copy the 'msdxm.ocx' file in the folder (where you extract mp10setup.exe) > This file is for enabling streaming media in IE. You can find it in Windows Setup CD. It is removed by Nlite in the same time of WMP9 that is why i add it here.

4) Make an sfx archive from all files in the folder. (In Winrar: SFX Solid Archive, Normal Compression > 11.7MB)
With winrar use this comment:
CODE
;The comment below contains SFX script commands
Setup=rundll32 setupapi,InstallHinfSection DefaultInstall 128 ./setup.inf
TempMode
Silent=1
Overwrite=1

EDIT2: Other method to run setup, without self extract.
CODE
rundll32 setupapi,InstallHinfSection DefaultInstall 128 #WHERE#/setup.inf
With #WHERE# the absolute extracted path
evilvoice
WOW!!!...nice find, though I would prolly make a 7zip for mp10setup.exe (can get it down to 9mb)...but very cool.

EDIT: Where were you when I was creating this whole thing...defnitely would have saved me a couple of hours.
titou2k
Well, I do not use WMP thus I do not have pay attention to the post. But to resolve a problem, i read it and had this idea. biggrin.gif

Edit: Can we make a sfx file that autorun setup.inf with 7zip?
evilvoice
Ive made the 7zip arcive...but it does not seem to be useable from svcpack.inf...in the way you have done it, does it run in svcpack.inf or somewhere else?
titou2k
I didn't try with svcpack.inf. I use it in runonce after after last reboot. I will try to put it in svcpack and see what happens.

Edit:
how did you run the setup after extract your 7zip? and from where?
I said:
CODE
rundll32 setupapi,InstallHinfSection DefaultInstall 128 ./setup.inf


But it is better to use:
CODE
rundll32 setupapi,InstallHinfSection DefaultInstall 128 #WHERE#/setup.inf
With #WHERE# the absolute extracted path


With wirar, the files are extracted in TMP folder then the command are executed from this forder. So I use #WHERE# = ./

Edit2:
With sfx winrar archive, it is working in svcpack.inf.
I put MP10Setup.exe (Winrar Archive smile.gif not Microsoft setup) in svcpack folder
I add "MP10Setup.exe" in svcpack.inf under [SetupHotfixesToRun] section
evilvoice
still working on it...for some reason, 7zip just wont do it automatically...duno why, I can extract everything, run startx and have it run the command and it installs fine, but when using the exe file, it just stops or errors out...Ill have to look more into it as I think its not understanding what im trying to do in the config file.
evilvoice
FINALLY...jebus this was tough...I tried every which way of trying to use StartX which just doesnt work with rundll32 and 7zip...who knows why...I should submit a bug report to the maker, but oh well...I ended up using a cmd file...and writing the config to run the cmd file...so basically, do exactly what titou2k said in making the package...extract mp10setup, make setup.inf, make mp10setup.cmd, copy msdxm.ocx (these files should be in the mp10setup folder)...then make a 7z file with all these things...(I use ultra compression)

mp10setup.cmd
CODE
@ECHO OFF
rundll32.exe setupapi,InstallHinfSection DefaultInstall 128 ./setup.inf


make config.txt !!!MAKE SURE TO SAVE AS UTF-8 FORMAT!!!
CODE
;!@Install@!UTF-8!
RunProgram="mp10setup.cmd"
;!@InstallEnd@!


next, compress 7zS.sfx
CODE
upx -9 -o7zSC.sfx 7zS.sfx


CODE
copy /b 7zSC.sfx + config.txt + mp10setup.7z mp10setup.exe

This assumes you named the archive mp10setup.7z

TEST THIS!!! I am unsure if I have all the steps...I was really just looking at a way to get it to work in svcpack.inf...the package with StartX works after setup is finished, but not within svcpack.inf, which is where I like to isntall things like this. And Ive made 15 different configurations of mp10setup...so like I said, I might have missed a step or 2...but it seems all correct.
evilvoice
@titou2k...could you give an example of how to add the custom tweaks...I believe they have to be written in inf format...is that correct?
RogueSpear
Here are the tweaks that I put in. I used WillyPad to convert the registry entries to inf format.

CODE
[Regs.Config]
HKCU,"Software\Microsoft\MediaPlayer\Preferences","AcceptedPrivacyStatement",0x00010001,01,00,00,00
HKCU,"Software\Microsoft\MediaPlayer\Preferences","FirstRun",0x00010001,00,00,00,00
HKCU,"Software\Microsoft\MediaPlayer\Preferences","SendUserGUID",1,00
HKCU,"Software\Microsoft\MediaPlayer\Preferences","SilentAcquisition",0x00010001,00,00,00,00
HKCU,"Software\Microsoft\MediaPlayer\Preferences","UsageTracking",0x00010001,00,00,00,00
HKCU,"Software\Microsoft\MediaPlayer\Preferences","WebScriptCommandsEnabled",0x00010001,01,00,00,00
titou2k
RogueSpear> Very good App (WillyPad). It will save me a lot of time to create inf from reg. Manual conversion is long.

evilvoice> inf format, this is correct smile.gif

I made 'mp10setup.7z' (with 'mp10setup.cmd' in it).
I created 'config.txt'.
But i don't understand:
CODE
upx -9 -o7zSC.sfx 7zS.sfx

This creates 7zSC.sfx but what is 7zS.sfx?

EDIT:
Ok, i find it.
titou2k
evilvoice>
Yeah, it's working with 7zip compression. I did not know this method. I will modify all my autoextract rar archive with 7zip. woot.gif

EDIT:
it seems that i have the solution not to use command file but rundll32 in the config.txt
Only add rundll32.exe (33kB) in the archive.
evilvoice
the problem with adding rundll32.exe is that it is dependent on what service pack you have...AFAIK rundll32 is not interchangable...the rundll with sp2 will only work on sp2 and sp1 only on sp1...which is why I included the cmd file...the cmd file is very small and will allow it to work on an OS whether it is xp sp1, sp2, or a different windows. I edited 7zS.sfx so that the installer would use the wmp icon instead of that default installer icon...other than that, everything else is the same. To edit, just open 7zS.sfx in Resource Hacker and goto Action -> Replace Icon

these are the tweaks I am using
CODE
HKCU,"Software\Microsoft\MediaPlayer\Player\Settings","EnableDVDUI",,"yes"
HKCU,"Software\Microsoft\MediaPlayer\Player\Settings","AutoSize",,"yes"
HKCU,"Software\Microsoft\MediaPlayer\Player\Settings","AlwaysOnTop",,"no"
HKCU,"Software\Microsoft\MediaPlayer\Player\Settings","AutoRewind",,"no"
HKCU,"Software\Microsoft\MediaPlayer\Player\Settings","FullScreenControls",,"no"
HKCU,"Software\Microsoft\MediaPlayer\Player\Settings","Captioning",,"no"
HKCU,"Software\Microsoft\MediaPlayer\Preferences","CDRecordFileDetail",,"*TrackNumber;*SongTitle;Artist;Album;Genre;Bitrate"
HKCU,"Software\Microsoft\MediaPlayer\Preferences","SendUserGUID",1,00
HKCU,"Software\Microsoft\MediaPlayer\Preferences","SilentAcquisition",0x00010001,0
HKCU,"Software\Microsoft\MediaPlayer\Preferences","UpgradeCodecPrompt",0x00010001,0
HKCU,"Software\Microsoft\MediaPlayer\Preferences","PlayerScriptCommandsEnabled",0x00010001,0
HKCU,"Software\Microsoft\MediaPlayer\Preferences","UpgradeCheckFrequency",0x00010001,2
HKCU,"Software\Microsoft\MediaPlayer\Preferences","StretchToFit",0x00010001,1
HKCU,"Software\Microsoft\MediaPlayer\Preferences","MetadataRetrieval",0x00010001,3
HKCU,"Software\Microsoft\MediaPlayer\Preferences","UsageTracking",0x00010001,0
HKCU,"Software\Microsoft\MediaPlayer\Preferences","DisableMRU",0x00010001,1
HKCU,"Software\Microsoft\MediaPlayer\Preferences","LaunchIndex",0x00010001,106
HKCU,"Software\Microsoft\MediaPlayer\Preferences","FirstRun",0x00010001,0
HKCU,"Software\Microsoft\MediaPlayer\Preferences","ShrinkToFit",0x00010001,0
HKCU,"Software\Microsoft\MediaPlayer\Preferences","PromptLicenseBackup",0x00010001,0
HKCU,"Software\Microsoft\MediaPlayer\Preferences","ShowAppTitlebar",0x00010001,1
HKCU,"Software\Microsoft\MediaPlayer\Preferences","ShowAppTitlebarVTen",0x00010001,1
HKCU,"Software\Microsoft\MediaPlayer\Preferences","AcceptedPrivacyStatement",0x00010001,1
HKCU,"Software\Microsoft\MediaPlayer\Preferences","LibraryPaneVisible",0x00010001,1
HKCU,"Software\Microsoft\MediaPlayer\Preferences","LibraryHasBeenRun",0x00010001,1
HKCU,"Software\Microsoft\MediaPlayer\Preferences","CDRecordMP3",0x00010001,0
HKCU,"Software\Microsoft\MediaPlayer\Preferences","CDRecordMode",0x00010001,3
HKCU,"Software\Microsoft\MediaPlayer\Preferences","WMARecordRate",0x00010001,0002ee00
HKCU,"Software\Microsoft\MediaPlayer\Preferences","WMARecordQuality",0x00010001,62
HKCU,"Software\Microsoft\MediaPlayer\Preferences","MP3RecordRate",0x00010001,0004e200
HKCU,"Software\Microsoft\MediaPlayer\Preferences","CDRecordDRM",0x00010001,0
HKCU,"Software\Microsoft\MediaPlayer\Preferences","AutoCopyCD",0x00010001,0
HKCU,"Software\Microsoft\MediaPlayer\Preferences","AutoEjectCD",0x00010001,1
HKCU,"Software\Microsoft\MediaPlayer\Preferences","WebScriptCommandsEnabled",0x00010001,0
HKCU,"Software\Microsoft\MediaPlayer\Preferences","WebStreamsEnabled",0x00010001,0
HKLM,"SOFTWARE\Microsoft\MediaPlayer\Settings\MP3Encoding","LowRate",0x00010001,0001f400
HKLM,"SOFTWARE\Microsoft\MediaPlayer\Settings\MP3Encoding","MediumRate",0x00010001,0002ee00
HKLM,"SOFTWARE\Microsoft\MediaPlayer\Settings\MP3Encoding","MediumHighRate",0x00010001,0003e800
HKLM,"SOFTWARE\Microsoft\MediaPlayer\Settings\MP3Encoding","HighRate",0x00010001,0004e200


AFAICT the HKLM keys arent needed as wmp10 by default sets these, but I include them just in case...the biggest thing is the CDRecordMode I have set for WMA Lossless

@RogueSpear...I dunno how your reg tweaks work...you use a dword setting, but the data is written in binary format...you should change it to read like mine does...unless they actually work for you.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.