Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
20696b2a
Kaydet (Commit)
20696b2a
authored
Tem 23, 2013
tarafından
Fridrich Štrba
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
WIP: data for the new MsiShortcutProperty installer table
Change-Id: If421383abe95738b8247aebc5cf43b1eaa346c39
üst
d5624bb0
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
216 additions
and
5 deletions
+216
-5
folderitem_base.scp
scp2/source/base/folderitem_base.scp
+6
-0
folderitem_calc.scp
scp2/source/calc/folderitem_calc.scp
+6
-0
folderitem_draw.scp
scp2/source/draw/folderitem_draw.scp
+6
-0
folderitem_impress.scp
scp2/source/impress/folderitem_impress.scp
+6
-0
folderitem_math.scp
scp2/source/math/folderitem_math.scp
+6
-0
folderitem_ooo.scp
scp2/source/ooo/folderitem_ooo.scp
+12
-0
folderitem_writer.scp
scp2/source/writer/folderitem_writer.scp
+6
-0
installer.pm
solenv/bin/modules/installer.pm
+8
-0
idtglobal.pm
solenv/bin/modules/installer/windows/idtglobal.pm
+10
-0
msishortcutproperty.pm
solenv/bin/modules/installer/windows/msishortcutproperty.pm
+145
-0
globals.pm
solenv/bin/modules/par2script/globals.pm
+3
-3
globals.pm
solenv/bin/modules/pre2par/globals.pm
+2
-2
No files found.
scp2/source/base/folderitem_base.scp
Dosyayı görüntüle @
20696b2a
...
...
@@ -30,4 +30,10 @@ FolderItem gid_Folderitem_Sbase
Parameter = "";
ALL_LANG(Tooltip, STR_FI_TOOLTIP_BASE);
End
FolderItemProperty git_Folderitem_Sbase_AppIDProperty
ShortcutID = gid_Folderitem_Sbase;
Key = "System.AppUserModel.ID"
Value = "TheDocumentFoundation.LibreOffice.Base"
End
#endif
scp2/source/calc/folderitem_calc.scp
Dosyayı görüntüle @
20696b2a
...
...
@@ -30,4 +30,10 @@ FolderItem gid_Folderitem_Scalc
Parameter = "";
ALL_LANG(Tooltip, STR_FI_TOOLTIP_CALC);
End
FolderItemProperty git_Folderitem_Scalc_AppIDProperty
ShortcutID = gid_Folderitem_Scalc;
Key = "System.AppUserModel.ID"
Value = "TheDocumentFoundation.LibreOffice.Calc"
End
#endif
scp2/source/draw/folderitem_draw.scp
Dosyayı görüntüle @
20696b2a
...
...
@@ -30,4 +30,10 @@ FolderItem gid_Folderitem_Sdraw
Parameter = "";
ALL_LANG(Tooltip, STR_FI_TOOLTIP_DRAW);
End
FolderItemProperty git_Folderitem_Sdraw_AppIDProperty
ShortcutID = gid_Folderitem_Sdraw;
Key = "System.AppUserModel.ID"
Value = "TheDocumentFoundation.LibreOffice.Draw"
End
#endif
scp2/source/impress/folderitem_impress.scp
Dosyayı görüntüle @
20696b2a
...
...
@@ -30,4 +30,10 @@ FolderItem gid_Folderitem_Simpress
Parameter = "";
ALL_LANG(Tooltip, STR_FI_TOOLTIP_IMPRESS);
End
FolderItemProperty git_Folderitem_Simpress_AppIDProperty
ShortcutID = gid_Folderitem_Simpress;
Key = "System.AppUserModel.ID"
Value = "TheDocumentFoundation.LibreOffice.Impress"
End
#endif
scp2/source/math/folderitem_math.scp
Dosyayı görüntüle @
20696b2a
...
...
@@ -30,4 +30,10 @@ FolderItem gid_Folderitem_Smath
Parameter = "";
ALL_LANG(Tooltip, STR_FI_TOOLTIP_MATH);
End
FolderItemProperty git_Folderitem_Smath_AppIDProperty
ShortcutID = gid_Folderitem_Smath;
Key = "System.AppUserModel.ID"
Value = "TheDocumentFoundation.LibreOffice.Math"
End
#endif
scp2/source/ooo/folderitem_ooo.scp
Dosyayı görüntüle @
20696b2a
...
...
@@ -35,6 +35,12 @@ FolderItem gid_Folderitem_LibreOffice
Parameter = "";
End
FolderItemProperty git_Folderitem_LibreOffice_AppIDProperty
ShortcutID = gid_Folderitem_LibreOffice;
Key = "System.AppUserModel.ID"
Value = "TheDocumentFoundation.LibreOffice.Startcenter"
End
FolderItem gid_Folderitem_Soffice_Desktop
#ifdef ENABLE_SILENT_MSI
Name = "%PRODUCTNAME";
...
...
@@ -52,3 +58,9 @@ FolderItem gid_Folderitem_Soffice_Desktop
Parameter = "";
ComponentCondition = "CREATEDESKTOPLINK=1";
End
FolderItemProperty git_Folderitem_Soffice_Desktop_AppIDProperty
ShortcutID = gid_Folderitem_Soffice_Desktop;
Key = "System.AppUserModel.ID"
Value = "TheDocumentFoundation.LibreOffice.Startcenter"
End
scp2/source/writer/folderitem_writer.scp
Dosyayı görüntüle @
20696b2a
...
...
@@ -30,4 +30,10 @@ FolderItem gid_Folderitem_Swriter
Parameter = "";
ALL_LANG(Tooltip, STR_FI_TOOLTIP_WRITER);
End
FolderItemProperty git_Folderitem_Swriter_AppIDProperty
ShortcutID = gid_Folderitem_Swriter;
Key = "System.AppUserModel.ID"
Value = "TheDocumentFoundation.LibreOffice.Writer"
End
#endif
solenv/bin/modules/installer.pm
Dosyayı görüntüle @
20696b2a
...
...
@@ -64,6 +64,7 @@ use installer::windows::inifile;
use
installer::windows::
media
;
use
installer::windows::
mergemodule
;
use
installer::windows::
msiglobal
;
use
installer::windows::
msishortcutproperty
;
use
installer::windows::
msp
;
use
installer::windows::
property
;
use
installer::windows::
removefile
;
...
...
@@ -351,6 +352,7 @@ sub run {
my
$folderinproductarrayref
;
my
$folderitemsinproductarrayref
;
my
$folderitempropertiesinproductarrayref
;
my
$registryitemsinproductarrayref
;
my
$windowscustomactionsarrayref
;
my
$mergemodulesarrayref
;
...
...
@@ -367,6 +369,10 @@ sub run {
installer::setupscript::
add_predefined_folder
(
$folderitemsinproductarrayref
,
$folderinproductarrayref
);
installer::logger::
print_message
(
"... analyzing folderitemproperties ... \n"
);
$folderitempropertiessinproductarrayref
=
installer::setupscript::
get_all_items_from_script
(
$setupscriptref
,
"FolderItemProperty"
);
installer::logger::
print_message
(
"... analyzing registryitems ... \n"
);
$registryitemsinproductarrayref
=
installer::setupscript::
get_all_items_from_script
(
$setupscriptref
,
"RegistryItem"
);
...
...
@@ -1386,6 +1392,8 @@ sub run {
installer::windows::upgrade::
create_upgrade_table
(
$newidtdir
,
$allvariableshashref
);
installer::windows::msishortcutproperty::
create_msishortcutproperty_table
(
$folderitempropertiesinproductlanguageresolvedarrayref
,
$folderitemsinproductlanguageresolvedarrayref
,
$newidtdir
);
if
((
!
$
installer::globals::
languagepack
)
&&
(
!
$
installer::globals::
helppack
))
# the following tables not for language packs or help packs
{
installer::windows::removefile::
create_removefile_table
(
$folderitemsinproductlanguageresolvedarrayref
,
$newidtdir
);
...
...
solenv/bin/modules/installer/windows/idtglobal.pm
Dosyayı görüntüle @
20696b2a
...
...
@@ -475,6 +475,16 @@ sub write_idt_header
push
(
@
{
$idtref
},
$oneline
);
}
if
(
$definestring
eq
"msishortcutproperty"
)
{
$oneline
=
"MsiShortcutProperty\tShortcut_\tPropertyKey\tPropVariantValue\n"
;
push
(
@
{
$idtref
},
$oneline
);
$oneline
=
"s72\ts72\tS255\tS255\n"
;
push
(
@
{
$idtref
},
$oneline
);
$oneline
=
"MsiShortcutProperty\tMsiShortcutProperty\n"
;
push
(
@
{
$idtref
},
$oneline
);
}
if
(
$definestring
eq
"registry"
)
{
$oneline
=
"Registry\tRoot\tKey\tName\tValue\tComponent_\n"
;
...
...
solenv/bin/modules/installer/windows/msishortcutproperty.pm
0 → 100644
Dosyayı görüntüle @
20696b2a
#
# 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::
msishortcutproperty
;
use
installer::
exiter
;
use
installer::
files
;
use
installer::
globals
;
use
installer::windows::
idtglobal
;
##############################################################
# Returning identifier for msishortcutproperty table.
##############################################################
sub
get_msishortcutproperty_identifier
{
my
(
$msishortcutproperty
)
=
@_
;
my
$identifier
=
$msishortcutproperty
->
{
'gid'
};
return
$identifier
;
}
##############################################################
# Returning shortcut for msishortcutproperty table.
##############################################################
sub
get_msishorcutproperty_shortcut
{
my
(
$msishortcutproperty
,
$filesref
)
=
@_
;
my
$onefile
;
my
$shortcut
=
""
;
my
$found
=
0
;
my
$msishortcutproperty_shortcutid
=
$msishortcutproperty
->
{
'ShortcutID'
};
for
(
my
$i
=
0
;
$i
<=
$#
{
$filesref
};
$i
++
)
{
$onefile
=
$
{
$filesref
}[
$i
];
my
$filegid
=
$onefile
->
{
'gid'
};
if
(
$filegid
eq
$msishortcutproperty_shortcutid
)
{
$found
=
1
;
last
;
}
}
if
(
!
(
$found
))
{
installer::exiter::
exit_program
(
"ERROR: Did not find ShortcutID $msishortcutproperty_shortcutid in file collection for shortcut"
,
"get_msishorcutproperty_shortcut"
);
}
$shortcut
=
$onefile
->
{
'gid'
};
return
$shortcut
;
}
##############################################################
# Returning the propertykey for msishortcutproperty table.
##############################################################
sub
get_msishortcutproperty_propertykey
{
my
(
$msishortcutproperty
,
$onelanguage
)
=
@_
;
my
$propertykey
=
""
;
if
(
$msishortcutproperty
->
{
'PropertyKey'
}
)
{
$propertykey
=
$msishortcutproperty
->
{
'PropertyKey'
};
}
return
$propertykey
;
}
################################################################
# Returning the propvariantvalue for msishortcutproperty table.
################################################################
sub
get_msishortcutproperty_propvariantvalue
{
my
(
$msishortcutproperty
,
$onelanguage
)
=
@_
;
my
$propvariantvalue
=
""
;
if
(
$msishortcutproperty
->
{
'PropVariantValue'
}
)
{
$propvariantvalue
=
$msishortcutproperty
->
{
'PropVariantValue'
};
}
return
$propvariantvalue
;
}
###################################################################
# Creating the file MsiShortcutProperty.idt dynamically
# Content:
# MsiShortcutProperty Shortcut_ PropertyKey PropVariantValue
###################################################################
sub
create_msishortcutproperty_table
{
my
(
$folderitempropertiesref
,
$folderitemsref
,
$basedir
)
=
@_
;
for
(
my
$m
=
0
;
$m
<=
$#
{
$languagesarrayref
};
$m
++
)
{
my
@msishortcutpropertytable
=
();
installer::windows::idtglobal::
write_idt_header
(
\
@msishortcutpropertytable
,
"msishortcutproperty"
);
# The entries defined in scp as FolderItemProperties
# These shortcuts will fill the icons table.
for
(
my
$j
=
0
;
$j
<=
$#
{
$folderitempropertiesref
};
$j
++
)
{
my
$onelink
=
$
{
$folderitempropertiesref
}[
$j
];
my
%
msis
hortcutproperty
=
();
$msishortcutproperty
{
'MsiShortcutProperty'
}
=
get_msishortcutproperty_identifier
(
$onelink
);
$msishortcutproperty
{
'Shortcut_'
}
=
get_msishorcutproperty_shortcut
(
$onelink
,
$folderitemsref
);
$msishortcutproperty
{
'PropertyKey'
}
=
get_msishortcutproperty_propertykey
(
$onelink
);
$msishortcutproperty
{
'PropVariantValue'
}
=
get_msishortcutproperty_propvariantvalue
(
$onelink
);
my
$oneline
=
$msishortcutproperty
{
'MsiShortcutProperty'
}
.
"\t"
.
$msishortcutproperty
{
'Shortcut_'
}
.
"\t"
.
$msishortcutproperty
{
'PropertyKey'
}
.
"\t"
.
$msishortcutproperty
{
'PropVariantValue'
}
.
"\n"
;
push
(
@msishortcutpropertytable
,
$oneline
);
}
# Saving the file
my
$msishortcutpropertytablename
=
$basedir
.
$
installer::globals::
separator
.
"MsiShortcutProperty.idt"
.
"."
.
$onelanguage
;
installer::files::
save_file
(
$msishortcutpropertytablename
,
\
@msishortcutpropertytable
);
my
$infoline
=
"Created idt file: $msishortcutpropertytablename\n"
;
push
(
@
installer::globals::
logfileinfo
,
$infoline
);
}
}
solenv/bin/modules/par2script/globals.pm
Dosyayı görüntüle @
20696b2a
...
...
@@ -34,13 +34,13 @@ BEGIN
@allitems
=
(
"Installation"
,
"ScpAction"
,
"Directory"
,
"File"
,
"Shortcut"
,
"Unixlink"
,
"Module"
,
"Profile"
,
"ProfileItem"
,
"Folder"
,
"FolderItem"
,
"
RegistryItem"
,
"WindowsCustomAction
"
,
"MergeModule"
);
"Folder"
,
"FolderItem"
,
"
FolderItemProperty"
,
"RegistryItem
"
,
"
WindowsCustomAction"
,
"
MergeModule"
);
@items_assigned_at_modules
=
(
"File"
,
"Directory"
,
"Unixlink"
);
@items_with_directories
=
(
"File"
,
"Profile"
,
"Shortcut"
,
"Unixlink"
);
@items_with_moduleid
=
(
"Profile"
,
"ProfileItem"
,
"FolderItem"
,
"RegistryItem"
);
@items_without_moduleid
=
(
"File"
,
"Directory"
,
"Shortcut"
,
"Unixlink"
);
@items_without_moduleid
=
(
"File"
,
"
FolderItemProperty"
,
"
Directory"
,
"Shortcut"
,
"Unixlink"
);
%
searchkeys
=
(
"File"
=>
"Files"
,
"Directory"
=>
"Dirs"
,
"Unixlink"
=>
"Unixlinks"
);
...
...
solenv/bin/modules/pre2par/globals.pm
Dosyayı görüntüle @
20696b2a
...
...
@@ -33,8 +33,8 @@ BEGIN
@allitems
=
(
"Installation"
,
"ScpAction"
,
"HelpText"
,
"Directory"
,
"DataCarrier"
,
"StarRegistry"
,
"File"
,
"Shortcut"
,
"Custom"
,
"Unixlink"
,
"Procedure"
,
"Module"
,
"Profile"
,
"ProfileItem"
,
"Folder"
,
"FolderItem"
,
"
RegistryItem"
,
"StarRegistryItem"
,
"WindowsCustomAction
"
,
"MergeModule"
);
"Folder"
,
"FolderItem"
,
"
FolderItemProperty"
,
"RegistryItem"
,
"StarRegistryItem
"
,
"
WindowsCustomAction"
,
"
MergeModule"
);
$logging
=
0
;
$logfilename
=
"logfile.log"
;
# the default logfile name for global errors
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment