diff options
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'; } |