上海大学乐乎博客 > Windx ist wach! > 抛弃番茄花园——定制自己的系统

8/26/2008 8:55:14 AM | 抛弃番茄花园——定制自己的系统

说到底,番茄花园主要传播的是夹带流氓软件的精简版系统,如果是传播修改技术,那么它不会有今天

这里,推荐款定制自己系统的软件

Windows 2000, XP x86/x64 and 2003 x86/x64-》nlite
此帖由 windsage 在 9/6/2008 5:53:40 PM 进行编辑...
(本帖属于藏珠阁,下载需要5个金币)nLite-1.4.8.rar ( 2380 KB ) 下载次数 32

评论

即使是Vista,同样可以满足需求
vLite-1.2.rc.rar ( 1370 KB )

发布者 windsage
8/26/2008 8:57:35 AM


一直使用深度的精简系统 超干净
此帖由 IceCoffee 在 8/26/2008 9:36:03 AM 进行编辑...

发布者 IceCoffee
8/26/2008 9:35:50 AM


求人不如求己

发布者 windsage
8/26/2008 10:12:08 AM


引用 IceCoffee 发表于 8/26/2008 9:35:50 AM 的话:
一直使用深度的精简系统 超干净
此帖由 IceCoffee 在 8/26/2008 9:36:03 AM 进行编辑...

一直使用自己的精简系统 超完美

发布者 windsage
8/26/2008 10:12:44 AM


1. nLite allows you to customize your installation of Windows XP, Windows 2000, or Windows 2003. You can integrate service packs and hotfixes from Microsoft directly into your windows distribution files without having to re-download and install them every time you need to re-install windows.
nLite 允许你自定义Windows XP, Windows 2000, 或Windows 2003的安装.
你可以直接从微软集成service packs 和hotfixes 到你的 windows 分发文件里而不需要在你每次重装系统时重新下载它们

2. There is also the option to remove unwanted components from within windows. Many applications are automatically included every time windows is installed. Not every person needs or even wants all of these applications which Microsoft considers to be necessary. By removing these unwanted components you can free up space within your setup and ultimately save space on your hard drive after installation.
另外还有从windows里移除不想要的组件的选项. 
每次windows安装后很多程序是自动包含的.
不是每个人都需要或想要这些微软认为是必需的程序.
 移除这些不要的组件,你可以在安装中只需较少空间最终在安装后节约磁盘空间.


3. nLite also provides a way to customize your installation by allowing numerous tweaks to the way windows looks and operates after it has been installed. You can even bypass Microsoft's bulky unattended setup instructions and do it the easy way. The nLite way!
nLite 还提供一种自定义安装模式,允许多种调节 windows安装完后的外观和操作的设置
你甚至可以绕过微软的巨笨的无人值守安装介绍而用一种简单的方式.  nLite的方式!



发布者 windsage
8/26/2008 12:54:13 PM


好东西~

发布者 whatUwant
8/26/2008 1:00:47 PM


Requirements:

You must be running any 32 or 64 bit version of Windows. Windows 9x not supported.
必须是32或64位Windows,不支持Windows 9x

nLite needs .NET Framework 2.0 to be installed. If it is not you will be asked to do so uppon installer startup
nLite需要安装.NET Framework 2.0,如果没有它会提示你


Also, you need to have your Windows installation CD for the original Windows installation files
另外,需要原始Windows安装文件

发布者 windsage
8/26/2008 2:18:29 PM


  • Create a folder somewhere on your hard drive to copy the windows source files into
  • 创建一个文件夹用以复制Windows源文件
  • I called mine 'XP_Source' but you can use whatever name you prefer. Just make sure there is adequate space on your hard drive to hold the files
  • 可以使用任意名称只要保证有足够空间
  • Copy the full content from the distribution cd into this folder
  • 复制分发cd完整内容到文件夹
  • Start nLite
  • 运行nLite

- Welcome screen shows you which version of nLite you are running and allows you to choose an alternate language.
欢迎画面告诉你这是哪个版本,并且让你选择语言
- To continue click on 'Next'.
点“Next"继续

PS:有中文选择

发布者 windsage
8/27/2008 12:47:22 AM


vLite太恐怖了

竟然要装微软的1G大小的部署工具才能用
彻底放弃。。。

发布者 whatUwant
8/27/2008 1:10:28 PM


nLite还是不错的

发布者 whatUwant
8/27/2008 1:10:59 PM


引用 whatUwant 发表于 8/27/2008 1:10:28 PM 的话:
vLite太恐怖了

竟然要装微软的1G大小的部署工具才能用
彻底放弃。。。

这就是为什么精简版Vista不多的缘故

发布者 windsage
8/27/2008 1:12:17 PM


- We must now direct nLite to the folder which contains the windows installation files
必须指向有windows安装文件的文件夹
- To do this Click on 'Browse'.
选择浏览


