Re: Insert an Icon Into a FRX

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Sun, 18 Jun 2006 22:32:59 GMT, "Larry Rebich" <lrebich@xxxxxxxxxxxxx>
wrote:
in <vwklg.7555$o4.4919@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>

Stefan:

A least one icon needs to be part of an frx so that the exe will have
something other than the standard, dull VB icon when the exe is shown in
Explorer. The compile size is 9,000 kb.

We have over 1,000 customers and each of them wants to call our product
using their own name and icon. Currently we have to compile 1,000 different
versions of the application under a different exe name and with a different
icon.

Plan is to keep a customer database which will contain the 'exe' name and
'icon' name. I would have one 'CustomIcon.frm/frx' and would stuff the icon
into it and could automate the creation of the 'starter' exe, creating 1,000
'starters' in one batch compile.

One of the considerations is that a non-technical person is doing the
compiles and sometimes doesn't get the exe/icon combinations correct - so
customer A will get the correct exe but it will get customer B's icon or
vice versa.

Any suggestions will be appreciated.

Larry


Hi Larry-

I just did a little more digging and here's what I'd do if this were my
problem. Actually this looks like a fun problem, but I'm a database guy
and I love huge problems. :-)

Create a separate resource file for every customer containing the icon
and whatever other customer specific info you include. This will
hopefully require only a one time effort for each customer.

Study your project's .vbp file to determine which elements are of
interest.

Create a database table that contains all customer specific build info
such as exe name and whatever else you include in your custom built exe.

Write a really simple VB program to manage the build. It will read from
the database, make the necessary changes to the project .vbp file such
as ResFile32, Title, ExeName32, etc., and then run/shell/conduct the
build of each customer's exe.

This also has the advantage of eliminating the operator error inherent
with involvement of ~non-technical personnel~. :-) Although I think
I'd be more inclined to just completely automate the entire process
(think scalability) and completely remove any possible chance for
operator error.

It would be a simple exercise, for instance, to then add uploading the
newly crafted exe to your download site and sending a notification email
to the customer with the appropriate download info.

This last suggestion assumes of course that you run your own server
where you could house a thousand copies of a 9000 KB app, but I'll leave
that exercise to you and your staff.

---
Stefan Berglund
.



Relevant Pages

  • Re: Running winico as a service
    ... data into a mysql database, it is wrapped using freewrap and thus it ... is an .exe I created the service using twapi. ... package to stop and start the service from the system tray. ... if it is poo ssible tchange the icon itself in the ...
    (comp.lang.tcl)
  • Re: Running winico as a service
    ... data into a mysql database, it is wrapped using freewrap and thus it ... is an .exe I created the service using twapi. ... package to stop and start the service from the system tray. ... has no connection to the user desktop hence the icon cannot show up. ...
    (comp.lang.tcl)
  • Re: MS Vista Issues
    ... Vista seems to prohibit the main process EXE from extracting an ICON resource from another EXE. ... The ExtractIcon() is not returning an error but it is also not returning the resource either. ... The special EXE update zip file was distributed to hosting customers so that their users can get automatically updated when they click the icon to start it. ...
    (microsoft.public.win32.programmer.kernel)
  • Changing the .exe icon compiled stand alone applications
    ... I had a problem with changing the icon of .exe file ... generated by MCC when building a standalone application. ... is launched by MCC to configure compiler. ...
    (comp.soft-sys.matlab)
  • Re: Changing the .exe icon compiled stand alone applications
    ... I had a problem with changing the icon of .exe ... generated by MCC when building a standalone application. ... is launched by MCC to configure compiler. ...
    (comp.soft-sys.matlab)