|
8#

楼主 |
发表于 2003-8-18 22:30:40
|
只看该作者
请教....关于XP集成WMP9等程序的方法
晕晕......
明明知道我的英文不太好......还给英文网页我?
Table of Contents:
Internet Explorer
DirectX
Windows Media Player
Security HotFixes
Credits
Thanks
Now I am listing the programs in this order for a reason. I assume you have applied any necessary service packs before reaching this point in the install. I recommend this order for a reason that will be clear once we get to the hotfix section.
Internet Explorer.
First go get the Internet Explorer Administration Kit 6. It's a free download from the Microsoft website and solves all you deployment problems. It can be found by searching for IEAK6. It even comes with a nice wizard to automate the answer files for you. I have to need to edit any on the answer files since. Anything you want to customize, either the installer or what it installs can be done from the wizard. Also comes with a nice help file.
When installing IEAK6 choose the license for 揝ite License and Intranet厰 for best results.
Now the IEAK6 kit will download all componts to install for every Windows OS. If you are only going to install IE6 on 2000 for example, you may want to save space on the CD. In that case use this trick. First run ie6setup.exe (with IE6 not installed). From the advanced options choose to save the installations files to disk. It may ask if you would like to download for any other OS's, select no or leave the checkbox's empty. Move these files to a safe place for later use.
In order to create new packages of IE in the future you should make a separate project folder for it. Create a "Drive%:\IEAK6 folder with two subfolders 揃uilds?and 揇ownload?
Run the 揑nternet Explorer Customization Wizard?Corporate Version. On the 揊ile locations?page choose ?Drive%:\IEAK6\Builds? for Destination folder. That's where I put all my different builds. In the same dialog box select advanced options to place ?Drive%:\IEAK6\Download?in the Component Download Folder location. Now I only have to download all the components once to that this folder. I can reuse the downloaded files to make as many builds as I want. On the 揗edia Selection?page choose 摂Flat?
The only page really important is 揂dd Custom Components? You can add applications, hotfixes and almost anything you want. You can also add appropriate setup parameters for a silent, no-reboot install.
In my project I have the following:
Euro Conversion Tool euroconv.exe /Q:A /R:N
Windows 2000 Compatibility Updates appupd.exe /Q:A /R:N
Visual Basic Scripting Support vbs56nen.exe /Q:A /R:N
Cumulative Patch for Internet Explorer q321232.exe /Q:A /R:N
Visual Basic 6.00.8964 sp5 VBRun60sp5.exe /Q:A /R:N
Windows NT Installer 2.0.2600.0 InstMsiW.exe /Q
Data Access Components 2.70.9001.0 MDAC_Typ.exe /Q
For q321232.exe choose 揑nstall after system restarts?and for the rest 揑nstall after Internet Explorer?
Decide on your personalized supplements and then create your own custom package.
The custom package is in %Drive%:\IEAK6\Builds\FLAT\WIN32\EN\. It consists of all files needed for installation on win95/98 and NT as well. Of course you may notice that some of the updates I added apply only to a 2000 OS. So go ahead and compare it to the installation package of IE6 for W2K, which you saved earlier.
Delete all files not needed. The q321232.exe will be inside a customX.cab and the other extra files will be in the folder. Also save ie6setup.exe, iecif.cab and iesetup.ini. Check the timestamps and you know which files to delete.
DirectX.
One of the biggest questions during deployment is how much extra's can we install before we have to reboot. Well DirectX is a pain to install while controlling when it should reboot. But you can do it. Here is how:
First extract the exe you downloaded to a folder named \directx (yeah I know, not too original)
Now make a script (bat or cmd file will do) that has the following:
@echo off
echo Installing DirectX 8.1a
echo.
echo Loading...
directx\dxsetup.exe /install /silent
The /install turns off the reboot and /silent does not bother you with any dialog boxs.
But wait, is there yet an easier way to do this. Why, yes there is. Peter Fjellstr鰉 sent in the following cool idea.
Go ahead and open the folder you installed IEAK6 into from earlier. Inside the "tools" folder is a program called iexpress.exe that we are going to use to make a custom self-extracting package. Run iexpress.exe and add the files from your directx folder. The needed switches should be included into the package "dxsetup.exe /install /silent". This way you save A LOT of space on the CD. It also makes troubleshooting easier. You can test your package before applying it to the CD. If you compress the files change the install commands in directx.bat to "directx\directx.exe" or whatever you name it to.
Now it is a good idea of course to reboot soon after this but maybe you want to throw a few more updates or extra's on first. Well keep reading then.
Windows Media Player.
Now Media Player is much the same but with different switchs.
So again extract the exe you downloaded to a folder named \wmp
Now make another script that has the following:
@echo off
echo Installing Windows Media Player 7.1
echo.
echo Loading...
wmp\setup_wm.exe /Q:A /R:N
The /Q:A removes the dialog boxes and /R:N stands for reboot:no.
But what about Peter Fjellstr鰉's idea again.
Let's return to the "tools" folder. Run iexpress.exe and add the files from your wmp folder. The needed switches should be included into the package "setup_wm.exe /Q:A /R:N". If you compress the files change the install commands in wmp.bat to "wmp\wmp71.exe" or whatever you name it to.
Easy enough, now on to hotfixs
Security HotFixes.
Now the reason I recommended this order is simple. All of the above affect the security and critical updates you will need. Why install the hotfix for IE 5.5 when you will be using version 6? Why patch Media Player 6.4 when you will be using 7.1? You get the idea. Now you have too ways to figure out what needs to be installed. The first and easist is to download hfnetchk.exe from Microsoft, search for Q303215. This will tell you all the updates you have left. The other way is too just go to the windows update site and search for the downloads behind everything on the screen. The only benefit to the windows update site is that it gives you more than just the security updates. Good to keep in mind.
Now we have the updates downloaded but how to install them? First go download qchain.exe from Microsoft again, search for Q296861. Now so that I don't install any patch that I already may have somehow I also download cmdinfo from SavillTech Ltd... I would highly recommend purchasing the full version if you can. This is the same company who makes NTFSPRO. Great software. Anyway, if you use the following commands in a script you will only update the necessary files.
@ECHO OFF
setlocal
set PATHTOFIXES= \
CMDINFO /ht:Q252795
IF ERRORLEVEL 0 GOTO a
IF ERRORLEVEL 1 GOTO 1
:a
252795_w2k_sp3_x86_en.exe -z -m -q -n
GOTO 1
:1
CMDINFO /ht:Q276471
IF ERRORLEVEL 0 GOTO b
IF ERRORLEVEL 1 GOTO 2
:b
Q276471_w2k_sp3_x86_en.exe -z -m -q -n
GOTO 2
:2
CMDINFO /ht:q296441
IF ERRORLEVEL 0 GOTO c
IF ERRORLEVEL 1 GOTO END
:c
q296441.exe /Q:A /R:N
GOTO END
:END
qchain.exe
echo.
echo You should now reboot the computer
echo.
echo Thanks, Todd
I just grabbed a few files from my old list now, so you may not want to use these exact files. Now pay attention to the different switches that I used from :b to :c. Check each hotfix to ensure which set of switches to use, or if MS has come up with a new set again. The first set of swithes are:
-z for no reboot
-m unattend install
-q quite install
-n does not create a uninstall directory
While the second set used for :c follow the rules used for Windows Media Player:
/Q:A quite unattend install
/R:N no reboot
You could change the last install to force reboot by changing the -z to a -f to force a reboot. Your other option is to use the shutdown.exe from the Resource Kit. If you add the command line shutdown.exe /l /y /r /t:0 at the end it will reboot the computer. Remove /r to just shut the computer down.
|
|