Ethereal-dev: Re: [Ethereal-dev] application path of ethereal in windows registry

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Ulf Lamping" <ulf.lamping@xxxxxx>
Date: Thu, 27 May 2004 17:20:24 +0200
Ethereal development <ethereal-dev@xxxxxxxxxxxx> schrieb am 27.05.04 17:03:37:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> 
> On Thu, 27 May 2004, arshad khan wrote:
> 
> > I am trying to run ethereal from another application(programmatically).
> > For that I want to have the path of installed ethereal in the windows
> > registry. I have installed Ethereal 0.10.3 on windows XP as well as on
> > windows 2000 server. On XP , I am able to find the path as follows:
> >
> > HKEY_CURENT_USER/Software/Microsoft/Windows/ShellNoRoam/MUICache
> 
> That is a key of which I had not previously heard.  I would strongly
> suggest *not* depending on any of the shell caches, as their content is
> not guaranteed to be complete or stable.
> 

MUICache in not an "approved" method and *will* fail.

You could indirectly use the uninstaller string, which is in the same dir as the ethereal.exe itself:

HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Uninstall\Ethereal\UninstallString" 

This will point to the uninstall.exe, something like: "C:\Program Files\Ethereal\uninstall.exe"

So you will have to remove uninstall.exe from this string and append ethereal.exe, this should point to the exe file.

I would think, that this should work on all windows platforms, as the installer don't distinguish between windows versions.

Regards, ULFL

_______________________________________________________________________
Moechten Sie Ihre SMS noch ausdrucksstaerker und emotionaler gestalten?
Fuegen Sie einfach ein Bild hinzu! http://freemail.web.de/?mc=021194