Changes between Version 1 and Version 2 of EntornoPreArranque/en
- Timestamp:
- Feb 22, 2012, 8:00:04 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EntornoPreArranque/en
v1 v2 1 [[TranslatedPage ]]1 [[TranslatedPages]] 2 2 [[TOC(heading=Índice)]] 3 3 … … 8 8 == PostconfEAC.lib == 9 9 10 En esta librería hemos añadido las siguientes funciones las cuales se encargan de generar un minisetup en el primer arranque de Windows. Este mini-arranque ejecutará un archivo cmd al cual le podemos indicar los comandos que necesitemos para acabar de configurar la máquina.10 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. 11 11 12 * Las funciones son: 13 * ogInstallMiniSetup (): Esta función se encarga de crear las claves de registro necesarias para que se efectue el mini setup en el arranque. Hay que indicarle el punto de montaje donde esta windows y el nombre del archivo cmd que ejecutará (si existe lo sobrescribe). 14 * ogAddCmd (): Una vez creado el mini setup, con esta función iremos añadiendo comandos al .cmd que se ejecutaran en el mini setup. 12 * The functions are: 13 * 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). 15 14 16 * Por ejemplo, en una postconfiguracion donde queremos que la maquina active windows e instale un .msi lo haríamos de la siguiente manera. 17 15 * ogAddCmd (): When mini-setup is created, with this function we can add commands to .cmd. This commands will execute in the mini-setup. 16 17 * For example, in a postconfiguration where we need the computer to active Windows and to install a .msi, we can do it: 18 18 19 {{{ 19 # Le indicamos que debe de hacer el mini setup en el arranque con el archivojoin.cmd20 #What to do the mini-setup at boot with file join.cmd 20 21 ogInstallMiniSetup /mnt/sda1 join.cmd 21 22 22 #A ñadimos un comando en el archivo join.cmd para activar windows 7 de manera silenciosa23 #Add a command in file join.cmd to active Windows 7 in a silent mode 23 24 ogAddCmd /mnt/sda1 join.cmd "CSCRIPT slmgr.vbs /ato //B" 24 25 25 #A ñadimos un comando para instalar un paquete .msi que se encuentra en la raíz de manera silenciosa26 #Add a command to install .msi package in a silent mode 26 27 ogAddCmd /mnt/sda1 join.cmd "msiexec.exe /i \"c:\instalable.msi\" /qb" 27 28 }}}