Help - Search - Members - Calendar
Full Version: Windows Media Player 10 Unattended
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
hiphopconnect
thumbup.gif heres the switches need to have a unattended install:

For unattended installation with no UI and no restart or restart prompt:

We recommend using the following command line for most redistribution scenarios.

MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /P:#e"
This is the standard command line that should usually be used to perform an unattended setup. This is the recommended default command line to use for most redistribution scenarios.

To prevent media library migration:

MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /NoMigrate /P:#e"
To cache the installation package for later Windows upgrade migration:

MP10Setup.exe /q:A /R:N /c:"setup_wm.exe /Q /R:N /P:#e"
The /P:#e parameter specifies that the Windows Media Player installation package should be cached during Windows Media Player setup. This command is used to handle future upgrades of the operating system. This command should only be omitted by corporate IT administrators.

The only case where /P:#e should not be included on the command line is when you own the target system and know that the target system will never be upgraded to a later operating system. For example, if you are installing Windows Media Player 9 Series on Windows 2000 and the computer may someday be upgraded to Windows XP, you must use /P:#e on the command line. Otherwise, after the Windows XP installation, the Windows Media Player files will be overwritten with the files for Windows Media Player for Windows XP.

Note that the /P:#e parameter is not required for Windows Media Player 10 setup.

To create a nested system restore point:

/NestedRestore
Use this if your application creates a system restore point to nest the Windows Media Player restore point within your application restore point.

To disallow the creation of a system restore point:

/DisallowSystemRestore
This flag will disable the creation of a system restore point. Under most circumstances this flag should not be used with general software redistribution scenarios. This should be used only when you can make an explicit choice on behalf of the end user not to support the rollback of the Windows Media Player files to an earlier version of the Player. This flag should be used only in a corporate deployment or original equipment manufacturer (OEM) installation scenario.
Alanoll
Nice copy paste job from the Microsoft Website. ;-)
hiphopconnect
tongue.gif thanx i try my best
1chaoticadult
It better than nothing Alanoll biggrin.gif
nocheebo
hmm.. useful thanks a lot man more options for a silent install are always a plus.
galvanocentric
Although I'll get a lot of boos, Microsoft has certainly, as their motto goes, set the standard for silent installations. If they'd only come up with msiexec and the MSI schema a few years prior, we might not have a need for this forum.
Thanks!
prathapml
QUOTE (galvanocentric @ Oct 9 2004, 06:53 PM)
If they'd only come up with msiexec and the MSI schema a few years prior, we might not have a need for this forum.
Then its good that they did not. laugh.gif

Just FYI, MSI installers have been used by MS since late 1999 (office 2000). MSFN forum was started 2 years after that! So this forum did not come up in response to silent installations - that and MSI has been around for longer. There's been a lot more than silent installations alone, in this forum. smile.gif
shaokahn
I have Win XP SP2 and it installs WMP9. Is there a way to prevent it from installing?

I just wanna add the command line provided by hiphopconnect to my batch file for intalling WMP10 without WMP9 being there.

is there some string to add to winnt.sif for WMP10 like the windows messenger one msmsgs=off???

Tks
prathapml
Yeah, there is.
CODE
[Components]
   WMPOCM=off
dcromwell
Are there any issues that may arise with doing the WMPOCM=off ????

Just curious.... If not, I will add it to my next SP2 DVD....

Also, I installed WMP10 this morning silently. Is there a command line option in order to put the QuickStart icon in the QuickStart menu immediately after install like the prompted version does?
prathapml
No issues seen, that I know of.
Yzöwl
QUOTE (prathapml @ Oct 12 2004, 08:08 PM)
Yeah, there is.
CODE
[Components]
   WMPOCM=off

I may not have understood it correctly myself, but:
WMPOCM = Off - Specifies whether to install visible entry points to Windows Media Player.
i.e it isn't 'not installed', just simply the normal methods of access to it removed.

The same also goes also for,
IEAccess, OEAccess, WMAccess

Is this correct then or not?
prathapml
Yes, its correct.
shaokahn
QUOTE
Also, I installed WMP10 this morning silently. Is there a command line option in order to put the QuickStart icon in the QuickStart menu immediately after install like the prompted version does?


