how to create a completely unattended? such as the WPI (Windows Post Install), which bring the majority of the unattended Windows (as amended). In this case we will do so that we can bring in the USB, home of a client, or for our personal use, and give a click when you execute it.
Tools Required:
- NSIS (currently version 2.9)
- Universal Silent Switch Finder. (1.4.1.1)
- IconSucker
| Download Tools |
NSIS must have installed on your system,
create a new folder to save the project, and copy the program that we want to neglect the same and call it installer.exe.
if we want our program that we have neglected to do the same icon, the Icon Sucker installed, we downloaded and extracted it with some simple steps.
We right-click the icon 32x32 8 bpp, stores it in the same folder where our program that we have neglected to name icon.ico and once done, run the Universal Silent Switch Finder we have and do what next.
Now create a folder in the same file. NSI with the name you choose. Open it with any text editor and copy the following video.
OUTFILE "programa_desatendido.exe"
Specify the final file that we created while compiling the script.
Icon "icon.ico"
The icon you want to put our program unattended.
SetCompressor / SOLID lzma
We could choose the type of compression that brings the NSIS, and we'll see why.
SilentInstall silent
We are saying that we do a silent install, so we do not display the default installer NSIS.
Section "Copy"
SetOutPath TEMP
File "installer.exe"
SectionEnd
Here's where we want to copy the installer.exe TEMP variable that refers to the Windows temporary files (Windows \ Temp).
Section "Install"
Exec "installer.exe / VERYSILENT / SUPPRESSMSGBOXES / norestart / SP-"
SectionEnd
This will run the installer.exe and we will make a silent install with little code we put behind us had the Universal Silent Switch Finder above, remember to go within the quotes but the Silent Switch gives us the setback. That is, "installer.exe" exe / VERYSILENT / SUPPRESSMSGBOXES / norestart / SP, but it is wrong, and if we are in the NIS code, will give a compile error so you must go in quotation marks.
Section "Clear"
Delete "TEMP \ *.*"
SectionEnd
An open section and what we do is remove all the temporary files that have left over time also, and especially the program we had to be copied there.
Once all the code, it compiles.
We click right to our code. NSI and we give Compile NSIS Script, we will have our program ready to run unattended, with the icon you have chosen and besides that, with a pretty good compression,
...........................................................................
como crear un programa totalmente desatendido??, como los de los WPI (Windows Post Install), que traen la mayoría de los Windows desatendidos (modificados). En este caso lo haremos para que podamos llevarlos en el USB, a casa de un cliente, o para nuestro uso personal, y sin darle a un clic cuando lo ejecutemos.
Herramientas necesarias:
- NSIS (Actualmente la versión 2.9)
- Universal Silent Switch Finder. (1.4.1.1)
- IconSucker
| Descargar Herramientas |
Debemos tener instalado el NSIS en nuestro Sistema,
creamos una carpeta nueva donde guardaremos este proyecto, y copiaremos el programa que queramos convertir en desatendido dentro del mismo y lo llamaremos installer.exe.
si queremos que nuestro programa que vayamos a hacer desatendido tenga el mismo icono, instalamos el Icon Sucker, que tenemos descargado y se lo extraemos con unos pasos simples.
Le damos clic derecho al icono de 32x32 a 8 bpp, lo guardamos en la misma carpeta en donde tenemos nuestro programa que queremos desatender con el nombre de icon.ico y una vez hecho esto, ejecutamos el Universal Silent Switch Finder que tenemos y hacemos lo siguiente.
Ahora crearemos en la misma carpeta un archivo .nsi con el nombre que ustedes decidan. Lo abrimos con cualquier editor de texto, y copiamos el siguiente código fuente.
OutFile "programa_desatendido.exe"
Indicamos el archivo final que nos creará cuando compilemos el Script.
Icon "icon.ico"
El icono que deseamos ponerle a nuestro programa desatendido.
SetCompressor /SOLID lzma
Podríamos escoger el tipo de compresión que trae el NSIS, ya veremos porque.
SilentInstall silent
Le estamos indicando que nos haga una instalación silenciosa, o sea, que no nos muestre el instalador por defecto del NSIS.
Section "Copy"
SetOutPath TEMP
File "installer.exe"
SectionEnd
Le indicamos donde queremos que se copie el installer.exe con la variable TEMP que se refiere a los archivos temporales de Windows (Windows\Temp).
Section "Install"
Exec "installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-"
SectionEnd
Esto ejecutará el installer.exe y nos hará la instalación silenciosa con el pequeño código que le hemos puesto por detrás que nos había dado el Universal Silent Switch Finder anteriormente, recordar que debe de ir dentro entre comillas, aunque el Silent Switch nos lo dé al revés. O sea, "installer.exe" exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-, pero está mal, que si lo ponemos así como está en el código nsi, nos dará un error al compilar por eso debe de ir todo entre comillas.
Section "Clear"
Delete "TEMP\*.*"
SectionEnd
Abrimos una sección y lo que hacemos es eliminar todos los archivos temporales que hayamos dejado a lo largo del tiempo también, y sobre todo el programa que habíamos hecho que se copiase ahí mismo.
Una vez hecho todo el código, lo compilamos.
Hacemos clic derecho a nuestro código .nsi y le damos a Compile NSIS Script, tendremos nuestro programa desatendido listo para ejecutar, con el icono que hemos escogido y además de eso, con una compresión bastante buena,

No hay comentarios:
Publicar un comentario