Ticket #320 (new enhancement)
cooperation with Windows Vista's User Access Control
| Reported by: | Toxaris | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | _|_ |
| Component: | Cabal library | Version: | 1.4.0.1 |
| Severity: | normal | Keywords: | |
| Cc: | rendel@… | Difficulty: | normal |
| GHC Version: | 6.8.2 | Platform: | Windows |
Description
Installation of a cabal package under Windows Vista with UAC activated may fail even when working as administrator, because cabal doesn't request the necessary rights to write to, e.g., "c:\Program Files\Haskell\<whatever>". A workaround is to start an "Administrator console" to start Cabal from a process which already acquired admin privileges.
Cabal should request the necessary rights instead of failing.
cabal-install should check in advance whether the target destination is writeable and fail early or request the necessary rights. (currently, cabal-install fails after compiling all dependencies. After starting cabal-install again from an Administrator console, everything has to be build again).
C:\Downloads\Haskell\typeof-0.1.1>runhaskell Setup install Setup: C:\Program Files\Haskell\doc\typeof-0.1.1: copyFile: permission denied (P ermission denied)
