diff options
author | Norbert Preining <preining@logic.at> | 2009-09-18 19:36:14 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2009-09-18 19:36:14 +0000 |
commit | 87f08dbac512a5b4aff5617fb26ca687bd370c32 (patch) | |
tree | d6171b19c9a717f01cf9cb6429e85129ec9df545 /Master/install-tl | |
parent | 94672e1ae3c58e635dea1ecdd00b220a3105447b (diff) |
TLUtils: add dir_creatable in addition to dir_writable. On Vista/W7
in c:/ one can create directories, but not files!
TLUtils: use dir_creatable in texdir_check, since that is what we need
for parent and parent
install-tl: on w32 if %ProgramFiles% is not writable fall back to
c:\texlive\NNNN
git-svn-id: svn://tug.org/texlive/trunk@15364 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/install-tl')
-rwxr-xr-x | Master/install-tl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Master/install-tl b/Master/install-tl index c609051e6ae..5aef80d493c 100755 --- a/Master/install-tl +++ b/Master/install-tl @@ -995,8 +995,12 @@ sub set_texlive_default_dirs { if (win32) { my $prog = getenv('ProgramFiles'); $tex_prefix ||= $prog . '/texlive'; - # if default is not writable, user has to pick another place manually - # USERPROFILE isn't an option, it is copied around on roaming setups + if (!TeXLive::TLUtils::texdir_check("$tex_prefix/$texlive_release")) { + # the default location is not writable, switch to C:\texlive + $tex_prefix = "c:/texlive"; + } + # we don't use USERPROFILE here because that will be copied back and + # forth on roaming profiles } else { $tex_prefix||='/usr/local/texlive'; } |