无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 59438|回复: 181
打印 上一主题 下一主题

[7月11日更新]基于Windows 2008的PE 2.1,纯内核

[复制链接]
1#
发表于 2009-7-10 08:02:26 | 显示全部楼层
原帖由 neo4026 于 2009-7-9 18:20 发表
用WinBuilder制作 参考老九的PE做了修改和精简
boot.wim 140M
...

neo楼主,我没有跟进你们的的讨论,不过由顶楼的图可见,你们似乎已经解决了"关闭Windows"窗口弹岀后选键无反应的问题,而且是用PECMD做的。我想知道你们具体是如何做的,请示详细步骤。(我已经知道在注册表设定noclose为0,但这只可以显示[Shutdown]的按钮而矣...)

[ 本帖最后由 khauyeung 于 2009-7-10 08:03 编辑 ]
回复

使用道具 举报

2#
发表于 2009-7-10 08:36:47 | 显示全部楼层
原帖由 lqcai 于 2009-7-10 08:12 发表


我就仅仅是把 noclose 删除,pecmd 接管winpeshl.exe ,关机按钮选项就可以使用了. explorer 的文件和相关注册信息来自 winbuilder

你是说把noclose项目删除而非置零?
回复

使用道具 举报

3#
发表于 2009-7-10 09:08:34 | 显示全部楼层
原帖由 lqcai 于 2009-7-10 08:46 发表


是呀,我是删除整个 noclose ,同时添加 NoLogoff 屏蔽注销选项

谢谢,我将再试试!

试了,还是不成,只好放弃了!

[ 本帖最后由 khauyeung 于 2009-7-10 09:51 编辑 ]
回复

使用道具 举报

4#
发表于 2009-7-10 20:14:02 | 显示全部楼层
原帖由 lxl1638 于 2009-7-10 18:07 发表

... 整个SYSTEM32\Config\SystemUserProFile目录有可能可以精简删除。 ...

我不认为精简删除整个SYSTEM32\Config\SystemUserProFile目录是个好主意,因为这样会跟主流标准脱轨。反正它占很小的体积,应该予以保留,你只需要决定是否用它作为UserShellFolder。另外,设定UserShellFolder也可以在此进行:HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\UserShellFolder

原帖由 neo4026 于 2009-7-10 19:56 发表

向老大请教两个问题:
1.桌面上如何加入IE图标?
2.桌面上的"我的文档"如何删除?(用PE 1.x的方法失灵)
请指点


#________/ Remove Desktop Icons \___________________________
#XP GUIDS:
#Network Places:         {208D2C60-3AEA-1069-A2D7-08002B30309D}
#My Computer:            {20D04FE0-3AEA-1069-A2D8-08002B30309D}
#My Documents:           {450D8FBA-AD25-11D0-98A8-0800361B1103}
#Internet Explorer:      {871C5380-42A0-1069-A2EA-08002B30309D}
#Recycle Bin:            {645FF040-5081-101B-9F08-00AA002F954E}
#VISTA GUIDS
#Network:                                                                 {F02C1A0D-BE21-4350-88B0-7367FC96EF3C}
#USER PROFILE:                                         {59031a47-3f72-44a7-89c5-5595fe6b30ee}
#Control Panel:                                         {5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}
#Homegroup icon:                                 {B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}
#Libraries:                                                         {031E4825-7B94-4dc3-B131-E946B44C8DD5}
#Public Folder:                                         {4336a54d-038b-4685-ab02-99bb52d3fb8b}
#________/ Remove Desktop Icons \___________________________
// Remove User Profile in both
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{59031a47-3f72-44a7-89c5-5595fe6b30ee}","1"
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{59031a47-3f72-44a7-89c5-5595fe6b30ee}","1"
// Remove UserLibraries in both
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{031E4825-7B94-4dc3-B131-E946B44C8DD5}","1"
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{031E4825-7B94-4dc3-B131-E946B44C8DD5}","1"
// Remove Other Users folder in both
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}","1"
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93}","1"
// Network stays on in both
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}","0"
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}","0"
# Remove Control Panel in win6
If,NotExistDir,"%BootSRC%\Windows\System32\DriverStore\FileRepository\adpahci.inf_x86_neutral_b082e95ec9f8c3f9",RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}","1"
If,NotExistDir,"%BootSRC%\Windows\System32\DriverStore\FileRepository\adpahci.inf_x86_neutral_b082e95ec9f8c3f9",RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}","1"
// Computer stays on in both
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{20D04FE0-3AEA-1069-A2D8-08002B30309D}","0"
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{20D04FE0-3AEA-1069-A2D8-08002B30309D}","0"
// Remove Internet Explorer in both
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{871C5380-42A0-1069-A2EA-08002B30309D}","1"
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{871C5380-42A0-1069-A2EA-08002B30309D}","1"
// Enable Trash in win7pe
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoRecycleFiles","0"
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{645FF040-5081-101B-9F08-00AA002F954E}","0"
RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{645FF040-5081-101B-9F08-00AA002F954E}","0"
// Disable Trash in win6pe
If,NotExistDir,"%BootSRC%\Windows\System32\DriverStore\FileRepository\adpahci.inf_x86_neutral_b082e95ec9f8c3f9",RegWrite,RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoRecycleFiles","1"
If,NotExistDir,"%BootSRC%\Windows\System32\DriverStore\FileRepository\adpahci.inf_x86_neutral_b082e95ec9f8c3f9",RegWrite,RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu","{645FF040-5081-101B-9F08-00AA002F954E}","1"
If,NotExistDir,"%BootSRC%\Windows\System32\DriverStore\FileRepository\adpahci.inf_x86_neutral_b082e95ec9f8c3f9",RegWrite,RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel","{645FF040-5081-101B-9F08-00AA002F954E}","1"
#
# Start Menu Style for Win6 only (NoSimpleStartMenu=1 -> ClassicStartMenu; =0 -> NewStartPanel)
If,%pScrollBox9%,Equal,NewStartPanel,RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoSimpleStartMenu","0"
If,%pScrollBox9%,Equal,ClassicStartMenu,RegWrite,"HKLM",0x4,"Tmp_default\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoSimpleStartMenu","1"

