There's also a straight and forward way that does not require any access
to the registry: the ShellExecute(...) system call. Just one constraint:
you must call a valid file that extension is associated to Ethereal.
Hummm, it seems there's no such an association created in the nsis
script so I propose a patch to automatically do this with '.cap'
extensions. Thanks to check in.
Regards
Laurent
-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx] On Behalf Of Ulf Lamping
Sent: Thursday, May 27, 2004 5:20 PM
To: Etherealdevelopment
Subject: Re: [Ethereal-dev] application path of ethereal in windows
registry
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\UninstallS
tring"
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
_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev
Attachment:
ethereal.nsi.diff
Description: ethereal.nsi.diff