Skip to contentSkip to conversation

OpenVPN GUI Icon Question

Openvpn-devel Alexander Littell 2 participants 3 messages Nov 16, 2006

lore
Share & tools
lore
#0 lore raw

Okay, so this technically isn't an OpenVPN question. Sorry. However, maybe someone can help me out nevertheless as the two programs are linked and I'm having trouble getting assistance at the openvpn.se site.

Anyway, I'm trying to roll out a customized version of OpenVPN and wanted to change up the system tray icons from the OpenVPN GUI client. I've replaced the .ico files (e.g. connected, connecting, disconnected, openvpn-gui) from the source files, but the old ones still seem to compile. I've searched everywhere that I could to replace them but haven't had much luck. Are they compiled somewhere else?

Has anyone done this? Any help would be GREATLY appreciated.

Thanks!

~Alec

#1 lore raw
Quoted 10 lines · Alexander Littell

Okay, so this technically isn't an OpenVPN question. Sorry. However, maybe someone can help me out nevertheless as the two programs are linked and I'm having trouble getting assistance at the openvpn.se site.

Anyway, I'm trying to roll out a customized version of OpenVPN and wanted to change up the system tray icons from the OpenVPN GUI client. I've replaced the .ico files (e.g. connected, connecting, disconnected, openvpn-gui) from the source files, but the old ones still seem to compile. I've searched everywhere that I could to replace them but haven't had much luck. Are they compiled somewhere else?

Have you recompiled OpenVPN GUI after you replaced the icons? You have to... If I recall correctly the icons are compiled into a resource file by the resource compiler (windres) and after that linked into the openvpn-gui.exe file.

So you will not be able to replace the icons without recompiling openvpn gui if you don't find any tool that can "patch" an exe file to replaces resources like embedded icons.

A quick google on replacing icons in exe files indicates there are such tools available. Here's one link:

http://533soft-icon-changer.533soft-com.qarchive.org/

//Mathias

#2 lore raw

Thanks for the advice, Mathias.

I am not that familiar with Win32 development (obviously!) but once you pointed me in the direction of the .RES file I read up on everything a bit. In the end, I just renamed the .RES file in there and when running 'make' again on the source files the new icons I created were loaded. I'm using MSYS and MinGW like you suggested on your website.

Love your product, by the way.

~Alec

----Original Message Follows----
From: Mathias Sundman <[email protected]...>
To: Alexander Littell <[email protected]...>
CC: [email protected]
Subject: Re: [Openvpn-devel] OpenVPN GUI Icon Question
Date: Thu, 16 Nov 2006 20:26:32 +0100 (CET)

Quoted 10 lines · Alexander Littell

Okay, so this technically isn't an OpenVPN question. Sorry. However, maybe someone can help me out nevertheless as the two programs are linked and I'm having trouble getting assistance at the openvpn.se site.

Anyway, I'm trying to roll out a customized version of OpenVPN and wanted to change up the system tray icons from the OpenVPN GUI client. I've replaced the .ico files (e.g. connected, connecting, disconnected, openvpn-gui) from the source files, but the old ones still seem to compile. I've searched everywhere that I could to replace them but haven't had much luck. Are they compiled somewhere else?

Have you recompiled OpenVPN GUI after you replaced the icons? You have to... If I recall correctly the icons are compiled into a resource file by the resource compiler (windres) and after that linked into the openvpn-gui.exe file.

So you will not be able to replace the icons without recompiling openvpn gui if you don't find any tool that can "patch" an exe file to replaces resources like embedded icons.

A quick google on replacing icons in exe files indicates there are such tools available. Here's one link:

http://533soft-icon-changer.533soft-com.qarchive.org/

//Mathias