dcromwell, dude i installed with this command line:
CODE
start /wait MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"
and it placed a quick lunch icon.

prathapml, in dummy language that means that wmp9 will be there... just no links and stuff for acessing it?
prathapml
Yeah, if you set WMPOCM=off, it will be there, just no links and stuff for acessing it. You can even manually run "wmplayer" and get WMP!

But if you install WMP10, or an update/hotfix to WMP9, the access-turn-off of WMP will not be valid anymore - the update will bring back the shortcuts to WMP.
shaokahn
So using WMPOCM=off in my winnt.sif file is useless. I can just sliently install wmp10 and it will supress wmp9 right?
Or you recommend anything else?
prathapml
Yeah, if you're anyway are going to use WMP - whether v9, or upgrading to v10 - it is no need to set WMPOCM=off. You can simply install WMP10 and and it will replace v9.

Use the WMPOCM=off only if you hate WMP and don't want it to be accessed.
shaokahn
Got it, tks thumbup.gif
dcromwell
QUOTE (shaokahn @ Oct 14 2004, 08:08 PM)
QUOTE

Also, I installed WMP10 this morning silently. Is there a command line option in order to put the QuickStart icon in the QuickStart menu immediately after install like the prompted version does?


dcromwell, dude i installed with this command line:
CODE
start /wait MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"
and it placed a quick lunch icon.

prathapml, in dummy language that means that wmp9 will be there... just no links and stuff for acessing it?

Did it place the icon in the Quick Launch bar immediately, or did you have to run the program first and then go through the setup?
shaokahn
QUOTE (dcromwell @ Oct 15 2004, 08:01 AM)
Did it place the icon in the Quick Launch bar immediately, or did you have to run the program first and then go through the setup?

thats a very good question, sorry i cannot answer you, because i install it silently and tested it imediatly. Maybe it was after run it for the first time, but it was there smile.gif
Nilfred
As I learn from bitmonster here is a small guide how to create your own silent install package:
  • Get the WMP10 package and put it in some folder.
  • Get 7-Zip and install it. Open up the folder where 7-zip has installed itself to and grab the 7za.exe and 7zS.sfx files and copy them to your folder. You can deinstall 7-Zip now if you want.
  • Get the UPX-package (Win32 console version), unpack it and copy the upx.exe to your folder
  • Make a new batch-file in your folder, name it wmp10.bat and paste the following text into it:
CODE
SET TmpDir=%~dp0tmp
%~d0
CD "%~p0"

SET Target=mp10setup
MD "%TmpDir%"
START /wait %Target%.exe /C /T:"%TmpDir%"
CD "%TmpDir%"

..\7za.exe a "%~dp0%Target%.7z" -r -mx=7 -mfb=255 -md=48m *
CD..
RMDIR /S /Q tmp

IF NOT EXIST 7zSC.sfx CALL :make_sfx

ECHO;!@Install@!UTF-8!>config.txt
ECHO RunProgram="setup_wm.exe /Q /R:N /NoMigrate /DisallowSystemRestore">>config.txt
ECHO;!@InstallEnd@!>>config.txt
COPY /b 7zSC.sfx + config.txt + %Target%.7z %Target%7.exe
DEL config.txt
DEL %Target%.7z
GOTO:EOF

:make_sfx
COPY 7zS.sfx 7zSC.sfx
upx.exe 7zSC.sfx
GOTO:EOF
Now you should have the following files in your folder:
CODE
7za.exe
7zS.sfx
wmp10.bat
mp10Setup.exe
upx.exe
Start the wmp10.bat and wait 2 minutes. At the end you should have a mp10setup7.exe in your folder with a size of about 9.3 MB.

You can run this standalone file through svcpack.inf or any other batch without any commandline switches. But if you use a batch instead of svcpack.inf you should use the start-command:
CODE
start /wait mp10setup7.exe
beppemito
QUOTE (Nilfred @ Oct 16 2004, 03:52 PM)
Start the wmp10.bat and wait 2 minutes. At the end you should have a mp10setup7.exe in your folder with a size of about 9.3 MB.

