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.
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?
Started by
mohearn
, Feb 17 2005 23:45
1 reply to this topic
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".
http://msdn.microsof...on_security.asp
http://msdn.microsof...ion_options.asp
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".
http://msdn.microsof...on_security.asp
http://msdn.microsof...ion_options.asp