

You might want to play around with settings until the installer suits your tastes.The following process shows how to setup a silent install that will work with 32-bit and 64-bit versions of Windows. You’re now ready to “Make SFX”! Your new installer will be placed in the folder your files were in. Sadly, not everyone at my company knows how to install software, and I’m satisfied with the setup defaults anyway. Note that I have a /S in the first entry because I want OpenVPN to install silently. We will tell the SFX maker to run the OpenVPN installer then run the SFX for the keys. Now, (and this is important), go to the Execute tab.

Under the Shortcuts tab, I created a shortcut to OpenVPN GUI in Startup so that it starts on login. Under the Text tab, I have it filled as follows: I have “Allow user to change extraction path” checked as well–this all depends on your environment and needs. In “General” enter %tmp% or another writable directory in the “Extract to specified folder” field. Now, create another 7-Zip archive with your new SFX and the OpenVPN installer. From here, you’re ready to click “Make SFX”. I have “Beginning extraction of keys…” in the “Begin prompt” field of the Text tab.

You can change other options if you’d like. You can right-click for some preset environment variables if you want to change the path. Under “Extract to specified folder”, enter %ProgramFiles%\\OpenVPN\\config. Next, open up 7-ZIP SFX Maker and add your archived keys by clicking on the “+” symbol. If you want multiple OpenVPN connections configured on the same machine, it’s a good idea to have each connection’s keys in a subfolder. OpenVPN (version 2.1_rc19 at the time of writing)įirst, package your OpenVPN keys with 7-Zip. You have the option of making the install entirely silent as well–it’s all up to you.ħ-ZIP SFX Maker (version 2.0 at the time of writing)ħ-Zip (or another 7-Zip-capable archiver such as IZArc) This method employs the use of an SFX that installs the vanilla OpenVPN installer as downloaded from their site, then automatically installs the keys afterwards. Note that with this method you can’t rename OpenVPN to “MyVPN” or whatever like the previous method. This method is more of a workaround, but definitely works. the correct TAP driver will be detected and the shortcuts where they belong). Luckily, there’s another way to approach this problem and have OpenVPN installed as it was intended (i.e. OpenVPN has gone through several revisions since, and getting things running (especially on different architectures) with the new versions just doesn’t work so well. In a previous article, I outlined the steps I took to “roll” my own customized OpenVPN installer, and it worked like a charm back then.
