HI All.
I was looking for a solution that would let us do an autoupdate of an 
app. if or when it was required.
The usual requirement of needing to close teh app. if it was running 
first etc.

I got to thinking, I wonder if the Turbo Power ABBREVIA controls wee 
Selfextracting stub did anything special.
I looked at teh code, and decided I could hack it to make it do what I 
need with a little bit of help from the Madshi controls.

Heres what I do, and the key to the whole thing.
I use say Winzip to make the zip file, then I go into the Comments of the 
zip file, and in there put :-

[KILL]
0=MyApp1.exe
1=MyApp2.exe

[RUN]
0=MyApp2.exe

Then in the SFX stuff, I extract the comments, save them to an INI file, 
then I ref. the info out of the ini file, using Madshi's Kernel library, 
kill the exe by name, i.e. Process('MyApp1.exe').quite; then unzip the 
files  then re-run the defined exe if there is one.

This works really well, and means that what needs to happen is part of 
the zip file, and not extra script you need to include etc.
Oh, btw I delete the ini file after all is finshed.


Well I thought this was a cunning wee plan anyway. It saves having to 
make an install exe all the time or write something thats too big etc.

I can ship code to anyone who wants to try it etc.
I could prob. make the code a bit smarter in spots, but it works as it is 
now, and it does what I want so....

Email me Prov. if you want the code to look at.

Jeremy

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to