Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LogonUser always returns 1314 in a custom action

12 views
Skip to first unread message

Gaolai Peng

unread,
Dec 3, 2002, 3:55:43 PM12/3/02
to
To install our product, besides being an administrator, the logon user
must have two additional rights, "Act as part of operating system" and
"Log on a service". I have created a custom action (type 1) that uses
the Win API LogonUser, together with logon user's name and password,
to validate the logon user's password and rights. However, even though
the logon user do has required rights, LogonUser always returns 1314
(ERROR_PRIVILEGE_NOT_HELD, a required privilege is not held by the
client).

One more thing I need to clear it out that we need to set the type of
the custom action to be "Immediate Execution", instead of "Deferred
Execution in System Context". The reason is we want this custom action
get triggered by the "Next" button in the dialog where the user can
input his/her password for the logon user.

Can anybody help me to check it out? It's kind of high priority, I am
really appreciate.

Rory Plaire

unread,
Jan 2, 2003, 1:05:00 PM1/2/03
to
Hi,

What account is the Windows Installer service running as?

Also, is the DLL being loaded in the same process, or is it handled
out-of-process by a proxy?

The code has to be running with the SE_TCB_NAME privilege, or
LogonUser() fails. This generally means running it under the SYSTEM
account.

kindness,
-rory 8)

0 new messages