Link to home
Create AccountLog in
Avatar of myleseven2
myleseven2

asked on

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
Avatar of 2266180
2266180
Flag of United States of America image

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)
Avatar of AmigoJack
AmigoJack

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
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.
Avatar of myleseven2

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of tobjectpascal
tobjectpascal

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
As soon as I posted this I realised that that is what you can do, thanks for your help the points are yours