发布者 windsage
8/27/2008 3:52:16 PM


- Select the folder you created above
选择你创建的文件夹


发布者 windsage
8/27/2008 8:52:33 PM


- nLite recognizes the language and version of your windows installation files
- nLite 会识别windows的版本和语言


发布者 windsage
8/28/2008 5:22:14 PM


- You can save your current presets for future use or load presets from the last time you used nLite
- 你可以保存设定供以后使用或者载入上次使用nLite的设定

发布者 windsage
8/28/2008 7:03:25 PM


可以把WinXp的默认编码改成UTF8吗?

发布者 dillyking
8/28/2008 9:04:30 PM


WinXP本就支持UTF8,默认编码是应用程序的问题

发布者 windsage
8/28/2008 9:26:17 PM


- At this screen we have the options to choose what we would like nLite to accomplish for us
这画面里有如何让nlite完成工作的选项
- These are some of the most advanced and customizable features within nLite
这些是nlite中最高级和自定化的的功能的部分
- In this example all of the pages are selected, but you can pick and choose which ones to proceed with
在例子中所有的页面都选择好了,但实际可以只选需要的部分

发布者 windsage
8/28/2008 9:53:39 PM


- To Integrate a Service Pack first download the correct pack for your operating system and save it to your hard drive
集成Service Pack 首先需要下载对应系统的正确的pack到硬盘里
- Again, you can save it anywhere you want to on your hard drive. I personally chose to save it to my desktop so that I can delete it afterwards
可以保存到任意地方
- As you can see, nLite makes things easy for us!
你可以看见,nLite让事情变得简单
- Links to download the most recent service pack are embedded within nLite
常用service pack 下载链接已集成到nLite里
- We must now direct nLite to the service pack file that was downloaded in the step above
使nLite指向 service pack 文件
- Click on the 'Select' tab and the following box will appear
点击“选择”会出现对话框

发布者 windsage
8/28/2008 10:55:05 PM


- Use the pull down arrow at the top of the window to help choose the correct file
选择正确的文件
- When you have located it, click on it, and and then select the 'Open' tab
当定位后,选择“打开”
- nLite will automatically extract and integrate the service pack into your windows distribution folder
nLite会自动解压并集成 service pack到windows分发文件夹

发布者 windsage
8/29/2008 12:55:13 PM


- In this window we have the option to add hotfixes and update patches into the installion
在此窗口可以添加hotfixes和升级补丁到安装里
- I created a folder on my hard drive where I have downloaded all patches and updates for easy reference
把所有补丁和升级放到一个文件夹里可以方便些
- If you are using Internet Explorer, run Windows Update and look for the updates. Then download the actuall file by searching for it within Microsoft's website
可以到微软网站下载升级文件

发布者 windsage
8/29/2008 1:20:00 PM


以后再也吃不上番茄了!!

发布者 天下无双
8/29/2008 2:18:11 PM


连深度这几天也在避难,系统分坛一直在改造!看来以后盗版的都不敢留名了,呵呵!!

发布者 天下无双
8/29/2008 2:21:39 PM


引用 chentao0709 发表于 8/29/2008 2:18:11 PM 的话:
以后再也吃不上番茄了!!

想吃番茄自己中

发布者 windsage
8/29/2008 3:36:19 PM


可恨啊,上海地贵啊,买不起地啊!!有买地的钱,不知道可以买多少吨番茄啊!
此帖由 chentao0709 在 8/29/2008 3:47:02 PM 进行编辑...

发布者 天下无双
8/29/2008 3:46:11 PM


- After you have added all of the hotfixes which you have previously downloaded you should get something that looks like this
添加完所有hotfix会出现如下画面
- Dont worry if you are not sure about whether an added file is supported. nLite will tell you
不必担心添加的文件是否被支持,nLite 会有提示

发布者 windsage
8/29/2008 4:03:57 PM


- Next we arrive at the option to integrate drivers that Windows does not install by default
下面是集成Windows默认没安装的驱动
- These can be drivers for almost any type of hardware as long as you use the correct driver
只要你选择正确基本上可以是任意硬件的驱动

这就是我拒绝番茄、深度的原因之一,没有包含我电脑上的一些驱动

发布者 windsage
8/29/2008 4:19:55 PM


- Click on the 'insert' tab to search for drivers to install, make sure that you open .inf files only
点击“insert”来打开要安装的驱动,记住只能打开INF文件
- If your drivers are only in the .exe format you can sometimes extract them with Winzip, Powerarchiver, Winrar ...
如果驱动是EXE格式可以用软件解压

发布者 windsage
8/29/2008 5:08:22 PM


好像没Ghost来得简单,只要安装一次,以后就可以直接还原了

发布者 whatUwant
8/29/2008 5:23:36 PM