i got a file of 4.7mb.... (italian version)...is it correct or not?
crahak
Or you could just, extract mp10setup.exe's contents with 1 right click with WinRAR, and make it into a WinRAR SFX in a matter of seconds... Yours most likely makes a smaller file though. It's nice to have small installers, but in my case (using a DVD to install, so space isn't a major consideration for a small app) I picked simplicity and speed of creation of the WinRAR SFX instead. I might try the 7zip way instead, I just "default" to using WinRAR as it's installed on my system (7zip isn't) and it's so quick to use... Thanks for sharing smile.gif

[edit] the WinRAR SFX (without UPX compression mind you) weighs in at 13,7MB, so your real savings are 4.4MB, minus what UPX would save on the WinRAR SFX - which I'll try right now, just out of curiosity)

[update] UPX is definately no go with the WinRAR SFX. I get a AlreadyPackedException no matter what. Yours method makes a sfx 2/3 of the size of the WinRAR one then, 4.4MB saved.

@beppemito at half the size, I'd say yours has a problem. Language shouldn't really change anything on the filesize...
beppemito
i've follow the guide....
all is ok...but final size are different and the install don't work propertly sad.gif
Nilfred
I used Spanish version. Installs propertlly and silently.
11,9 Mb to 9,3 Mb.
@beppemito
Did you use Beta 7-zip? Please don't.
Which size is your normal mp10setup.exe (12.2 Mb) and does it install propertly?
Try download it again if not.
beppemito
i dont know why but...now it work: 9.48mb
but when i double-click on it...an extraction window appear....and nothing else....i try to run wmp but series 9 there is!!!!
Nilfred
Yeah! Wait a few minutes before trying open wmp, the extraction windows isn't all.
The proccess is wm_setup.exe, watch Task Monitor until it dessapear if you are soooo impatient. tongue.gif
beppemito
in taskman, wm_setup.exe don't run...only extraction sad.gif
Nilfred
Oops, you right, mp10setup7.exe shows in taskman. When not, setup finished. thumbup.gif
beppemito
ok but....when disappear,i go to windows media player folder,run it but...nothing.....only 9series sad.gif
Nilfred
Well, tested unnatended on vmware works fine here confused.gif
Will have to test changes to this line of code for otrer environments:
QUOTE
ECHO RunProgram="setup_wm.exe /Q /R:N /NoMigrate /DisallowSystemRestore">>config.txt

Use the swichs from first post. PM me for further develop on this issue.
I just finished similar WMC package and found every time I run it, gave me different size result... So isn't only you, maybe a bug somewere. unsure.gif
Are there any successful? You crahak?
crahak
I'm still using my 4.4mb bigger winrar sfx... It works fine and was ridiculously easy and fast to do (just a few mouse clicks, no scripts or such things...) It's never had issues either.

I'll perhaps change it the day I need to squeeze out another 4mb of free space out of my DVD newwink.gif

[edit] Just in case you want to try it... You need to have WinRAR installed first on your PC (if you haven't tried it before, chances are you'll be addicted to it soon)
Once you got that, there's the couple steps:

-Right click on mp10setup.exe, and select "Extract to mp10setup\"
-go in that newly created folder, press ctrl-a to select all files, right click anywhere on the files, select "Add to archive ..."
-Select Best in compression method
-Check "Create SFX Archive"
-Click on the advanced tab, then "SFX Options..." button
-In "Run after extraction", paste the command line (setup_wm.exe /Q /R:N /NoMigrate /DisallowSystemRestore)
-Click on "Modes" tab
-Check "Unpack to temporary folder", "Silent mode" to "Hide All" and finally "Overwrite mode" to "Overwrite all files"
-Click "ok" twice

That's it. So basically, extract files, create archive, best compression, sfx, add command line, tell it to extract to temp folder, all silent and to overwrite files. Takes under a minute if you know your way around the (simple) WinRAR gui.

It should work no matter what language. Expected file size around 13Mb. I yet have to see the install fail. *knock on wood*
Nilfred
Switches are the same of mine. No luck. no.gif
Also take a look at my WMC unattended method
You can do the same trick with the redist package. thumbup.gif
crahak
Odd. It's never glitched for me... No idea what could even possibly go wrong here.

As for the WMC, if everything works without using the msi (if the components still get registered, the add/remove infos are there and all) then it's definately a nice way. I had thought about a admin install, but I couldn't remember the switch, and I wasn't sure if it would work, so I tried to modify the msi file instead - which didn't go over well. (I noticed u added /DisallowSystemRestore as in my previous post hehehe) I'll try making a WinRAR sfx that way right now (I'd use 7zip, but sometimes I'm lazy... and the extra couple MB aren't that much of an issue on a DVD)

Great work smile.gif Looks like we finally got a real unattended WMC without enabling the system restore.
Nilfred
QUOTE (crahak @ Oct 18 2004, 11:53 AM)
I had thought about a admin install, but I couldn't remember the switch

Well, is all in the script, to refresh your memory tongue.gif You are not the first to tell me that. I just reuse a bitmonster's script for netFMsp1.
The msi is still there. StartX call it.
beppemito
i don't understand one thing:
if i want to install WMP10, must i install before WMC or not?another thing: what's WMC?
beppemito
QUOTE (crahak @ Oct 18 2004, 07:36 AM)
I'm still using my 4.4mb bigger winrar sfx... It works fine and was ridiculously easy and fast to do (just a few mouse clicks, no scripts or such things...) It's never had issues either.

I'll perhaps change it the day I need to squeeze out another 4mb of free space out of my DVD newwink.gif

[edit] Just in case you want to try it... You need to have WinRAR installed first on your PC (if you haven't tried it before, chances are you'll be addicted to it soon)
Once you got that, there's the couple steps:

-Right click on mp10setup.exe, and select "Extract to mp10setup\"
-go in that newly created folder, press ctrl-a to select all files, right click anywhere on the files, select "Add to archive ..."
-Select Best in compression method
-Check "Create SFX Archive"
-Click on the advanced tab, then "SFX Options..." button
-In "Run after extraction", paste the command line (setup_wm.exe /Q /R:N /NoMigrate /DisallowSystemRestore)
-Click on "Modes" tab
-Check "Unpack to temporary folder", "Silent mode" to "Hide All" and finally "Overwrite mode" to "Overwrite all files"
-Click "ok" twice

That's it. So basically, extract files, create archive, best compression, sfx, add command line, tell it to extract to temp folder, all silent and to overwrite files. Takes under a minute if you know your way around the (simple) WinRAR gui.

It should work no matter what language. Expected file size around 13Mb. I yet have to see the install fail. *knock on wood*

it works but...file size is bigger than original mp10setup.exe of 1mb.
i'd like to shrink the file...to a small size.... blushing.gif
Astalavista
is it possible to integrate media player 10 to the Unattended windows xp i386?
Nilfred
QUOTE (Astalavista @ Oct 19 2004, 03:06 AM)
is it possible to integrate media player 10 to the Unattended windows xp i386?

Should be... There is a .inf file, a .cat file, WMP9 standalone package contents are knew and should be replaced with WMP10 contents... Hey! woot.gif You can do it! thumbup.gif
QKnet
Is there any switch that I should add to see the installation progress? I'm using this
QUOTE
start /wait MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"

and it doesn't show anything
Sanjay
It seems everyone here is using the following:
CODE
start /wait %systemdrive%\Install\WMP10\mp10setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"

How come I am using this:
CODE
start /wait %systemdrive%\Install\WMP10\mp10setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore /Q:A /R:N"

What does the extra '/Q:A /R:' do?
Sanjay
QUOTE (dcromwell @ Oct 15 2004, 07:31 PM)
Did it place the icon in the Quick Launch bar immediately, or did you have to run the program first and then go through the setup?

In my experience it does not place the Icon in Quick Launch Toolbar. It is only when you run the program and go thru the setup that it places the icon in the Quick Launch Toolbar. In my case since I use the foillowing registry tweaks:
CODE
;-----  Media Player Stuff
;-----
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsMediaPlayer]
"GroupPrivacyAcceptance"=dword:00000001

