Jump to content

This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Ca does NOT execute in system context. Bug??

4 replies to this topic


  • Members
  • 3 posts

Posted 05 February 2004 - 14:10

Hi everybody

In one of our setup we have a CA (in a msi dll) that is set to execute as
deferred in the System Context .. only it does not. There must be some other
(??) option set somewhere as the CA executes in the context of the logged
don user .. not system The CA is a simple call to GetUserName and a message
box. it works in other setups ..

When I open the MSi with ORCA I see that the CA TYPE is set to 3073 .. but
that does not work. I have tested the thing on W2K and WXP and I get the
same result. tested also with msi 1.1, 1.2 and 2.0 .. now I really don't
know what to do next.

Any idea?

for the record, I am using DevStudio 9, sp1



  • Full Members
  • 522 posts

Posted 05 February 2004 - 15:43

This is what I understood:
If the user is an administrator, the installation (including deferrred CAs) is executed using his or her account.
If the user is not an administrator, the installation is executed by the system account, but only if one of the following conditions applhy:
1. The policy InstallElevated is effective (both system and user), or
2. The msi is a managed msi.
If none of these apply, the installation is executed in the user context as well.


  • Members
  • 3 posts

Posted 06 February 2004 - 11:45


I am logged in as Administrator but the CAs set to execute as deferred in the system context should not run under the logged user context; this is, as I understand by design. We have also managed to get it to work on a test project .. but the CA refuses to work properly on our real setup.

What other option could influence this odd behaviour?


  • Members
  • 3 posts

Posted 09 February 2004 - 12:47

for the record, adding ALLUSERS=1 fixed the issue


Robo Scripter

Robo Scripter
  • Members
  • 15 posts

Posted 09 February 2004 - 14:07

I must admit I am a bit confused as to why a CA is required to get the Users Name as it is a native function of the installer.
The following is from the Installer 2.0 SDK Help file.
LogonUser Property
The LogonUser property is the user name for the currently logged on user. Set by the installer by a system call to GetUserName.

If you simply populate the area or action You need the Users Name for with [LogonUser] no CA should be required.


Robert W. Haynie
Software Integration Consultant
+1 (713) 805-4830
Be the stone that sharpens the leading edge.