NOOB,Ghost和这个不是一回事
Ghost是还原系统的方式,又用于安装系统
而nlite是精简系统安装文件
关公战秦琼


像番茄深度的说白了就是先靠这个把系统精简了
傻瓜版的则是用这个精简后安装的系统再做成GHO文件
此帖由 windsage 在 8/29/2008 5:54:58 PM 进行编辑...

发布者 windsage
8/29/2008 5:54:40 PM


明白了

发布者 whatUwant
8/29/2008 7:22:57 PM


- You should then have something similar to the screen below:
应该能得到相似如下的画面

发布者 windsage
8/29/2008 7:35:58 PM


-----------------------------------------
- Click the 'Next' button and you will be taken to the 'Remove Components' page
下一步来到“组件移除”页面
- In order to prevent you from removing a component that you need, make sure that you select the appropriate options in the next window
为了避免移除你需要的组件,确保你在下个页面中选取适当的项目

发布者 windsage
8/29/2008 7:55:51 PM


- We then come to the Components selection
来到组件选择页
- As you click on each corresponding + sign you will see a brief description in the right preview pane
当你点击相应的项右边面板即出现描述
- Pay special attention to anything highlighted in Red, be sure of what you are doing before removing these ones!
对红色高亮的要特别注意,在移除它们前最好清楚你在干什么

发布者 windsage
8/29/2008 8:00:18 PM


- The 'Advanced' button is used to add or remove additional files
‘高级’用于增加或删除附加文件
- If you are not sure about this it is best not to even click it
如果拿不准最好就别点击它
- A friend of mine once stated, 'when it doubt, leave it out'.. lol
某人说,对它有疑问,就别动它


发布者 windsage
8/29/2008 8:11:38 PM


-----------------------------------------------------

- If you click on the 'Next' button you will arrive at the Unattended Setup portion
接下来是无人值守安装项
- This section allows you to provide an answer ahead of time to all of the questions that windows typically asks during installation, such as your cd key, networking information, and time zone
你可以设置CDKEY,网络信息,时区等问题的答案
- This can really speed things up if it is done correctly
如果正确的做会很快


发布者 windsage
8/29/2008 8:38:09 PM


- Browse through all the tab pages and make adjustments if needed
浏览所有标签页作出需要的调整

发布者 windsage
8/29/2008 9:55:13 PM


- Options page allows some further tweaking which takes place automatically while windows installs
选项页允许一些在win安装时自动加载的优化设置
- If you click on the 'Services' button you can change which services run in the background while windows runs
点击“服务”可以改变win运行时开启的服务
- Click on 'Enable' and then select 'Reset' to modify each value
点“启用”选择“重置”来改变每个值
- Some of these services are necessary for windows to perform certain tasks while it is operating
一些服务对win运行任务是必须的
- If you make a mistake here you can always change these values after windows installs by typing in 'Services.msc' in the 'Run' on your 'Start menu'.
如果你误改了某个值,在win安装后仍然可以运行'Services.msc' 修改

发布者 windsage
8/29/2008 10:30:56 PM


- On the Patches page you can use some of the commonly used patches, they are generic and thus recommended over overwriting with prepatched files from the net.
在补丁页面里有些常用补丁,它们是通用的,因此建议使用

发布者 windsage
8/30/2008 9:48:15 AM


- Here we have some additional tweaks which are optional as well - Click 'Next' to perform more tweaks with the way windows looks and feels after it is installed
这里还有一些可选优化-点击下一步来设置更多关于WIN安装后的外观和操作优化


发布者 windsage
8/30/2008 2:00:09 PM


- When you have re-configured everything to your liking, click on 'Next' to continue
当你完成了所有设置,继续下一步


发布者 windsage
8/30/2008 6:40:25 PM


- nLite will ask you to confirm, select 'Yes' to continue
nlite会要求确认,选择‘是’以继续

发布者 windsage
8/31/2008 12:20:27 PM


- nLite will start processing all of the selected tasks
nlite会开始处理所有选中的任务
- The exact length of time it takes will vary on your system and on the number of tasks it is asked to perform
具体时间取决于你的系统和要运行的任务数
- Click the 'Next' to create an ISO compatible for cd burning
点击“下一步”创建ISO来烧录CD



发布者 windsage
8/31/2008 5:47:45 PM


Click on the 'Make ISO' button and nLite will ask you were you would like to save this file
点击'Make ISO' ,nLite就会提示保存文件

发布者 windsage
9/1/2008 1:31:45 AM




- You now have a bootable ISO image of your customized windows installation!
现在一个自启动ISO镜像就完成了
- To create the new cd open the ISO file with your cd writing software
要创建新CD需要用CD刻录软件打开ISO文件

发布者 windsage
9/1/2008 10:48:06 AM


How to integrate WMP11?
整合WMP11

