auto certficate install

Discussion in 'Windows 7' started by arterio, Aug 26, 2009.

  1. arterio

    arterio MDL Novice

    Aug 15, 2009
    2
    0
    0
    Hi guys,
    is possible to install any certificate on windows7 during installation Seven software? :rolleyes::rolleyes:
    I see the automatic install loader, but i have the bios slic and if is possible i wold an automatic install certficate.

    Thanks to all:)
     
  2. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,078
    60
    #2 Mr Jinje, Aug 26, 2009
    Last edited: Aug 26, 2009
    Yes, can be do by hand using a SetupComplete.cmd you can place this file and your cert in this folder on you Windows 7 DVD

    Sources\$OEM\$$\SETUP\SCRIPTS\

    Everything in that folder gets copied to

    Windows\SETUP\SCRIPTS\

    It works because Microsoft Automatically searches for that file and runs it at after Setup Completes

    This is the line of code you need to add into SetupComplete.cmd

    cscript %SYSTEMROOT%\System32\slmgr.vbs -ilc "RANDOM_CERT.xrm-ms"
     
  3. ballantines

    ballantines MDL Novice

    Jul 29, 2009
    9
    0
    0
    It's possible adding cert, key and oem logo, etc. together?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,078
    60
    #4 Mr Jinje, Aug 26, 2009
    Last edited: Aug 26, 2009
    yup, key is easy. just add the SLMGR.VBS -IPK XXXXX-XXXXX command.

    easy way for OEM logo is gonna be get HAZAR loader, unrar, find the OEM logos you want and Copy "info" folder with all the png inside into your DVD in this folder

    Sources\$oem$\$$\System32\oobe\

    Then you should move the reg.reg into same directory as SetupComplete.cmd so that you don't need explicit pathname.

    Sources\$oem$\$$\SETUP\SCRIPTS\

    Import reg settings with "regedit /S reg.reg"

    any other commands you need, work them into the SetupComplete.cmd , that is why it is there for you
     
  5. ballantines

    ballantines MDL Novice

    Jul 29, 2009
    9
    0
    0
    Thanks I have Dell Oem Vista Ultimate with oem folder I can copy oeminfo and logo etc. There is a reg file need to edit it for w7?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,078
    60
    #6 Mr Jinje, Aug 26, 2009
    Last edited: Aug 26, 2009
    If you gets hazar loader and unrar it, and find already done reg.reg is inside there, you may need to alter little bit to fit the names of you logo files.
     
  7. ballantines

    ballantines MDL Novice

    Jul 29, 2009
    9
    0
    0
    Thank you i prefer Google as I asked hazar but no answer.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,078
    60
    #8 Mr Jinje, Aug 26, 2009
    Last edited by a moderator: Apr 20, 2017
  9. urie

    urie Moderator
    Staff Member

    May 21, 2007
    8,644
    3,003
    300
    #9 urie, Aug 26, 2009
    Last edited by a moderator: May 23, 2017
  10. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,078
    60
    #10 Mr Jinje, Aug 26, 2009
    Last edited by a moderator: May 23, 2017
  11. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,501
    3,609
    120
    #11 FreeStyler, Aug 26, 2009
    Last edited by a moderator: Apr 20, 2017
    Code:
    for /f "eol=; tokens=1,2,3,4,5,6,7 delims=\" %%a in ( 'reg.exe query HKLM\HARDWARE\ACPI\RSDT /s ^| find.exe /i "ACPI\RSDT\"') do If Not "%%f"=="" If "%%g"=="" Set _OEMID_=%%e
     
  12. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,078
    60
    #12 Mr Jinje, Aug 26, 2009
    Last edited by a moderator: Apr 20, 2017


    HKLM\HARDWARE\ACPI\RSDT I see my SLIC in there, what this code for ??
     
  13. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,501
    3,609
    120
    The question was: is it possible to install any certificate on windows7 during installation Seven software?

    You can enhance this piece of code, it automatically detects OEMID read from registry so you could install brand specific certificates, keys, logo's when SetupComplete.cmd is called upon
     
  14. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,078
    60
    #14 Mr Jinje, Aug 26, 2009
    Last edited: Aug 26, 2009
    You should be a lawyer, literal interpretation is 9/10ths of contract dispute. Nice snippet BTW
     
  15. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,501
    3,609
    120
    #15 FreeStyler, Aug 26, 2009
    Last edited by a moderator: Apr 20, 2017
    :)

    autoit snippet
    Code:
    global $i, $RSDT, $OSArch
    
    If @OSVersion = "WIN_VISTA" Or @OSVersion = "WIN_7" Or @OSVersion = "WIN_2008" Then
    
    if @OSArch = "X64" then
    $OSArch = "HKLM64"
    Else
    $OSArch = "HKLM"
    endif
    
    $RSDT = RegEnumKey($OSArch & "\HARDWARE\ACPI\RSDT", 1)
    
    Select
    
    case $RSDT = "ACRSYS"
    ; do something
    
    case $RSDT = "DELL__"
    ; do something
    
    case $RSDT = "HPQOEM"
    ; do something
    
    EndSelect
    endif
    
     
  16. nononsence

    nononsence MDL Addicted

    Aug 18, 2009
    809
    802
    30
    #17 nononsence, Aug 26, 2009
    Last edited by a moderator: Apr 29, 2017
    cert_tool will do this but does not do a reg search to do it.

    http://forums.mydigitallife.net/posts/1237090

    to make it silent change to this
    and call from SetupComplete.cmd

    attched an example.
     

    Attached Files:

  17. Mr Jinje

    Mr Jinje MDL Expert

    Aug 19, 2009
    1,773
    1,078
    60
    #18 Mr Jinje, Aug 26, 2009
    Last edited by a moderator: Apr 29, 2017
    InstallComplete.cmd ???
     
  18. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,501
    3,609
    120
    What is BiosVersion, self written utility?
     
  19. arterio

    arterio MDL Novice

    Aug 15, 2009
    2
    0
    0
    Many thank for help me, i am greating to you for this important information.:D