HowTo Roll Your Own OpenVPN Windows Installation Package


Mathias Sundman (mathias@openvpn.se)
2005-02-17
Rev 1.1

Introduction

The installation package used to install OpenVPN on Windows is created with NSIS (Nullsoft Scriptable Install System), an open source tool. The build process is controlled by a simple text file, a NSIS script. Since the OpenVPN 2.0-rc14 release, the latest version of NSIS (v2.05 at the time of writing) can be used to build the installation package. Privious versions required NSIS 2.0beta3. The installation package used to install OpenVPN GUI is based on the original OpenVPN installation package with OpenVPN GUI and My Certificate Wizard added to it.

Required software


Preparations


Building the Installation Package

To build the installation package, simply right-click the NSIS script (openvpn-gui.nsi) and chose Compile NSI.


Modifying the script for your own needs

How do I include my own openvpn configuration file?

How do I include an other version of OpenVPN or OpenVPN GUI than the one included in the ZIP file?

How do I make the installation package install the TAP driver as "Hidden" per default?

Comment out the following line with a semicolon under the Function .onInit section:

     SectionSetFlags ${SecTAPHidden} 0


How do I make the installation package install My Certificate Wizard per default?

Comment out the following line with a semicolon under the Function .onInit section:

     SectionSetFlags ${SecMYCERT} 0