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.

Run a custom action not as the current user?

1 reply to this topic


  • Members
  • 4 posts

Posted 17 February 2005 - 23:45

Is it possible for me to execute a C# app as the currently logged in user during the installation sequence?

I could probably use some code inside the C# app to impersonate the user, but then I would have to prompt them for their password, which I don't want to do.

Currently, I have this app run after the installation is completed, but that causes problems when it fails and the installation isn't rolled back.


  • Members
  • 121 posts

Posted 18 February 2005 - 09:42

By default, custom actions do run with the privileges of the user who launched the installation. Assuming your user is kicking off the installation, your custom actions will run under his account (by default).

The default can be changed so that no impersonation is used - search for the following topics in the SDK:

1) "Custom Action Security".
2) "Custom Action In-Script Execution Options".