Download the WMP11 installer from Microsoft, install the WMP11 Slipstreamer then simply run nLite and insert the WMP11 installer into the Hotfixes page. Report any bugs related to the WMP11 Slipstreamer





下载微软WMP11安装包
安装WMP11 Slipstreamer 地址:http://www.boooggy.org/slipstreamer/
然后运行nLite把WMP11 安装包 放在Hotfixes 页中
有问题可以去WMP11 Slipstreamer 的论坛
此帖由 windsage 在 9/1/2008 12:13:10 PM 进行编辑...

发布者 windsage
9/1/2008 12:10:52 PM


How to integrate IE7、8?
如何整合IE7、8?
 
 
Download the IE7 installer from Microsoft and insert it into the nLite Hotfixes page, simple as that.
下载微软IE安装包,然后在 nLite Hotfixes 页中添加,很简单
 

发布者 windsage
9/1/2008 3:12:10 PM


Entries.ini syntax
 
Entries.ini 语法
Here is the quick explanation of the supported entries.ini values which you can use to make your own addons for nLite.
这里是一些关于entries.ini 的简述,这能使你制作自己的nLite插件
I will just list them all with brief explanations so that those who have previous experience can use the new functions. Going to update this page later on with more detailed info.
这里只简单列出所有的语句,有经验者可以使用一些新功能

nLite v1.4.9 and newer:
nLite v1.4.9 及更新版本语句:
[NeededComponents]
 

Example:范例:
 [NeededComponents]
 187,331,307
This would keep or warn if missing Internet Explorer, Messenger and System Restore. Full list of component index numbers is in the translation file Lang\Translation.txt under [Components]. Instead of S[index] just write index.
会保留或警告如果不装Internet Explorer, Messenger, System Restore的话
完整的组件索引号在Components下的Lang\Translation.txt

  • keepfiles (protect needed files from removal)
[KeepFiles]
 

Example:
 [KeepFiles]
 srestore.dll,migwiz.exe
This would keep a certain files from removal.
防止特定文件被移除

发布者 windsage
9/1/2008 10:06:51 PM


nLite v1.4 and newer:
nLite v1.4 更新版本支持语句:
[UpdateCabs]
 

Example:
 [UpdateCabs]
 i386\file1.cab, file1files

 [file1files]
 cabfile1.dll
 cabfile2.exe
This will add specified files to the specified existing CAB file and thus updating it. Useful for MCE cabs.
加入指定文件至指定的CAB包对其进行升级。对MCE包很有用


  • strings (same as [filenames], for %var%)
用于设置变量

发布者 windsage
9/2/2008 1:00:30 PM



  • adddirective (add a new directive in the specified file e.g. [MyProgram])添加指令到指定文件
    [AddDirective]
     

    Example:
     [AddDirective]
     wmp.inf,MyEntries
    This will add [MyEntries] inside the wmp.in_ file. Then you can use EditFile to add entries to it.
    这样可以把 [MyEntries]加入到wmp.in_里。然后可以用EditFile来添加入口


     
  • txtsetup_files_pro (lines to write inside txtsetup.sif for other than Home Windows versions) 编写txtsetup.sif 文件,不适用家庭版

发布者 windsage
9/2/2008 4:01:01 PM


  • dosnet_files_pro (lines to write inside dosnet.inf for other than Home Windows versions)
  • 编写dosnet.inf,不适于家庭版
  • txtsetup_files_home (lines to write inside txtsetup.sif only for Home Windows versions)
  • 编写txtsetup.sif ,只适于家庭版
  • dosnet_files_home (lines to write inside dosnet.inf only for Home Windows versions)
  • 编写dosnet.inf,只适于家庭版   
  •  
  •  
  •  
  • Txtsetup.sif 是一个安装信息文件(sif),主要用于 Windows 的文本安装模式(就如其名)。而且,它还可能会被其它的一些东西使用,例如,Windows PE 启动时也会用到它(Windows PE 用到了文本安装模式的末尾和 GUI 安装模式的开始部分)。文本模式完成后,这个文件就没什么用了;它不会被复制到 Windows 安装文件中(GUI 安装模式用到的安装文件)。因为 Windows 不会用到它,所以,像是系统文件保护(SFC)这样的功能就不会影响到它。它也没有数字签名,因此你可以随意修改它而不会出现问题。
        可以利用 txtsetup.sif 向安装文件中添加第三方驱动,修改安装Windows 的最小系统需求,添加或删除注册表预设,以及更多。
     

发布者 windsage
9/3/2008 1:05:57 PM


