wiki:EntornoPreArranque/en

In version 1.0.2, we added new functions to library:

PostconfEAC.lib

In this library we added the following functions which are responsible to generating a Minisetup on the first boot of Windows. This mini-setup will run a cmd file where we can indicate commands that we need to finish computer configuration.

  • The functions are:
    • ogInstallMiniSetup (): This function creates the registry keys for execute mini setup at boot. We should to tell the mount point of Windows and cmd filename that will run (if there is overwritten).
  • ogAddCmd (): When mini-setup is created, with this function we can add commands to .cmd. This commands will execute in the mini-setup.
  • For example, in a postconfiguration where we need the computer to active Windows and to install a .msi, we can do it:
#What to do the mini-setup at boot with file join.cmd
ogInstallMiniSetup /mnt/sda1 join.cmd

#Add a command in file join.cmd to active Windows 7 in a silent mode
ogAddCmd /mnt/sda1 join.cmd "CSCRIPT slmgr.vbs /ato //B"

#Add a command to install .msi package in a silent mode
ogAddCmd /mnt/sda1 join.cmd "msiexec.exe /i \"c:\instalable.msi\" /qb"
Last modified 7 years ago Last modified on Jul 14, 2017, 1:07:08 PM