Re: ReportEvent and MessageDLL problem



Correct. Your user doesn't have permission to create the registry entries
using his own account.

To work around this, you'll need to create a small advertised MSI
installation that the user can run (with elevated privileges). You can fire
up this installation using your program when the user needs to perform the
installation.

You may want to take this to an MSI forum, as it's not a VB6 issue.

"Sachin_M" <SachinM@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CA1E4217-C998-4826-B770-ED8C4DB7661F@xxxxxxxxxxxxxxxx
> Thanks Mark,
>
> Well my application is an event logger. The user configures it with new
> event node before he executes it. And the code should take care of new
> event source creation/registration of the same if exists.
>
> You mean, under Windows XP, for normal user (i.e. other than Administrator
> login)
> this won't work at all?
> I mean, I can't create custom log at runtime for a normal user account?
> As I've not tested it on XP.
>
> Regards,
> Sachin M
>
>
>
> "Mark Yudkin" wrote:
>
>> Create a key for your application name (value of your strEventSource
>> variable) under
>>
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\
>> Under that new key, create a REG_SZ value with the name EventMessageFile
>> and
>> value as the path to your DLL.
>> Also create a REG_DWORD value with the name TypesSupported and value 7.
>>
>> Since normal users on XP do not have write access to this part of the
>> registry, you need to do this in your installation program. Installation
>> programs are best written using MSI (not VB6) as MSI installations can be
>> run with the necessary elevated privileges.
>>
>> "Sachin_M" <SachinM@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:781CB3E6-FCB1-4931-BBC4-D986D94291A7@xxxxxxxxxxxxxxxx
>> > Hi Friends,
>> > I'm using following APIs to create custom event log in windows
>> > RegisterEventSource ("", strEventSource)
>> > ReportEvent (lngHwnd, LogType, 0&, EventID, 0&, 1, 0&, lngHwndMsg, 0&)
>> > and then
>> > DeRegisterEventSource (lngHwnd)
>> > Now, my application is designed to log events on regular intervals of 1
>> > second.
>> >
>> > The problem is I'm unable to use MessageDll which I've created with
>> > VC++
>> > 6.0
>> > and Message compiler (mc.exe)
>> > The same Messagedll i've used successfully in VC++ which avoids the
>> > windows
>> > header .....
>> > <Description:
>> > The description for Event ID ( 1001 ) in Source ( DLLtest ) cannot be
>> > found.
>> > The local computer may not have the necessary registry information or
>> > message
>> > DLL files to display messages from a remote computer. The following
>> > information is part of the event: My test message.>
>> >
>> > but its (messagedll) not working with VB.
>> > Can somebody please help me in this? I figure out that there is some
>> > prob
>> > in
>> > api calling from VB.
>> >
>> > And I need to use createRegistry and regSetValueEx to set
>> > eventMessageDLL
>> > path.
>> >
>> > How to do this?????
>> >
>> > Thanks & Regards,
>> > Sachin Malode
>> >
>> >
>>
>>
>>


.



Relevant Pages

  • Re: Application not available for users - not currently installed
    ... I'm not very familiair with MSI packages. ... registry during installation, then export these registry keys to a ... MCSE, CCEA, Microsoft MVP - Terminal Server ... the installation program will not create them and the ...
    (microsoft.public.windows.terminal_services)
  • VS .NET 2003 keeps reinstalling when using a transform to move shortcuts on start menu
    ... installation of Visual Studio .NET 2003 Pro. ... I get a working local installation on our Windows XP Pro SP1 ... The transform was generated using Wise Package Studio 4.62. ... Visual Studio MSI package). ...
    (microsoft.public.vsnet.setup)
  • Re: Setup.exe vs MSIEXEC with Office 2003?
    ... Using just the MSI isn't considered to be a 'supported ... Point as the source or to use a Local Installation Source ... With MSIEXEC I can merely set the ... are expected to take in KB828950 and the "licensing considerations" are ...
    (microsoft.public.office.setup)
  • Re: unable to discovery !!! Please hELP
    ... client via Push installation doesn't work.... ... MSI: Action 6.58.52: GenerateScript. ... ccmsetup 15/09/2004 6.59.18 ...
    (microsoft.public.sms.setup)
  • Re: Encarta 2005 Prof. im Netz ausrollen
    ... > ein MSI File, welches du über die GruRiLi einbindest. ... > WinINSTALL LE 2003 von OnDemand herunter. ... > kann nur für Hauptkategorien ausgewählt werden. ... > bei der Installation angegebenen Ordner, ...
    (microsoft.public.de.german.win2000.networking)

Loading