Howto build a Selfextracting Installer

Sometimes ago we did rebuild our whole WLAN Network infrastructure of the campus and setup a NPS based authentication method for the Clients. Because of that we had to provide a certificate for authentication. The WLAN Clients are not part of the domain. This means that we can’t work with AD group policies to install the certificate. Because of that we’ve decided to create a Installer for Win7 and Win8 Clients to setup the WLAN settings and install the certificate. We’ve discoverd a Opensource soloution called SU1X to create such a setup file. How to configure SU1X is not part of this arcticle, but I want to show you how you can create a self extracting installer with 7-zip.

7-zip

We go to http://www.7-zip.org and download the 7-zip installer and the 7z Bibliothek.

7-zip_install

We do a standard installation of 7-zip

7-zip_lib

We extract the 7-zip library files to the install directory of 7-zip.

7-zip_archive

Create a 7-zip archive from the SU1X config files.

7-zip_copy

Copy the created zip files to the install directory of 7-zip.

7z_Config

Create a 7-zip config file with the following content:

;!@Install@!UTF-8!

RunProgram=“su1x-setup.exe /s“

GUIMode=“2″

;!@InstallEnd@!

7z_CMD

Open a cmd and put in to following commands:

copy /b 7zS.sfx + config.txt + WIN7.7z Win7_Installer.exe

copy /b 7zS.sfx + config.txt + WIN8.7z Win8_Installer.exe

The output will be our self extracting installer!

7z_output

To replace the Icon and edit the description content of the installer we can use a tool called Resource Hacker.

res_hack

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.