OpenVPN 2.3.2 client - custom installer

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
RB1990
OpenVpn Newbie
Posts: 2
Joined: Thu Nov 07, 2013 10:28 am

OpenVPN 2.3.2 client - custom installer

Post by RB1990 » Thu Nov 07, 2013 1:24 pm

Hi everyone,

This is the first time I'm trying to make a custom installer for OpenVPN and i'm not familiar with NSIS.
i'm running into a few problems when trying to make an installer for OpenVPN version 2.3.2.

First
- I can't find an (original).NSI file in the source directory of version 2.3.2

I did found openvpn.nsi on github: https://github.com/OpenVPN/openvpn-buil ... penvpn.nsi
I edited that file but when i compile it with NSIS and iam trying to install the setup it's missing a lot of files (Openvpn-gui.exe, tap-windows.exe and more)

My objective:

* Instert (two) ovpn files with my own config.
* Insert Certificate

* Possibility to create a 'creds.txt' file during install where i can save username / password for autoconnect to vpn.
* Autoconnect vpn when starting OpenVPN
* Autoconnect vpn at windows startup

I would greatly appreciate it if someone could help me creating an NSI file.

Please excuse my poor English.

Kind regards,
RB1990

RB1990
OpenVpn Newbie
Posts: 2
Joined: Thu Nov 07, 2013 10:28 am

Re: OpenVPN 2.3.2 client - custom installer

Post by RB1990 » Fri Nov 08, 2013 2:14 pm

Update.
Done:
RB1990 wrote: * Instert (two) ovpn files with my own config.
* Insert Certificate
* Autoconnect vpn when starting OpenVPN
* Autoconnect vpn at windows startup
To do:
* Possibility to create a 'creds.txt' file during install where i can save username / password for autoconnect to vpn.

Example:
Image

What i want is a custom dialog page with a checkbox with 2 inputfields (textboxes) (username and password) starting disabled.
And when you check the checkbox the 2 inputfields will be enabled.
I want to catch the username and password and put it into a file named creds.txt

example creds.txt:
Username
Password

Please help.
Kind regards,
RB1990

alexxtasi
OpenVpn Newbie
Posts: 13
Joined: Thu Dec 12, 2013 9:28 am

Re: OpenVPN 2.3.2 client - custom installer

Post by alexxtasi » Tue Sep 09, 2014 6:33 pm

Hi!
some years have passed, though the goals you set for you installer are mine too...

I would be very thankful if you provided the nsis script you created for :

* Instert (two) ovpn files with my own config.
* Insert Certificate
* Autoconnect vpn when starting OpenVPN
* Autoconnect vpn at windows startup

so I would have a starting point.

what about the 'creds.txt' file creation ? Any success in this ?

regards

Post Reply