[ 本帖最后由 khauyeung 于 2009-7-10 20:21 编辑 ]
回复

使用道具 举报

5#
发表于 2009-7-15 01:06:31 | 显示全部楼层
原帖由 neo4026 于 2009-7-14 20:48 发表
加拿大朋友07.09那脚本在我机器上生成不了
不然用那个试试

我的ImDiskRamDisk脚本有以下内容,RamDisk用NTFS格式,应该是很简单的,为什么生成不了?是否WinBuilder版本太新的问题?
。。。
AddAutoRun,"Install ImDisk Ramdisk","X:\Windows\System32\imdiskrd.exe","%RamDrvSize%",2
RegHiveLoad,WB-System,%RegSystem%
RegWrite,HKLM,0x4,"WB-System\ControlSet001\Enum\Root\LEGACY_IMDISK\0000\Control","*NewlyCreated*","0"
RegWrite,HKLM,0x1,"WB-System\ControlSet001\Enum\Root\LEGACY_IMDISK\0000\Control","ActiveService","ImDisk"
RegWrite,HKLM,0x1,"WB-System\ControlSet001\Enum\Root\LEGACY_IMDISK\0000","Service","ImDisk"
RegWrite,HKLM,0x4,"WB-System\ControlSet001\Enum\Root\LEGACY_IMDISK\0000","Legacy","1"
RegWrite,HKLM,0x4,"WB-System\ControlSet001\Enum\Root\LEGACY_IMDISK\0000","ConfigFlags","0"
RegWrite,HKLM,0x1,"WB-System\ControlSet001\Enum\Root\LEGACY_IMDISK\0000","Class","LegacyDriver"
RegWrite,HKLM,0x1,"WB-System\ControlSet001\Enum\Root\LEGACY_IMDISK\0000","ClassGUID","{8ECC055D-047F-11D1-A537-0000F8753ED1}"
RegWrite,HKLM,0x1,"WB-System\ControlSet001\Enum\Root\LEGACY_IMDISK\0000","DeviceDesc","ImDisk Virtual Disk Driver"
RegWrite,HKLM,0x4,"WB-System\ControlSet001\Enum\Root\LEGACY_IMDISK","NextInstance","1"
RegWrite,HKLM,0x1,"WB-System\ControlSet001\Services\ImDisk\Enum","0","Root\LEGACY_IMDISK\0000"
RegWrite,HKLM,0x4,"WB-System\ControlSet001\Services\ImDisk\Enum","Count","1"
RegWrite,HKLM,0x4,"WB-System\ControlSet001\Services\ImDisk\Enum","NextInstance","1"
RegWrite,HKLM,0x4,"WB-System\ControlSet001\Services\ImDisk","Type","1"
RegWrite,HKLM,0x4,"WB-System\ControlSet001\Services\ImDisk","Start","0"
RegWrite,HKLM,0x4,"WB-System\ControlSet001\Services\ImDisk","ErrorControl","0"
RegWrite,HKLM,0x1,"WB-System\ControlSet001\Services\ImDisk","ImagePath","system32\DRIVERS\imdisk.sys"
RegWrite,HKLM,0x1,"WB-System\ControlSet001\Services\ImDisk","DisplayName","ImDisk Virtual Disk Driver"
RegWrite,HKLM,0x1,"WB-System\ControlSet001\Services\ImDisk","Description","Disk emulation driver"
# Add ramdrv environment variable:
RegWrite,HKLM,0x1,"WB-System\ControlSet001\Control\Session Manager\Environment","RamDrv","%RamDrvLetter%"
RegHiveUnLoad,WB-System
。。。
[Drivers]
imdisk.sys=10Kb,14Kb

[Files]
imdiskrd.exe=233Kb,312Kb
imdisk.exe=14Kb,18Kb
imdisk.cpl=29Kb,39Kb

下图是用你的boot.wim在我的Win7peBuilder下重新建造一次所生成的PE,ImDisk-RamDisk十分正常,PROGRAMS.WIM的挂接也正常。我生成的PE比亦原来的大10MB左右(158MB),因为多了一些我自己的东西。我建议你用Builder重新再造一次再精简,不要死守在现时有问题的boot.wim。对我来说,再造一次只花五分钟!

[ 本帖最后由 khauyeung 于 2009-7-15 08:41 编辑 ]

ImDisk_RamDisk.jpg (136.99 KB, 下载次数: 177)

ImDisk_RamDisk.jpg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-6-15 03:26

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表