Autor Beitrag
Sithlord
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 172



BeitragVerfasst: So 08.07.07 22:07 
Will bei meinem Delphiprogramm eine Updatefunktion machen !

Wie mache ich das ?

mfg Sithlord


Moderiert von user profile iconChristian S.: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mo 16.07.2007 um 19:57
Blawen
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 616
Erhaltene Danke: 33

Win XP, Vista, 7
Delphi 5 Prof., BDS 2006 Prof. RAD Studio XE
BeitragVerfasst: So 08.07.07 22:21 

_________________
Es kompilert, wir können ausliefern.
Und es kompiliert wieder - das Update ist fertig - bitte 100 Euro ;-)
Sithlord Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 172



BeitragVerfasst: Mo 16.07.07 13:24 
Habes gemacht !

Geht auch !

Danke an dich !

Nun noch eine Frage zu diesem Thema :

Habe nun mit const=version '1.0.0'; festgestellt .

Da ich aber 2 Programm habe ( start.exe , mit Updatefunktion und aufruf für programm.exe)
und (Programm.exe ,Hauptprogramm , das immer geupdatet werden soll .)

Das Problem ist , wie die start.exe herausfindet , welche const=version '1.0.0'; programm.exe hat . Damit auch gesagt wird , das man die neueste Version hat .

mfg Sithlord
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mo 16.07.07 14:34 
Welches Programm ruft denn jetzt was auf?

Schreib doch die aktuelle Version in die Registry oder in eine INI-Datei ;)

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
Sithlord Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 172



BeitragVerfasst: Mo 16.07.07 20:25 
Gute idee ! .ini Datei find ich am besten , das Problem ist nun nicht das schreiben der .ini Datei sondern das auslesen .

Davon habe ich keine Ahnung , da ich nie mit ini Dateien arbeite .
Blawen
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 616
Erhaltene Danke: 33

Win XP, Vista, 7
Delphi 5 Prof., BDS 2006 Prof. RAD Studio XE
BeitragVerfasst: Mo 16.07.07 23:28 
user profile iconSithlord hat folgendes geschrieben:
Gute idee ! .ini Datei find ich am besten , das Problem ist nun nicht das schreiben der .ini Datei sondern das auslesen .

Davon habe ich keine Ahnung , da ich nie mit ini Dateien arbeite .
Dies ist eigentlich sehr einfach.
schau mal hier www.delphi-library.d...82&highlight=ini
und insbesondere das darin erwähnte Tutorial: www.kuknet.de/tutorial1.pdf

Aber nimm keine absoluten, sondern nur relative Pfade im Sinne:
ausblenden Delphi-Quelltext
1:
Ini := tIniFile.Create(extractfilepath(paramstr(0))+'config.Ini');					

_________________
Es kompilert, wir können ausliefern.
Und es kompiliert wieder - das Update ist fertig - bitte 100 Euro ;-)
Sithlord Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 172



BeitragVerfasst: Di 17.07.07 10:53 
Schon klar :D

Aber meine Programme werden später sowieso im festen Pfad installiert :wink:
Aber es kann trotzdem gut sein , das mal etwas verändert wird .

Das Programm : start.exe ruft das Programm : Programm.exe auf ...

Mit den Inis fummel ich mich mal durch , wird schon schiefgehen :wink:

Danke für deine Antworten