Autor Beitrag
Saarpoint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: Mi 17.05.06 21:26 
Hallo!

Ich benutze den Install Shield gerade zum ersten Mal.

Mein Programm fragt den Schlüssel "InstallDir" zwar ab, aber Install Shield legt ihn nicht an...??? Was muss ich unter der Kategorie "Registrierung" eintragen, damit das Programm weiss, welchen Installationspfad der Benutzer ausgewählt hat.

Habe es folgendermaßen probiert:

InstallDir [InstallDir]

... was aber nicht klappte :?

Gruß, Andy


Moderiert von user profile iconraziel: Topic aus Sonstiges (Delphi) verschoben am Do 18.05.2006 um 06:47
Moderiert von user profile iconTino: Info-Wert gesetzt. Überflüssige Zeilenumbrüche entfernt.

_________________
Standart := false; Standard := true;
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Do 18.05.06 07:36 
Musst du den unbedingt in der Registry hinterlegen? Den kannst du doch über ParamStr(0) rauskriegen.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 18.05.06 07:46 
Ist das ein "Basic MSI" Projekt?
Saarpoint Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: Do 18.05.06 17:47 
Da muss ich nochmal nachschauen.
Ich weiss jetzt nicht was mit Basic MSI gemeint ist, aber soviel ich weiss, wurde ich nicht nach einer bestimmten Projektart gefragt. Was mich wundert ist, dass die Verknüpfung auf dem Desktop/Startmenü zwar funktioniert, aber wenn ich diese mit rechts anklicke und auf Eigenschaften klicke, ist "Ziel suchen" in Geisterschrift und das Ziel-Feld leer.

Mit "ParamStr(0)" das ist mir neu. Ich dachte dort werden nur "Schalter" abgefragt...

Ne Idee wäre noch, mit "GetDir" beim ersten Start das Verzeichnis abzufragen und nachträglich in die Registry einzutragen.

Gruß, Andy

_________________
Standart := false; Standard := true;
Clemens L.
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 158

Win Xp SP3
D6 Enterprise, Turbo Delphi Explorer
BeitragVerfasst: Do 18.05.06 18:28 
Du kannst über ParamStr(0) den Pfad deiner Anwendung rauskriegen. In ParamStr(0) kann sowas drinnstehen : C:\Ordner\NocheinOrdner\Anwendung.exe

So kriegst du dann den Installationspfad raus :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
var Pfad : string;
begin
Pfad := ExtractFilePath(ParamStr(0));
end;


Und fertig! :wink:

Many Greetings, hackerTreff
Saarpoint Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: Do 18.05.06 21:07 
Geil, funzt! Danke! :D

Gruß, Andy

_________________
Standart := false; Standard := true;