summaryrefslogtreecommitdiff
path: root/Master/install-tl.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/install-tl.pl')
-rwxr-xr-xMaster/install-tl.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/install-tl.pl b/Master/install-tl.pl
index 08e6b1956e8..6dbfd7d4f69 100755
--- a/Master/install-tl.pl
+++ b/Master/install-tl.pl
@@ -191,7 +191,7 @@ do_postinst_stuff();
dump_vars("$system_tmpdir/texlive.vars");
# if we installed from a profile we don't need to write it out
if (-r "$vars{'TEXDIR'}/$InfraLocation/texlive.profile") {
- warn "Not overwritting already present profile in $vars{'TEXDIR'}/$InfraLocation/texlive.profile\n";
+ warn "Not overwriting already present profile in $vars{'TEXDIR'}/$InfraLocation/texlive.profile\n";
} else {
create_profile("$vars{'TEXDIR'}/$InfraLocation/texlive.profile");
print "Profile written to $vars{'TEXDIR'}/$InfraLocation/texlive.profile\n";
@@ -249,7 +249,8 @@ sub set_texlive_default_dirs {
$tex_prefix=getenv('TEXLIVE_INSTALL_PREFIX');
if (win32) {
- if (-w getenv('ProgramFiles')) {
+ require("TeXLive/win-admin.pl");
+ if (%vars{'win-admin'}) {
$tex_prefix||=getenv('ProgramFiles') . '/texlive';
} else {
$tex_prefix||=getenv('USERPROFILE') . '/texlive';