Autor Beitrag
soong101
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 31

WIN XP
Delphi 2005 Personal
BeitragVerfasst: Sa 19.04.08 18:50 
Hallo!

Mein Programm soll überprüfen, ob und wo ein bestimmtes Programm installiert ist. Dieses Programm trägt sich zwar in die Registry ein, leider aber nicht mit dem Installationsverzeichnis. Das steht nur in der Pfadvariable bei den Windows-Systemvariablen. Wie komme ich da aber ran?

_________________
As Wichita Falls So Falls Wichita Falls
Christian V.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 19.04.08 19:16 
Mit dem CMD Befehl "path" bekommst du den Inhalt der Pfadvariable. Such einfach mal hier im Forum wie man sowas mit Delphi realisiert.

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Sa 19.04.08 19:27 
Vieeel zu kompliziert ;)

ausblenden Delphi-Quelltext
1:
GetEnvironmentVariable('PATH');					


tut's auch.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
soong101 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 31

WIN XP
Delphi 2005 Personal
BeitragVerfasst: So 20.04.08 13:57 
Danke für die schnelle Hilfe!

_________________
As Wichita Falls So Falls Wichita Falls