summaryrefslogtreecommitdiff
path: root/oowintool
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-05-23 11:20:15 +0200
committerEike Rathke <erack@redhat.com>2012-05-23 11:20:43 +0200
commit877c96a601e6e50d0c7a8f704d57baec22f089c5 (patch)
tree064fee4ce6287e4ece1bbcfd2e2226e8a0d31ddc /oowintool
parentb30e202861e9bdba4d86e76ba8a6f059da8efc31 (diff)
copy msms only for ver 9.0, MSVC 2010 doesn't have them
Diffstat (limited to 'oowintool')
-rwxr-xr-xoowintool3
1 files changed, 3 insertions, 0 deletions
diff --git a/oowintool b/oowintool
index 3b8d76311f49..d3117502d2ff 100755
--- a/oowintool
+++ b/oowintool
@@ -275,6 +275,9 @@ sub msvc_copy_msms($$)
# $postfix is empty for x86, and '_x64' for x64
my ($dest, $postfix) = @_;
+ my $ver = find_msvc();
+ (defined $ver && ($ver->{'ver'} eq '9.0')) || return;
+
my $msm_path = (cygpath reg_get_value ("HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VisualStudio/9.0/Setup/VS/MSMDir"), 'w', $output_format);
defined $msm_path || die "MSMDir not found";
foreach $fname ("Microsoft_VC90_CRT_x86$postfix.msm", "policy_9_0_Microsoft_VC90_CRT_x86$postfix.msm") {