• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

HowTo Roll Your Own OpenVPN Windows Installation

发布: 2007-5-25 12:08 | 作者: 未知 | 来源: Blog.ChinaUnix.net | 查看: 93次 | 进入软件测试论坛讨论

领测软件测试网

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

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网