;-----
[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences]
"AcceptedPrivacyStatement"=dword:00000001
"FirstRun"=dword:00000000
;-----

;-----  Enable DVD in Media Player
;-----  Value: Yes or No
[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Player\Settings]
"EnableDVDUI"="Yes"
;-----

;-----  Set Windows Media Player MP3 Encoding Bitrates
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MediaPlayer\Settings\MP3Encoding]
"LowRate"=dword:0001f400
"MediumRate"=dword:0002ee00
"MediumHighRate"=dword:0003e800
"HighRate"=dword:0004e200
;-----

there is no setup process so I end up with no Icon in the Quick Launch Toolbar, although I would like it to be there.
Sanjay
QUOTE (Nilfred @ Oct 18 2004, 06:55 PM)
Well, tested unnatended on vmware works fine here confused.gif

It does not work for me at all. I have tried it in a real unattend install via 'svcpack' but nothing I just ended up with Media PLayer 9 installed. Funny thing is Windows Media Connect installed properly which also I had put in 'svcpack'. I thought Windows Media Connect required Media Player 10 to already be installed, strange.

By the way I even tried just running the file in Windows and still no luck. For some reason when you run the 'wmcsetup7.exe' it just starts with the extracting process, and then nothing... it just dissapears. I have retried the whole process several times but with no luck. I then used the winrar.sfx method as suggested by 'GreenMachine' and it works perfectly. Only problem is the size of the file being about 4mb bigger. Since I really don't have the extra space on my CD it is kinda useless for me unless I sacrifice something else. Thus I would really like to be able to make Nilfred's method work. Any ideas, how?
Nilfred
QUOTE (Sanjay @ Oct 20 2004, 07:17 PM)
For some reason when you run the 'wmcsetup7.exe' it just starts with the extracting process, and then nothing... it just dissapears. [cut] Thus I would really like to be able to make Nilfred's method work. Any ideas, how?

