Jan Wagner wrote:
> Probably what you are looking for is http://sudowin.sourceforge.net/
Thank you for this suggestion. The specific case where I need this
functionality is for a custom made installation program. It has some
functionality that you can specify username & password under which the
installer should run into an INI file.
Currently it just calls CreateProcessWithLogonW with the specified
username and password. Under Vista this will fail with a "Elevation
required" error (ShellExecute will fix this an show the UAC dialog
instead. But since I don't want another password prompt this is no
solution for me).
If I understand correctly SudoWin required a Service to run. Since
you'll need admin rights to install the service this also doesn't work
for me.
(I know this could be solved by using an MSI installer, but since it is
quite a complex and deprecated installation program I want to avoid
rewriting the whole installation process)
Thank you
Pascal