Autor Beitrag
Miri
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Mo 07.11.05 14:28 
Also, ich hab ein Programm, was erst aus einer DB Informationen ausliest, diese dann anzeigt und über "Drucken" wird eine bestimmte Textdatei genommen, diverse Begriffe (z.B. {titel}) durch die entsprechenden Werte aus der DB ersetzt, dann wird die Datei woanders abgespeichert. Als nächstes wird - in der gleichen Prozedur - über einen DOS-Befehl erst der Zeichensatz konvertiert, die konvertierte Datei nochmal abgespeichert und dann (auch über DOS) an einen Drucker geschickt.
Das Programm läuft, wenn ich es ganz normal kompiliert habe, ohne weiteres. Jetzt erstelle ich aber über InstallShield Express für Delphi5 Installationsdateien. Und wenn ich diese dann installiere, funktioniert das ganze nur noch ein mal - nämlich, wenn ich am Ende der Installation sage "Jetzt starten". Wenn ich das Prog dann das nächste mal ganz normal starten will, klappt zwar das Auslesen aus der DB, auch noch das erste abspeichern, aber sonst passiert nichts weiter. Hat irgendwer eine Erklärung dafür???
Wenn ich die Dateien, die ich dem Installationsprog mitgebe zu Fuß woanders hin kopiere (z.B. exe-Datei, ini-Datei, db, etc. nach irgendwo hin) dann klappt das ohne weiteres. Nur mit der Installation gehts nicht... bin vollkommen ratlos :(


Moderiert von user profile iconraziel: Topic aus Sonstiges verschoben am Di 08.11.2005 um 18:26
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Mo 07.11.05 16:08 
Vermutlich hast du ein Problem mit den Pfadangaben die dein Programm erwartet und wie sie auf dem Zielsystem sind.
Falls das letzte Verzeichnis zufälligerweise deines war(wie bei einer Installation) funktioniert alles scheinbar aber wenn du es normal startest dann nicht.

Probier mal aus dein installiertes Programm aus dem Explorer zu starten und schau im code ob du teilweise nur mit "dateixyz.xyz" arbeitest anstatt mit absoluten Pfaden.
Miri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Mo 07.11.05 16:17 
ich hab sämtliche pfade mit extractfilepath(paramstr(0)) + irgendetwas angegeben... sollten also absolute sein, oder nicht?
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Mo 07.11.05 17:28 
Ich denke schon, vielleicht liegts an deinen "dir > c:\tmp.lst" Aufrufen...
Miri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Mo 07.11.05 17:46 
Aber wieso funktioniert das denn dann, wenn ich doch alles, von Hand woanders hinkopiere (auch auf nen anderen Rechner)...
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Di 08.11.05 09:41 
Wird evtl. ne Datei vergessen?
Miri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Di 08.11.05 10:01 
auch das nicht.
werds dann jetzt halt so machen, dass ich in den installshield nur die bde reinpacke und den rest so kopiere... ist zwar nicht schön, aber hauptsache, es funktioniert...
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Di 08.11.05 10:27 
Installierst du dein Programm mit InstallShield vielleicht in ein Verzeichnis mit einem Leerzeichen drin? Bzw. ist in dem installierten Pfad irgendwo ein Leerzeichen? Da musst du bei Dos aufpassen, da gibts evtl Probleme! Fasse am Besten alle Pfadangeben in Dos in " ein. Also z.B.
ausblenden Quelltext
1:
"C:\Programme\Mein Programm\bla.exe" "irgend ein parameter"					


MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
Miri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Di 08.11.05 11:23 
Da habe ich auch schon dran gedacht. Müsste ich vielleicht nochmal genauer prüfen.
Allerdings funktionierte es ja, wenn ich über "Programm jetzt starten" aus dem Setup gestartet habe. Nur danach nicht mehr. Aber Danke für den Tip, wenn ich nachher noch Zeit dafür habe, probiere ich es nochmal mit anderen Ordnernamen...
Miri Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 657


Delphi 3 Prof., Delphi 2005 PE
BeitragVerfasst: Fr 11.11.05 10:26 
Es hat wirklich an den Pfaden gelegen :oops:
Wobei ich aber immer noch nicht verstehe, warum es funktionierte, wenn ich es von "Programm jetzt starten" aus aufgerufen hab zum Ende der Installation... Aber ist ja auch eigentlich egal, denn jetzt gehts ja :)