'wmcsetup7.exe' stand for 'Windows Media Connect Setup 7-zip Method' so there are several possibilities:
  • You have a typo.
  • You are off-topic.
  • You've the wrong installer.
  • There is something wrong between your keyboard and your chair.
BTW you also have a PM from me.
sixpack
QUOTE
[*]There is something wrong between your keyboard and your chair.
laugh.gif

sorry newwink.gif
blinkdt
Here's what I'm using from RunOnceEx.cmd:
CODE
REG ADD %KEY%\090 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\090 /V 1 /D "%systemdrive%\Extras\WMP10\MP10Setup.exe /Q:A /R:N /C:\"setup_wm.exe /Q:A /R:N /DisallowSystemRestore\"" /f
REG ADD %KEY%\090 /V 2 /D "%systemdrive%\Extras\WMP10\Energy.exe /q" /f

The above adds the "Energy Bliss" visualization, which was downloaded and renamed to 'Energy.' I later set up WMP10 as I like it, e.g., turn on the graphic equalizer, resize the window to cover the "Music/Radio" stuff, and then import EVERYTHING under the [HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer] registry setting, together with the earlier tweaks recommended to bypass the usual first-run nags--all 205KB--just to be sure. Works great. yes.gif
chyronn
QUOTE (crahak @ Oct 18 2004, 07:36 AM)
-Right click on mp10setup.exe, and select "Extract to mp10setup\"
-go in that newly created folder, press ctrl-a to select all files, right click anywhere on the files, select "Add to archive ..."
-Select Best in compression method
-Check "Create SFX Archive"
-Click on the advanced tab, then "SFX Options..." button
-In "Run after extraction", paste the command line (setup_wm.exe /Q /R:N /NoMigrate /DisallowSystemRestore)
-Click on "Modes" tab
-Check "Unpack to temporary folder", "Silent mode" to "Hide All" and finally "Overwrite mode" to "Overwrite all files"
-Click "ok" twice

That's it. So basically, extract files, create archive, best compression, sfx, add command line, tell it to extract to temp folder, all silent and to overwrite files. Takes under a minute if you know your way around the (simple) WinRAR gui.

i've done that, how do i integrate that into the runonceex file?
would it be REG ADD %KEY%\025 /V 1 /D "%systemdrive%\Install\WMP10\MP10Setup.exe with none of the switches?
Thankx
SiMoNsAyS
mine looks like
CODE
REG ADD %KEY%\049 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\049 /V 1 /D "%systemdrive%\Install\WMP10\WMP10.exe /s" /f


to be sure but "hide all" mode should be enough
chyronn
thanx, i'll try it.
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.