PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → [WD22] How can I get the place where a application is installed
[WD22] How can I get the place where a application is installed
Débuté par Michael Drechsel, 18 mai 2018 08:18 - 5 réponses
Posté le 18 mai 2018 - 08:18
Hi,

in my windev application I need to start an external program. I know the nam of the exe ("myprogram.exe") but I don´t know where it is located at the users computer.

Is there an easy way to get this information from the registry ?
Posté le 18 mai 2018 - 09:11
Hi Michael,

what about fexeDir() ?
Posté le 18 mai 2018 - 09:18
HI Guenter,

I know the name of the exe, but it is not started and I doesn´t know where it is.
I need to know the full path (32 or 64) to start the application from windev.

There a several entries in the registry, but I don´t know which is the right one.
Posté le 18 mai 2018 - 09:50
Hi Michael,

for installed programs, there should be a record in the registry which says, where it actually is located. If your installer installed it as a windows program in \Programme or \Program files or \Programme (x86) etc.
Posté le 18 mai 2018 - 10:27
Hi,

it is in :

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\myprog.exe


regards, Heinz
Posté le 18 mai 2018 - 10:43
Hi Heinz,

unfortunately not ... I found at github a post, they use:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

It looks like these GUIDs are unique ...