Skip to content

Instantly share code, notes, and snippets.

@CampinCarl
Last active April 13, 2023 07:02
Show Gist options
  • Save CampinCarl/5b7af54f83b123127a84c16c17572a1c to your computer and use it in GitHub Desktop.
Save CampinCarl/5b7af54f83b123127a84c16c17572a1c to your computer and use it in GitHub Desktop.
OpenVPN-GUI Replace Windows System Tray Icons

OpenVPN-GUI Replace Windows System Tray Icons

As of this writing, the OpenVPN-GUI system tray icon is very similar to the Windows 10 wired network icon, making it difficult to distinguish the two at a glance. This gist provides color swapped versions of the default OpenVPN icon to match the three (3) connection states, i.e., disconnected, connecting, and connected.

Icons

Using a resource editor, the user can modify their copy of the openvpn-gui.exe binary file to use the new icons. This gist includes a sample Resource Hacker script for this purpose, see "replace-tray-icons.txt".

Usage: ResourceHacker.exe -script replace-tray-icons.txt

The sample script assumes the openvpn-gui.exe file is in the same directory. Modify the Open and Save parameters to change this as needed.

[FILENAMES]
Open = openvpn-gui.exe
Save = openvpn-gui-new.exe
Log = replace-tray-icons.log
[COMMANDS]
-modify connected.ico, IconGroup,91,1033
-modify connecting.ico, IconGroup,92,1033
-modify disconnected.ico, IconGroup,93,1033
@CampinCarl
Copy link
Author

I see, no worries.

You could theoretically unpack, modify the GUI binary, and then repackage the installer. That said, keep in mind that the PGP signature would no longer validate (if that's a concern for your environment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment