summaryrefslogtreecommitdiff
path: root/solenv/bin/modules/installer/windows
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-09-08 20:19:03 +0200
committerAndras Timar <atimar@suse.com>2012-09-08 20:19:03 +0200
commit15a2c9adca6a0d5dd196e97312c664bc21ae1b6c (patch)
treea9d857607eaeb0e7695738e6bebecae20cc43738 /solenv/bin/modules/installer/windows
parent74340d8b0e9c6d2799f08b66a60f404f2d1324c6 (diff)
remove SelfReg table from MSI
We did not use it, and it is not recommended to use it. See: http://msdn.microsoft.com/en-us/library/windows/desktop/aa371608%28v=vs.85%29.aspx Installation package authors are strongly advised against using self registration. Change-Id: I1dc9a5b66646c63d2ee9a672f045595e6bbb2f42
Diffstat (limited to 'solenv/bin/modules/installer/windows')
-rw-r--r--solenv/bin/modules/installer/windows/idtglobal.pm10
-rw-r--r--solenv/bin/modules/installer/windows/selfreg.pm79
2 files changed, 0 insertions, 89 deletions
diff --git a/solenv/bin/modules/installer/windows/idtglobal.pm b/solenv/bin/modules/installer/windows/idtglobal.pm
index 325ce11a5d7c..9bfe9c29886c 100644
--- a/solenv/bin/modules/installer/windows/idtglobal.pm
+++ b/solenv/bin/modules/installer/windows/idtglobal.pm
@@ -544,16 +544,6 @@ sub write_idt_header
push(@{$idtref}, $oneline);
}
- if ( $definestring eq "selfreg" )
- {
- $oneline = "File_\tCost\n";
- push(@{$idtref}, $oneline);
- $oneline = "s72\tI2\n";
- push(@{$idtref}, $oneline);
- $oneline = "SelfReg\tFile_\n";
- push(@{$idtref}, $oneline);
- }
-
if ( $definestring eq "msiassembly" )
{
$oneline = "Component_\tFeature_\tFile_Manifest\tFile_Application\tAttributes\n";
diff --git a/solenv/bin/modules/installer/windows/selfreg.pm b/solenv/bin/modules/installer/windows/selfreg.pm
deleted file mode 100644
index 0a34b4a0d1e3..000000000000
--- a/solenv/bin/modules/installer/windows/selfreg.pm
+++ /dev/null
@@ -1,79 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-package installer::windows::selfreg;
-
-use installer::exiter;
-use installer::files;
-use installer::globals;
-use installer::worker;
-use installer::windows::idtglobal;
-
-##############################################################
-# Returning the cost for the selfreg table.
-##############################################################
-
-sub get_selfreg_cost
-{
- my ( $onefile ) = @_;
-
- return "0";
-}
-
-####################################################################################
-# Creating the file SelfReg.idt dynamically
-# Content:
-# File_ Cost
-# UpgradeCode VersionMin VersionMax Language Attributes Remove ActionProperty
-####################################################################################
-
-sub create_selfreg_table
-{
- my ($filesref, $basedir) = @_;
-
- my @selfregtable = ();
-
- installer::windows::idtglobal::write_idt_header(\@selfregtable, "selfreg");
-
- # Registering all libraries with flag "SELFREG"
-
- my $selfregfiles = installer::worker::collect_all_items_with_special_flag($filesref, "SELFREG");
-
- for ( my $i = 0; $i <= $#{$selfregfiles}; $i++ )
- {
- my $onefile = ${$selfregfiles}[$i];
-
- my %selfreg = ();
-
- $selfreg{'File_'} = $onefile->{'uniquename'};
- $selfreg{'Cost'} = get_selfreg_cost($onefile);
-
- my $oneline = $selfreg{'File_'} . "\t" . $selfreg{'Cost'} . "\n";
-
- push(@selfregtable, $oneline);
- }
-
- # Saving the file
-
- my $selfregtablename = $basedir . $installer::globals::separator . "SelfReg.idt";
- installer::files::save_file($selfregtablename ,\@selfregtable);
- my $infoline = "Created idt file: $selfregtablename\n";
- push(@installer::globals::logfileinfo, $infoline);
-}
-
-1; \ No newline at end of file