i have a Setup Project which contains .NET C# Custom Actions. One of these Custom Actions try to start a Process (which needs admin rights).
The "Execution Time" of the custom action is after the system has been successfully modified (commit).
With execute option no impersonation, run with full local system privileges.
If the location of the program which i want to start in the custom action is in a local system folder, everything is ok.
But if the location (its possible) is in a shared folder the ProcessStart fails with "Access Denied".
If i change the execution time to "Immediately", the process starts without errors, even it is in a shared folder.
Dont know if this helps, ProcessStartInfo object i use:
Code: Select all
new ProcessStartInfo
{
FileName = process,
Arguments = arguments,
UseShellExecute = true,
RedirectStandardError = false,
RedirectStandardInput = false,
RedirectStandardOutput = false,
ErrorDialog = false,
Verb = "runas"
};