summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/tlpkg/TeXLive/TLWinGoo.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/Master/tlpkg/TeXLive/TLWinGoo.pm b/Master/tlpkg/TeXLive/TLWinGoo.pm
index 014564331c0..b7436971ed3 100644
--- a/Master/tlpkg/TeXLive/TLWinGoo.pm
+++ b/Master/tlpkg/TeXLive/TLWinGoo.pm
@@ -140,6 +140,7 @@ BEGIN {
}
}
+use Digest::MD5;
use TeXLive::TLConfig;
use TeXLive::TLUtils;
TeXLive::TLUtils->import( qw( mkdirhier ) );
@@ -1057,12 +1058,18 @@ sub create_uninstaller {
my $tdsc = $tdscfw;
$tdsc =~ s!/!\\!g;
+ # we use as key for the uninstallation process the TEXDIRW key
+ my $uninstpath = $tdwfw;
+ # make sure that we only have forward slashes
+ $uninstpath =~ s!\\!/!g;
+ my $dig = Digest::MD5::md5_hex($uninstpath);
+
my $uninst_key = $Registry -> Open((admin() ? "LMachine" : "CUser") .
"/software/microsoft/windows/currentversion/",
{Access => KEY_ALL_ACCESS()});
my $k = $uninst_key->CreateKey(
- "uninstall/TeXLive$::TeXLive::TLConfig::ReleaseYear/");
- $k->{"/DisplayName"} = "TeX Live $::TeXLive::TLConfig::ReleaseYear";
+ "uninstall/TeXLive$::TeXLive::TLConfig::ReleaseYear$dig/");
+ $k->{"/DisplayName"} = "TeX Live $::TeXLive::TLConfig::ReleaseYear ($uninstpath)";
$k->{"/UninstallString"} = "\"$tdw\\tlpkg\\installer\\uninst.bat\"";
$k->{'/DisplayVersion'} = $::TeXLive::TLConfig::ReleaseYear;
$k->{'/URLInfoAbout'} = "http://www.tug.org/texlive";