制作自己的安装光盘,这个文件就必须仔细研究一下,有用的地方不少。txtsetup.sif是制作安装光盘中极为重要的一个文件,里面记录了安装文件所在位置以及安装时文件拷贝的目标文件夹,实际作用其实就是把指定的文件按要求拷贝到预设好的位置上最可能用到的是以下几段:
[SourceDisksNames.x86]——用代码表示源文件的位置
[WinntDirectories]——用代码表示文件拷贝的目标文件夹,其根目录为 %WinDir%,即安装指定的Windows文件夹
[SourceDisksFiles]——根据前面设定的代码表示文件拷贝的具体细节
下面3段为集成 SATA、SCSI 等驱动时所用:
[HardwareIdsDatabase] —— 硬件标识
[SCSI.Load] —— SCSI驱动加载
[SCSI] —— SCSI设备说明
[HiveInfs.Fresh] —— 全新安装时根据指定的 inf 文件中的字段添加注册表信息
[HiveInfs.Upgrade] —— 升级安装时根据指定的 inf 文件中的字段添加注册表信息

发布者 windsage
9/3/2008 2:46:24 PM


若想把 txtsetup.sif 中的某行移除掉,那么应该在此行前添加一个分号(;)或是把这行整个的删掉,通常,把 txtsetup.sif 中的某行删掉之后,那么还需要把 dosnet.inf 中的对应行删掉。如果想添加一行,那就比较复杂了,下面是 txtsetup.sif 的某个示例行:
locsecw.chm = 1,,,,,,,21,0,0,defrag.chm
locsecw.chm 是 Windows 安装文件中的某个文件。
1 代表着它是个初始(RTM)XP 文件,通常你会看到 1 或 100,1 的定义来自于[SourceDisksNames.x86],表示源文件为原版本且在光盘上i386文件夹,100表示源文件为SP补丁中较新版本的文件,100 代表它是个SPx 文件(SP1,SP2..SPx);
21 代表着它的复制目的地,其相对于 %windir% 文件夹,在这里,21 是让安装程序把 locsecw.chm 复制到 %windir%help。具体哪些值代表哪些目录可以在 [WinntDirectories] 中找到。一般情况下,[WinntDirectories] 中定义的目录都是相对于 %windir% 文件夹的子目录,这就意味着你把文件添加到 txtsetup.sif 中,那么它就会被复制到 %windir% 文件夹中(可能在其子文件夹中)。
第一个0为升级代码位,含义为:(升级时)
0-总拷贝文件
1-安装文件夹中有该文件才拷贝
2-安装文件夹中有该文件时不拷贝;
3-不拷贝文件

发布者 windsage
9/3/2008 2:55:16 PM


第二个0为新安装代码位,含义同上(全新安装时)另外据说此代码若不为0,其前面需多加2个逗号
defrag.chm表示将目标文件改名为此,因此,这一行表明,不管是升级还是全新安装都将源文件locsecw.chm拷贝到%WinDir%\help文件夹下并改名为defrag.chm,就如在示例中所看到的一样,可以在行的末尾重命名要复制的文件。Microsoft 用它来区分 Windows XP Home 和 Pro 版。Home 的文件带有P, Pro 的文件带有 W。W 可能是代表着工作站(WorkStation) 的意思,P 可能是代表着个人版(Personal) 的意思,Windows XP Home 最初就叫做 Whistler Personal。
示例;
cmconW.chm = 1,,,,,,,21,0,0,cmconcepts.chm - xp pro txtsetup.sif
cmconP.chm = 1,,,,,,,21,0,0,cmconcepts.chm - xp home txtsetup.sif
就如所见的一样,XP Home 和 XP Pro 的文件并不相同,但是最后复制到系统中的文件名称都一样。同时请注意,txtsetup.sif 支持长文件名。

发布者 windsage
9/3/2008 3:17:17 PM


现在来看看另一行:
autofmt.exe = 1,,,,,,_x,2,0,0,,1,2
“_x”代表着这个安装盘上的这个文件没有经过压缩,如果没有这个,那么安装程序会认为这个文件已被压缩过了。这个对于保证安全性和可靠性很重要。每个 XP 文件都被列在了“layout.inf”中,包括这个文件的大小(按字节计算),很明显,一个文件的压缩前和压缩后的大小是不会相同的。如果“txtsetup.sif”告诉安装程序“某个文件未被压缩”,那么安装程序就会在“layout.inf”中查找它的文件大小以确保这个文件未经修改或是损坏。如果文件大小与“layout.inf”中记录的不同,那么 XP 安装程序就会报错并停止安装。这个能够保证安装程序的安全性,以确定文件是否被修改过。它还能验证文件是否已被损坏,如果文件已被损坏,那么稍后安装时就可能会出现问题。如果以“_x”为关键字在“txtsetup.sif”进行搜索,那么就能找到所有未经压缩的 Windows 安装文件。
有个很重要的事情就是,txtsetup.sif 并没有告诉安装程序应当从哪里获取安装文件。它唯一的功能就是按照正确的文件名把文件复制到正确的目录中。

发布者 windsage
9/3/2008 3:18:52 PM


