summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLWinGoo.pm
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-10-11 15:59:29 +0000
committerNorbert Preining <preining@logic.at>2009-10-11 15:59:29 +0000
commitec2688fc27fce3d9e61227b58517eebf926914aa (patch)
tree1f0aa528048d010b00b8cd850f8aa8d1216b903a /Master/tlpkg/TeXLive/TLWinGoo.pm
parentd8af8b9f567e427f32d83a063cb7529373191116 (diff)
add the path to the uninstall key of TL2009
git-svn-id: svn://tug.org/texlive/trunk@15771 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLWinGoo.pm')
-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";