[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 138
  • Last Modified:

Building an app to allow for for updates via internet

Hi there,
I have built a few applications. The .exe's range between 3-5 mb. This is not huge but I would like to give my users the ability to update there  version of the application through the internet. Currently the only way that they can do this is by downloading an entirely new exe. This will take my users to long as our internet connections are not very fast.

How can I rebuild my applications so that the .exe is small? Would i need to move all my code into .dll's?
Are there any titorials around that can help people with how to do this?

regards
Myles
0
myleseven2
Asked:
myleseven2
  • 2
  • 2
  • 2
  • +1
1 Solution
 
2266180Commented:
0
 
2266180Commented:
also, for updating, you might consider realeasing patches. here is somethign that could look promising:http://www.tmssoftware.com/astaupdate.htm (never tried it though)
0
 
AmigoJackCommented:
another base technique is to not put everything into one exe only. resources like pictures and videos can go into a separate dll, functionality can go into another dll and only the forms should go into the final exe. this way each of your new version does not essentially have to release ALL files again, only few or one of them.

also consider the following issues:
- compress your files when making them available thru internet, i suggest .ZIP as its most accessable for all (.RAR is the best but users may get annoyed to download another software to access .RAR files; and .CAB can be decompressed by ANY windows version, but only few users know how)
- compile your exe with a lot of compiler options disabled, most important of all: "debug info"
- when using pictures, always use JPEGs, PNGs or GIFs when supported
- dont create forms for every simple case; the source of the "InputQuery"-function shows very well how a quite simple form can be built at runtime - this way it doesnt consume place as a resource
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
tobjectpascalCommented:
I would say update the dlls rather than the exe, put all your main routines into a dll but that too would give several problems calling parameters for one, the fact the program may have the dll in memory etc etc.
0
 
myleseven2Author Commented:
I think the biggest problem I have is that I have many Jpeg files on every form in all my applications.
Where can I learn how to put these .jpeg files into a seperate file to referenced at run time
0
 
tobjectpascalCommented:
can't you store them as jpgs and call them dynamically?

image1.Picture.LoadFromFile('yourimagename.jpg');

you can leave the picture component but leave it blank that way delphi does not automatically create a resource for it and store it internally.
0
 
myleseven2Author Commented:
As soon as I posted this I realised that that is what you can do, thanks for your help the points are yours
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now