举例说明:
比如说,把 tweakui 集成到 Windows 安装文件中,但是不想使用无人值守的方式。那么利用 txtsetup.sif 可以很轻松地做到这点。
第一步:下载 Tweak UI:下载后,用 WinRAR 把 tweakui.exe 提取出来,或是先安装这个程序再把windows\system32 中的tweakui.exe 复制出来;
第二步:把 tweakui.exe 复制到 XP 安装文件所在的文件夹中,把 XP 安装盘上的文件复制到硬盘上,然后把 tweakui.exe 放到 i386 文件夹中;
第三步:修改 txtsetup.sif 和 dosnet.inf,把以下行添加到 dosnet.inf 中:
d1,tweakui.exe
把以下行添加到txtsetup.sif 中:
tweakui.exe = 1,,,,,,,2,0,0
现在运行安装程序,dosnet.inf 会把 tweakui.exe 复制到 C:\$WIN_NT$.~LSi386 中,接着重启之后,就会进入文本安装模式了,而 txtsetup.sif 会把 C:\$WIN_NT$.~LSi386 中的 tweakui.exe 复制到 C:\Windows\System32 中,当整个安装进程完成之后,若要运行 tweakui.exe,那么只需转到 “开始”>”运行”>输入:tweakui,点击确定就行了。那为什么不在新添加的行中使用“_x”呢?这是因为 tweakui.exe 不是 XP 的初始安装文件,XP 不需要检查它(因为它未在 layout.inf 中进行定义).

发布者 windsage
9/3/2008 3:21:04 PM


利用“Txtsetup.sif”和“xpinstall”集成安装打补丁

    将补丁以及xpinstall等相关文件准备好,放在同一文件夹下,并配置好“xpinstall.xml”(用xpinstall来安装补丁比较美观)。用WinRAR将这些文件做成自解压压缩文件“xp_patch.exe”,并在自解压选项的模式中指定解包到临时文件夹和全部隐藏,以及指定“xpinstall”为解压后运行的程序,用“makecab”压缩该文件,并把文件拷贝到i386文件夹中
    在 [SourceDisksFiles] 中添加:
xp_patch.exe = 1,,,,,,,1,0,0
    在“winnt.sif”中的 [GuiRunOnce] 添加:
Command0="%WinDir%\xp_patch.exe"
    从硬盘安装时,安装程序会先利用“dosnet.inf”中的定义把文件复制到“C:\$WIN_NT$.~LS”中。然后,安装程序才会利用 Txtsetup.sif 把这个文件夹中的文件复制到对应的文件夹中。因为只能利用“txtsetup.sif”把文件复制到“%windir%”文件夹下,所以它的用途有限,主要是用它来添加注册表预设和驱动。



发布者 windsage
9/3/2008 3:23:23 PM


    用“txtsetup.sif”来添加自定义的注册表条目
    每次文本安装模式即将结束时,安装程序就会利用“txtsetup.sif”中的某些定义来创建注册表(文件复制结束时)。如果是全新安装的话,安装程序就会按照“txtsetup.sif”的 [HiveInfs.Fresh] 区段中的定义来生成注册表。可以使用这个区段来添加自己的注册表条目。如果已经把注册表的设置保存为一个“.reg”文件的话,那么需要用“.inf”文件导入这些设置。将“.reg”文件重命名为“settings.reg”并将其置入 i386 文件夹中,将以下内容复制到一个新文件中并另存为 settings.inf,然后将其保存到 i386 文件夹中。
[Version]
Signature = "$Windows NT$"
DriverVer=07/01/2001,5.1.2600.1106
[update]
HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce",
"MyUpdate",0x00020002,"%systemroot%\regedit.exe /s %systemroot%\system32\settings.reg"

发布者 windsage
9/3/2008 3:26:38 PM


添加 inf 条目
    如果已经有了一个“.inf”文件,那么将其复制到 i386 文件夹中并将其重命名为“settings.inf”,并确保这个“.inf”文件中有个名为 [update] 区段,只有这个区段下的设置会被使用。
    可以用 makecab.exe 把 settings.inf 压缩成 settings.in_,但这只是可选的,添加方法是打开 txtsetup.sif 并转到[HiveInfs.Fresh],按以下添加一行:
[HiveInfs.Fresh]
AddReg = hivedef.inf,AddReg
AddReg = hivesys.inf,AddReg
AddReg = hivesft.inf,AddReg
AddReg = hivecls.inf,AddReg
AddReg = hiveusd.inf,AddReg
AddReg = dmreg.inf,DM.AddReg
AddReg = settings.inf,update
    再把以下 2 行添加到“txtsetup.sif”的 [SourceDisksFiles] 段下,如果要使用一个 .reg 文件,那么就要添加第二行,不需要的只需添加第一行:
