zoukankan      html  css  js  c++  java
  • 自己制作 SPx N合1 自动安装盘(x86)

    来处“xinso”

    一、制作方法:

    以技嘉和惠普为例作,其它的可以如法泡制及变通:

    1、复制一份最常用的 OEM XP,例如技嘉,到D:1TO2

    2、在 D: 创造一个 HP 文件夹,内容如下:
    HPoembios.bin、oembios.dat、oembios.sig
    HPCatRoot{F750E6C3-38EE-11D1-85E5-00C04FC295EE}oembios.cat
    HPdllcacheoembios.cat

    3、捕捉 HP OEM 文件的镜像:
    imagex /capture D:HP D:1TO2I386hp.wim "hp"
    4、把 imagex.exe 复制到 D:1TO2I386
    5、在 D:1TO2I386 创造一份 disable.reg 如下 (记得储存):

    Windows Registry Editor Version 5.00

    ;关闭文件保护
    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon]
    "SFCSetting"=dword:ffffff9d
    "SFCDisable"=dword:ffffff9d

    6、在 D:1TO2I386 创造一份侦测程序 msg.cmd 如下 (记得储存):
    @echo off
    %SystemRoot%System32iossave.exe
    pause
    type %SystemDrive%ios.mem | find "Hewlett-Packard" && goto HP
    goto end

    :HP
    pause
    %SystemRoot%System32imagex /apply %SystemRoot%System32hp.wim 1 %SystemRoot%System32
    pause
    goto end

    :end
     biossave.rar (15.3 KB)

    7、修改 D:1TO2I386DOSNET.INF
    (1)在 [OptionalSrcDirs] 下方添加 svcpack:
    (2)在 cmd.exe 下方添加:
    d1,imagex.exe
    d1,hp.wim
    d1,biossave.exe
    d1,disable.reg
    d1,msg.cmd


    8、修改 D:1TO2I386TXTSETUP.SIF
    在 cmd.exe 下方添加:
    imagex.exe   = 100,,,,,,,2,0,0,,1,2
    hp.wim         = 100,,,,,,,2,0,0,,1,2
    biossave.exe = 100,,,,,,,2,0,0,,1,2
    disable.reg    = 100,,,,,,,2,0,0,,1,2
    msg.cmd      = 100,,,,,,,2,0,0,,1,2

    9、创建文件夹 D:1TO2I386SVCPACK

    10、创造文件 D:1TO2I386SVCPACKdeploy.cmd,内容如下:

    @echo off
    regedit %SystemRoot%System32disable.reg
    pause
    SET KEY=HKLMSOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
    REG ADD %KEY%Index /V AddIndex /D "%SystemRoot%system32msg.cmd" /f
    pause
    EXIT


    11、创造文件 svcpack.inf,内容如下,压缩成 svcpack.in_,复制进 D:1TO2I386 覆盖文件

    [Version]
    BuildNumber=2600
    MinorVersion=1
    MajorVersion=5
    Signature="$WINDOWS NT$"

    [SetupData]
    CatalogSubDir="I386svcpack"

    [SetupHotfixesToRun]
    deploy.cmd

    [ProductCatalogsToInstall]

    12、 开始用您自个儿的序号安装,在 -13 分钟的最后阶段 (执行 deploy.cmd 在注册表添加 RunOnceEx 指令以便在初次登入时执行msg.cmd) 会出现“操作成功完成”,在首度登入桌面时 (执行侦测程序 msg.cmd) 会出现因侦查到相关启动码而执行 imagex 的画面,这第一次并没启动, 因为才刚替换 OEM 四个 oembios.* 文件. 重启之后, 查看 [系统信息], 如没 "启用搁置中 (剩下 30 天)", 那恭喜您, 替换成功启动了.

    安装完成首度登入系统时, 侦测程序 msg.cmd 查获启动码 Hewlett-Packard, 继而执行
    imagex /appply windowssystem32hp.wim 1 windowssystem32
    把启动文件替换成惠普的

    以上是 1 TO 2, 如需 1 TO N:
    1、再做该品牌 *.wim 并复制进 C:1TO?I386
    2、将该 *.wim 文件名加入 DOSNET.INF 和 TXTSETUP.SIF 的 cmd.exe 下方
    3、修改侦测程序内容,例如新增 LENOVO:
    @echo off
    %SystemRoot%System32iossave.exe
    pause
    type %SystemDrive%ios.mem | find "Hewlett-Packard" && goto HP
    type %SystemDrive%ios.mem | find "LENOVO" && goto LENOVO
    goto end

    :HP
    pause
    %SystemRoot%System32imagex /apply %SystemRoot%System32hp.wim 1 %SystemRoot%System32
    pause
    goto end

    :LENOVO
    pause
    %SystemRoot%System32imagex /apply %SystemRoot%System32lenovo.wim 1 %SystemRoot%System32
    pause
    goto end

    :end

    二、序列号的解决:
    1、准备各品牌序列号注冊值如下:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerRegistration]
    "ProductId"="76486-OEM-0011903-00117"
    "DigitalProductId"=hex:a4,00,00,00,03,00,00,00,37,36,34,38,36,2d,4f,45,4d,2d,
      30,30,31,31,39,30,33,2d,30,30,31,31,37,00,2d,00,00,00,41,32,32,2d,30,30,30,
      30,31,00,00,00,00,00,00,00,6a,98,2f,8e,cc,8f,28,dc,83,71,62,a9,85,80,00,00,
      00,00,00,00,b7,a9,32,48,5c,ef,01,00,02,00,00,00,00,00,00,00,00,00,00,00,00,
      00,00,00,00,00,00,00,00,00,00,00,34,36,35,30,37,00,00,00,00,00,00,00,97,18,
      00,00,1c,8e,44,f8,00,08,00,00,53,59,00,00,00,00,00,00,00,00,00,00,00,00,00,
      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,84,3b,3d,bc

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersion]
    "ProductId"="76486-OEM-0011903-00117"

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersion]
    "ProductId"="76486-OEM-0011903-00117"
    "DigitalProductId"=hex:a4,00,00,00,03,00,00,00,37,36,34,38,36,2d,4f,45,4d,2d,
      30,30,31,31,39,30,33,2d,30,30,31,31,37,00,2d,00,00,00,41,32,32,2d,30,30,30,
      30,31,00,00,00,00,00,00,00,6a,98,2f,8e,cc,8f,28,dc,83,71,62,a9,85,80,00,00,
      00,00,00,00,b7,a9,32,48,5c,ef,01,00,02,00,00,00,00,00,00,00,00,00,00,00,00,
      00,00,00,00,00,00,00,00,00,00,00,34,36,35,30,37,00,00,00,00,00,00,00,97,18,
      00,00,1c,8e,44,f8,00,08,00,00,53,59,00,00,00,00,00,00,00,00,00,00,00,00,00,
      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,84,3b,3d,bc

    [HKEY_LOCAL_MACHINESYSTEMSetupPid]
    "Pid"="76486OEM"

    2.各品牌內容不同, 但为简化侦测程序命令, 可取单一名称, 例如 pid.reg. 然后连同 dpcdll.dll 和 pidgen.dll 放进该品牌用来制.wim

    3.在 msg.cmd 各品牌項目下加列一條命令如下:

    :gigabyte
    %SystemRoot%System32imagex /apply %SystemRoot%System32gigabyte.wim 1 %SystemRoot%System32 (替换 OEMBIOS.*)
    regedit /s %SystemRoot%system32pid.reg (替换序列号)
    goto end

    :greatwal
    %SystemRoot%System32imagex /apply %SystemRoot%System32greatwal.wim 1 %SystemRoot%System32
    regedit /s %SystemRoot%system32pid.reg
    goto end

  • 相关阅读:
    简单的模板解析函数
    HTML通过事件传递参数到js 二 event
    HTML通过事件传递参数到js一
    通过this获取当前点击选项相关数据
    LeetCode 20. 有效的括号(Valid Parentheses)
    LeetCode 459. 重复的子字符串(Repeated Substring Pattern)
    LeetCode 14. 最长公共前缀(Longest Common Prefix)
    LeetCode 168. Excel表列名称(Excel Sheet Column Title)
    LeetCode 171. Excel表列序号(Excel Sheet Column Number) 22
    LeetCode 665. 非递减数列(Non-decreasing Array)
  • 原文地址:https://www.cnblogs.com/airoot/p/4131966.html
Copyright © 2011-2022 走看看