1

我想编写一个自定义操作,它将在所有其他自定义操作之上执行并在系统上下文中执行。如果我使用“立即执行”,那么它会在登录的用户上下文中执行,如果我使用“系统上下文中的延迟执行”,那么这个自定义操作会在其他自定义操作之后执行。我应该怎么做才能处理这种情况?

4

1 回答 1

2

Only deferred actions can be executed in system context. It is executed at its scheduled sequence between other deferred actions. If this action must be the first action run, you would need a bootstrapper which will elevate permissions and the start your installation.

Note also: Deferred actions have very limited access to the properties of the install.

于 2011-08-18T09:21:46.880 回答