settings.inf =1,,,,,,_x,3,,3
settings.reg =100,,,,,,,2,0,0
    把以下 2 行添加到“dosnet.inf”的 [Files] 段下,如果要使用一个“.reg”文件,那么就要添加第二行,不需要的只需添加第一行:
d1,settings.inf
d1,settings.reg
    现在开始安装 XP,当文本安装模式结束时就会导入注册表设置了,不需要使用无人值守安装方式。

发布者 windsage
9/3/2008 3:48:43 PM


疑难解答
    文本模式安装程序所用的解释引擎不同于 SetupAPI,因此,处理相关的“inf”文件时要小心点以免设置无效。当编辑用于文本安装模式下用的“inf”文件时,应当遵循以下方针:
1 - 避免 strings. 就是那些在 [strings] 下定义的字符串,听说在文本安装模式下无法使用字符串;
2 - 总是使用引号,请尽可能地用引号括住设置;
3 - 避免缩写,在一般的 inf 中可以使用 0x1 或 0x1002. 而在文本安装模式下,以上值不起作用.;
4 - 避免不必要的空格,这个可能不是强制性的,但最好这么做;
5 - 无法确定能用文本安装模式 .inf 做什么事情? 那么请参考 hivesys.inf,hivesft.inf。
    以下是 5 个不同的“.inf”设置,1 是正确的,而其它的则无法工作且文本模式安装程序会报错:
1 - HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix\KB826939","Installed",0x00010001,1
2 - HKLM,SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix\KB826939,"Installed",0x00010001,1
3 - HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix\KB826939","Installed",0x10001,1
4 - HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix\KB826939","Installed"",0x00010001,1
5 - HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Hotfix\KB826939",Installed,0x00010001,1
1 –此行没有任何错误,注意第二段和第三段都用引号括住了,必须用引号将其括住;
2 –此行无法工作,因为第二段没用引号括住;
3 - 此行无法工作,因为 0x00010001 被搞成了 0x10001,在正常情况下没有问题,但是在文本安装模式下,安装程序就无法理解它的含义了,有所怀疑的话,请不要使用任何缩写;
4 - 此行无法工作,因为 Installed 后有两个引号;
5 - 此行无法工作,因为 Installed 没有被引号括住。

发布者 windsage
9/3/2008 3:58:20 PM




  • registry_addreg (add registry entries, INF syntax)添加注册表项,INF语法
[registry_addreg]
 

Example:
 [registry_addreg]
 HKLM,"SOFTWARE\Microsoft\Windows","Test",0,"Oh"



  • registry_delreg (remove registry entries, INF syntax) 删除注册表项,INF语法

[registry_delreg]
 

Example:
 [registry_delreg]
 HKLM,"SOFTWARE\Microsoft\Windows","Test"
This will remove the added value Test which was added by using the registry_addreg directive.



发布者 windsage
9/3/2008 4:04:19 PM


  • obsolete_files (remove files) 移除文件
  • guirunonce (lines to write inside winnt.sif - guirunonce) 写winnt.sif - GUIRUNONCE 图形化一次运行
  • dosnet_files (lines to write inside dosnet.inf) 写dosnet.inf
  • txtsetup_files (lines to write inside txtsetup.sif) 写txtsetup.sif

发布者 windsage
9/3/2008 4:10:22 PM


  • txtsetup_fileflags (lines to write inside txtsetup.sif - [FileFlags]) 写入语句txtsetup.sif  [FileFlags])
  • txtsetup_dirs (lines to write inside txtsetup.sif - [WinntDirectories]) 写入语句txtsetup.sif [WinntDirectories]
  • txtsetup_remove (lines to remove from txtsetup.sif) 删除语句txtsetup.sif
  • dosnet_remove (lines to remove from dosnet.inf) 删除语句dosnet.inf

发布者 windsage
9/3/2008 4:24:01 PM


  • sysoc (lines to add to sysoc.inf - [Components]) 添加语句至sysoc.inf - [Components]
  • editfile (lines to add into the specified file) 编辑指定文件
  • extrafileedits (lines to edit or add into the specified file) 编辑或添加指定文件的语句

发布者 windsage
9/3/2008 4:40:38 PM


[General]
 

Supported variables:

builddate
description
language
title
version
website


Supported switches:

forcelang
flags=IgnoreFileVersions


Example:

 [General]
 builddate=12/17/2006
 description=RyanVM's Post-SP2 Update Pack for Windows XP
 language=English
 title=RyanVM Update Pack
 version=2.1.5a
 website=http://www.ryanvm.net/msfn/
 forcelang=English
First variables are more or less selfexplanatory and are used only for displaying purposes. Variables, first flags, it is the new line which for now has only the IgnoreFileVersions variable which is needed for packs which overwrites some existing file and has lower version. So by using IgnoreFileVersions you are telling nLite to not skip virtually older files.
forcelang will instruct nLite to allow only specific Windows language version for this addon to be used on.

