HowTo Roll Your Own OpenVPN Windows Installation
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 createdwith NSIS ( Nullsoft Scriptable Install S
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
- NSIS v2.05 - The Nullsoft Scriptable Install System
Available from either OpenVPN GUI's homepage:
http://www.openvpn.se/files/nsis/nsis205.exe
or from the NSIS homepage:
http://nsis.sourceforge.net/download
- All files to include in the installation package and
referred to by the NSIS script
I've created a ZIP file containing all files required to build the
installation package including the actual NSIS script. I intend to
create a new zip file for every new stable release of OpenVPN and
OpenVPN GUI. I might create zip's for some beta releases also. If the
version you wish to use is not available, you can always use the
closest matching version of this zip, and then just replace openvpn.exe
and/or openvpn-gui.exe.
This package is available here:
http://www.openvpn.se/files/install_packages_source
Preparations
- Download and install NSIS v2.05.
- Download and extract the installation package source zip file
referred to above.
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?
- Create your own config file and name it as you want the
connection named when using the GUI. For example Office.ovpn.
- Put Office.ovpn in the openvpn\config folder.
- Under the OpenVPN GUI
section in the NSIS script uncomment the following line:
File "$\config\Office.ovpn"
How do I include an other version of OpenVPN or OpenVPN GUI
than the
one included in the ZIP file?
- Replace openvpn.exe and/or openvpn-gui.exe in
the openvpn folder
with the version you want.
- Put
the source code zip-file for the corresponding openvpn and/or
openvpn-gui version in the openvpn folder.
In the beginning of the NSIS
script modify the following lines to match the versions you use:
!define OPENVPN_VERSION "2.0_rcXX"
!define GUI_VERSION "1.0-rcXX"
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 $ 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 $ 0
原文转自:http://www.ltesting.net
|