[Hackage] #320: cooperation with Windows Vista's User Access Control

Hackage trac at galois.com
Fri Oct 10 18:00:16 EDT 2008

#320: cooperation with Windows Vista's User Access Control
  Reporter:  Toxaris        |        Owner:         
      Type:  enhancement    |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:
  Severity:  normal         |   Resolution:         
  Keywords:                 |   Difficulty:  normal 
Ghcversion:  6.8.2          |     Platform:  Windows
Comment (by eipi):

 It seems the most convenient solution for elevating a process using win32
 would be to run that process through ShellExecuteEx. The trick is that a
 new verb can be used in the SHELLEXECUTEINFO struct (field "lpVerb"),
 setting it with value "runas". If started in this way, the process will
 display the UAC dialog for authorization instead of failing. So for Cabal,
 it seems the copy and dir creation could be handled by spawning a new
 process using the win32 API as descibed above.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/320#comment:2>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list