发布者 windsage
9/3/2008 4:56:56 PM


How to reinstall WMI?
 
This is helpful if you want to reinstall WMI without reinstalling the OS, in order to be able to run 3DMark06 (they added some SystemInfo checking which uses this particular service). Extract (Open with Winrar, Winzip or similiar) file wbemoc.in_ from the full Windows CD i386 (or amd64) folder to Windows\inf folder then run (Start - Run) this: rundll32 advpack.dll,LaunchINFSection wbemoc.inf, WBEM When it asks for the files point it to the full Windows CD, i386 (or amd64) folder. After it finishes copying, reboot the machine. Try 3DMark. If that didn't help at first, as it didn't for me but it was necessary for the next steps, get a tool called Dial-a-Fix.
In it, under Tools choose "Reset WMI" and Go. Reboot after finished. If maybe it still doesn't work then try this but be careful when tampering with the registry.
Repeat it all but first add to the end of the string (do not replace the whole string, just add to the end of it), this: ;%SystemRoot%\System32\Wbem To the registry key using regedit (Start - Run - Regedit) under: HKEY_LOCAL_MACHINE
\SYSTEM
\CurrentControlSet
\Control
\Session Manager
\Environment
\Path
So it looks something like: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem



怎样重新安装WMI?
        这将有助于重新安装 WMI 而不必重新安装操作系统, 这样便可以运行3DMark06 (其加入了用某些特殊服务检测系统信息). 解压I386(amd64)中的 wbemoc.in_ 到 Windows\inf 文件夹并在开始菜单运行选项中运行:“ rundll32 advpack.dll,LaunchINFSection wbemoc.inf, WBEM ”(不带引号),此时会提示查找相应的文件,指定到Windows CD的相应目录,文件复制完成以后需要重启计算机。试试看3Dmark是否可以运行了。如果此时还不能奏效的话,您需要一个叫做 Dial-a-Fix软件的帮助.在此工具中选择 "Reset WMI"(重设WMI),继续 完成后重启计算机即可,如果还不奏效的话你需要小心的操作注册表.重复上述工作但是在开始时添加字符串到末尾部分:%SystemRoot%\System32\Wbem ,这样注册表中: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path 键值应该是下面这个样子的: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

发布者 windsage
9/3/2008 5:17:22 PM


How to enable Unattended setup?
 
After setting up nLite unattended page and letting it process, you can start Unattended installation from HDD from that folder, inside i386 subfolder with command:
"winnt32 /unattend:winnt.sif"
note: For this to work you need to keep Manual Install component. Better and recommended way would be to make ISO and burn it on CD then boot from it.

怎样启用无人值守安装?
        通过nLite设置无人值守安装页面处理以后你就可以通过硬盘安装此系统,进入系统所在文件夹后用命令: "winnt32 /unattend:winnt.sif" 注意: 要使用此功能你必须保留手动安装组件. 当然最好的方式是制作并刻录ISO文件,从CD ROM启动安装系统。
 

发布者 windsage
9/3/2008 7:13:20 PM


Unattended display settings don't work?
 
Because your display drivers were _disibledevent="newsdesc"> 
You need to use WHQL signed drivers or remove default driver of the same type in Component Removal page.


无人值守安装的显示设置不起作用?
        应该是你整合的驱动较老,应该整合适当的驱动并移除系统中默认的显示驱动。


我整合了显卡驱动但是为什么安装后仍然是系统默认的驱动?
        你需要使用通过 WHQL 数字签名的驱动或者在组件移除页面移除相应的系统默认驱动。 

 
 


此帖由 windsage 在 9/3/2008 8:13:15 PM 进行编辑...

发布者 windsage
9/3/2008 7:19:26 PM


Can I integrate programs?
 

Not really but there is addons support and you may use it in that manner but it can do much more. Also Unattended - RunOnce page may come in handy

• 是否可以整合程序软件? 
        可以通过前面的插件语句来,而且它的功能很多
也可以通过无人值守安装页中的RunOnce 页面添加某些软件安装程序,这个方法大多采用静态安装方式.

发布者 windsage
9/3/2008 8:10:44 PM


nlite功能差不多介绍到这里

如果想再制成Ghost系统可以参考

http://bbs.lehu.shu.edu.cn/Article.aspx?aid=9145

发布者 windsage
9/3/2008 10:41:00 PM


YLMF不错用了好几年了

发布者 ωǒ琦兲尐玍
9/5/2008 8:26:45 AM


唉......
树倒猢狲散

发布者 好名字被猪取了
9/5/2008 3:44:58 PM


貌似很厉害的样子

发布者 wii_can
9/6/2008 10:27:57 AM


您正在以 匿名用户 的身份发表评论  快速登录
(不得超过 50 个汉字)
(输入完内容可以直接按Ctrl+Enter提交)