Hi folks, The following is not quite a wix-related question although I am using DTF for developing my managed custom actions.
This is what I need to do during the setup: - Create a user - Assign the SeServiceLogonPrivilege to the new user - Logon the user programmatically - Load the users' profile - Manipulate the users' registry hive - Install a service that uses the users' identity Creating the user, assigning the necessary privilege and make the service run under his identity is no problem. The rest is due to the fact, that I need to alter some values in the users registry hive which does not exist yet right after the user has been created. So I programmatically log him on (using LogonUser), duplicate his token, impersonate as the user, get his profile information, undo the impersonation (to get back my elevated privileges), load the users' profile (which finally triggers the creation of his registry hive) and THEN simply alter his HKEY_USER hive by using the users SID to get the correct path. All of that works like a charm when running a unit test against the code locally on my development machine (no MSI involved). However, when I execute the code as deferred custom action in system context on my Windows Server 2008, the LoadUserProfile method throws an error 1314 (A required privilege is not held by the client). After some research I found out that the user who calls LoadUserProfile needs the SeTcbName privilege (Act as part of the Operating System). However, since the custom action is run deferred in System context, I thought, it already HAS all necessary privileges. Can anyone please enlighten me and explain what's happening here? Many thanks for reading this! Regards, Chris. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users