无忧启动论坛

标题: pe在注册表中怎样设置分辨率 还是只有用应答文件来设置才行 [打印本页]

作者: yjqd    时间: 2018-4-17 10:31
标题: pe在注册表中怎样设置分辨率 还是只有用应答文件来设置才行
本帖最后由 yjqd 于 2018-4-18 18:26 编辑


挂载pe的system单元,在以下项设置分辨率后,启动时出现了小鼠标,但系统加载winpeshl.exe运行后,出现命令提示符窗口很大,鼠标也变大了,设置的分辨率无效
还需要设置哪里呢

[HKEY_LOCAL_MACHINE\1\ControlSet001\Services\VgaSave\Device0]
"DefaultSettings.XResolution"=dword:00000400
"DefaultSettings.YResolution"=dword:00000300


实在没搜索到方法
还是只有用应答文件来设置才行,为此专门安装了Windows AIK

命令如下:
wpeinit.exe /unattend=X:\windows\system32\display.xml

应答文件内容如下:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowspe">
        <component name="Microsoft-Windows-Setup" processorArchitecture="X86" publicKeyToken="12" language="neutral" versionScope="nonSxS">
            <Display>
                <ColorDepth>32</ColorDepth>
                <RefreshRate>75</RefreshRate>
                <HorizontalResolution>1024</HorizontalResolution>
                <VerticalResolution>768</VerticalResolution>
            </Display>
        </component>
    </settings>
   
</unattend>


作者: ken128    时间: 2018-4-17 11:36
【Windows7-32/64 (GHO+ISO版)下载地址】

【32 (GHO+ISO)】:https://pan.baidu.com/s/1XLqLpm5sBgKGd_x77LJKbw(复制游览器即可打开)
【64 (GHO+ISO)】:https://pan.baidu.com/s/1JyCZHr9SW72BCOgzh_4axg(复制游览器即可打开)

备注GHO版本和ISO版安装方式不一样,ISO为安装版系统,需要一步步安装,内部不带驱动,可根据自己个人需求下载不同版本。
作者: yjqd    时间: 2018-4-18 23:04
应答文件中:
publicKeyToken=后面的内容可换成其它的
其余的内容不能再改,否则无效


放在winpeshl.ini中执行
[LaunchApps]
"wpeinit –unattend:%windir%\Disp.xml"    一定要加引号
%windir%\explorer.exe

作者: aiwozhonghua    时间: 2018-4-18 23:08
https://www.wang1314.com/doc/topic-15419303-1.html




欢迎光临 无忧启动论坛 (http://wuyou.net./) Powered by Discuz! X3.3