Microsoft Office 2016

Informations

Creator Wiadmości
TastyCake101 Anonymous

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 172777
Wine: 3.21

Feedbacks

Description

Microsoft Office 2016

Source code

#!/usr/bin/env playonlinux-bash
# Date: (2015-11-26 22-01)
# Last revisio: (2018-12-17 17-07)
# Wine version used: 3.20
# Distribution used to test: Linux Mint 19 Xfce
# Author: Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul

# ---------------------------------------------------------------------------------------------------------

# CHANGELOG
# Version 0.0.1 by N0rbert - with Wine 3.0 it crashes on Welcome screen when trying
# to call "unimplemented function KERNEL32.dll.FindNLSStringEx called in 32-bit code"
# So we need Wine 3.4+ here, but I can't run this script with it on my Ubuntu 16.04 LTS.
#
# based on Version 1.1.0.0 [Quentin Pâris and Eduardo Lucio (Questor)] (2018-02-17 15-24) - Paris/Brazil
# for office2007pro (playonlinux://www.playonlinux.com/repository/download.php?id=2665)

# ---------------------------------------------------------------------------------------------------------

# Under BSD License!

# Copyright (c) 2018, Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#     * Redistributions of source code must retain the above copyright
#       notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above copyright
#       notice, this list of conditions and the following disclaimer in the
#       documentation and/or other materials provided with the distribution.
#     * Neither the name of the free software community nor the
#       names of its contributors may be used to endorse or promote products
#       derived from this software without specific prior written permission.

# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL Quentin Pâris and Eduardo Lucio BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# ---------------------------------------------------------------------------------------------------------

# NOTE: Complete liste of references! By Questor
# https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib
# https://www.playonlinux.com/en/app-2665-Microsoft_Office_2016.html
# http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions
# http://wiki.playonlinux.com/index.php/Components_and_Functions
# https://www.playonlinux.com/repository/source.php?script=822
# https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/scripts.lib
# https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/wine.lib
# https://askubuntu.com/questions/879304/wine-2-0-says-it-supports-office-2016-how-do-i-actually-install-it
# https://github.com/RobertJames/playonlinux/blob/75ef37523f299255a539a89b63dc87d7afc096d4/template.POL

# N0rbert's links:
# https://bugs.winehq.org/show_bug.cgi?id=41911 (really we need Wine 3.4+ to fix FindNLSStringEx errors)

#Links: By GuerreroAzul
#https://askubuntu.com/questions/975104/how-do-i-install-ms-office-2016-on-playonlinux
#https://www.playonlinux.com/es/app-2665-Microsoft_Office_2013.html
#https://www.playonlinux.com/repository/?cat=100

# ---------------------------------------------------------------------------------------------------------

# Initialization!
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Microsoft Office 2016"
PREFIX="Office2016"
WINEVERSION="3.21"
OSVERSION="win7"

POL_GetSetupImages "https://i.imgur.com/licFVuF.png" "https://i.imgur.com/ff6PkEZ.png" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 3064

POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com" "Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul" "$TITLE"

POL_Debug_Init

# ---------------------------------------------------------------------------------------------------------

# Perform some validations!
POL_RequiredVersion 4.3.3 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION!\nPlease update!"

#Linux
if [ "$POL_OS" = "Linux" ]; then
    wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE!"
fi

#MAC
if [ "$POL_OS" = "Mac" ]; then
    # NOTE: Samba support! By Quentin Pâris
    POL_Call POL_GetTool_samba3
    source "$POL_USER_ROOT/tools/samba3/init"
fi

POL_Wine_WaitBefore "$TITLE"
[ "$CDROM" ] && cd "$CDROM"

#Validation of 32Bits
if [ ! "$(file $SetupIs | grep 'x86-64')" = "" ]; then
    POL_Debug_Fatal "$(eval_gettext "The 64bits version is not compatible! Sorry!")";
fi

# NOTE: Check if "winetricks" is present! By Questor
winetricks -V || POL_Debug_Fatal "Please install winetricks before installing $TITLE!"

POL_System_SetArch "x86"
POL_SetupWindow_InstallMethod "LOCAL,DVD"

if [ "$INSTALL_METHOD" = "DVD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "x86/setup.exe" "setup.exe"
    SetupIs="$CDROM_SETUP"
    cd "$CDROM"
else
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run!')" "$TITLE"
    SetupIs="$APP_ANSWER"
fi

# ---------------------------------------------------------------------------------------------------------

# Prepare resources for installation!

# NOTE: Install wine version if isn't available. This is necessary because
# even though "POL_Wine_PrefixCreate" solves this, we end up having
# problems when the required version is not available and it tries to
# install it! Questor
# [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib]
POL_Wine_InstallVersion "$WINEVERSION"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "$OSVERSION"

# Fix black windows (added by N0rbert)
POL_Wine_Direct3D "MaxVersionGL" "30002"

# ---------------------------------------------------------------------------------------------------------
# Install!

# NOTE: Installs office! By Questor
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

# ---------------------------------------------------------------------------------------------------------

# Prepare resources for applications!

# NOTE: Uses native special version of "riched20" installed by Office 2016!
# Fix the "black fields" issue! By Questor
# [Ref.: http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555]
POL_Wine_OverrideDLL "native,builtin" "riched20"

# Fix a crash when loading a file
# POL_Call POL_Install_msxml6

# NOTE: Fix "move and change the window size (maximize/minimize/restore/resize
# etc...) bugs"! By Questor
# [Ref.: https://bugs.winehq.org/show_bug.cgi?id=44552]
Set_Managed "Off"

# ---------------------------------------------------------------------------------------------------------

# Create shortcuts, entries to extensions and finalize!

# NOTE: Create shortcuts! By Questor
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2016" "" "" "Office;WordProcessor;"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2016" "" "" "Office;Spreadsheet;"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2016" "" "" "Office;Presentation;"

# NOTE: No category for collaborative work? By Quentin Pâris
POL_Shortcut "ONENOTE.EXE" "Microsoft OneNote 2016" "" "" "Network;InstantMessaging;"

# NOTE: "Calendar;ContactManagement;"? By Quentin Pâris
POL_Shortcut "OUTLOOK.EXE" "Microsoft Outlook 2016" "" "" "Network;Email;"

# NOTE: Add an entry to PlayOnLinux's extension file. If the entry already
# exists, it will replace it! By Questor
# [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/playonlinux.lib]
POL_Extension_Write doc "Microsoft Word 2016"
POL_Extension_Write docx "Microsoft Word 2016"
POL_Extension_Write xls "Microsoft Excel 2016"
POL_Extension_Write xlsx "Microsoft Excel 2016"
POL_Extension_Write ppt "Microsoft Powerpoint 2016"
POL_Extension_Write pptx "Microsoft Powerpoint 2016"

if [ "$POL_OS" = "Mac" ]; then
    POL_Shortcut_InsertBeforeWine "Microsoft Word 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Excel 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Powerpoint 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft OneNote 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Outlook 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
fi

POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully!\n\nThanks!\nBy Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul')" "$TITLE"
POL_SetupWindow_Close

# ---------------------------------------------------------------------------------------------------------

exit 0

Contributions

Filters:

Contribute
Member Wiadmości
GlasierXplor Tuesday 13 August 2019 at 16:37
GlasierXplor Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Wiadmości

I am not familiar with POL scripting, but I changed everything that I matches what I had respectively. Some things that are not included are copying two files into the correct directory, and activating the product (needs the product key in the office.com account instead of the one included in the box).

Here is my post on the manual installation steps, perhaps someone can help to script it better than I did.

https://www.playonlinux.com/en/topic-16677-Test_Microsoft_Office_2016_Installation.html

 

Differences

@@ -1,8 +1,8 @@
 #!/usr/bin/env playonlinux-bash
 # Date: (2015-11-26 22-01)
-# Last revisio: (2018-12-17 17-07)
-# Wine version used: 3.20
-# Distribution used to test: Linux Mint 19 Xfce
+# Last revision: (2018-12-17 17-07 2019-13-08)
+# Wine version used: 3.14
+# Distribution used to test: Kubuntu 18.04.1
 # Author: Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul
 
 # ---------------------------------------------------------------------------------------------------------
@@ -73,7 +73,7 @@
 
 TITLE="Microsoft Office 2016"
 PREFIX="Office2016"
-WINEVERSION="3.21"
+WINEVERSION="3.14"
 OSVERSION="win7"
 
 POL_GetSetupImages "https://i.imgur.com/licFVuF.png" "https://i.imgur.com/ff6PkEZ.png" "$TITLE"
@@ -88,7 +88,7 @@
 # ---------------------------------------------------------------------------------------------------------
 
 # Perform some validations!
-POL_RequiredVersion 4.3.3 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION!\nPlease update!"
+POL_RequiredVersion 4.2.21 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION!\nPlease update!"
 
 #Linux
 if [ "$POL_OS" = "Linux" ]; then
@@ -114,17 +114,10 @@
 winetricks -V || POL_Debug_Fatal "Please install winetricks before installing $TITLE!"
 
 POL_System_SetArch "x86"
-POL_SetupWindow_InstallMethod "LOCAL,DVD"
+POL_SetupWindow_InstallMethod "LOCAL"
 
-if [ "$INSTALL_METHOD" = "DVD" ]; then
-    POL_SetupWindow_cdrom
-    POL_SetupWindow_check_cdrom "x86/setup.exe" "setup.exe"
-    SetupIs="$CDROM_SETUP"
-    cd "$CDROM"
-else
-    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run!')" "$TITLE"
-    SetupIs="$APP_ANSWER"
-fi
+POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run! NOTE: Online installer will not work. Use offline installer')" "$TITLE"
+SetupIs="$APP_ANSWER"
 
 # ---------------------------------------------------------------------------------------------------------
 
@@ -143,7 +136,10 @@
 Set_OS "$OSVERSION"
 
 # Fix black windows (added by N0rbert)
-POL_Wine_Direct3D "MaxVersionGL" "30002"
+#POL_Wine_Direct3D "MaxVersionGL" "30002"
+
+# What worked for me 
+POL_Wine_Direct2D "max_version_factory" "0"
 
 # ---------------------------------------------------------------------------------------------------------
 # Install!
@@ -155,14 +151,14 @@
 # ---------------------------------------------------------------------------------------------------------
 
 # Prepare resources for applications!
+# Fix a crash when loading a file
+POL_Call POL_Install_msxml6
 
 # NOTE: Uses native special version of "riched20" installed by Office 2016!
 # Fix the "black fields" issue! By Questor
 # [Ref.: http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555]
 POL_Wine_OverrideDLL "native,builtin" "riched20"
-
-# Fix a crash when loading a file
-# POL_Call POL_Install_msxml6
+POL_Wine_OverrideDLL "native,builtin" "msxml6"
 
 # NOTE: Fix "move and change the window size (maximize/minimize/restore/resize
 # etc...) bugs"! By Questor

New source code

#!/usr/bin/env playonlinux-bash
# Date: (2015-11-26 22-01)
# Last revision: (2018-12-17 17-07 2019-13-08)
# Wine version used: 3.14
# Distribution used to test: Kubuntu 18.04.1
# Author: Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul

# ---------------------------------------------------------------------------------------------------------

# CHANGELOG
# Version 0.0.1 by N0rbert - with Wine 3.0 it crashes on Welcome screen when trying
# to call "unimplemented function KERNEL32.dll.FindNLSStringEx called in 32-bit code"
# So we need Wine 3.4+ here, but I can't run this script with it on my Ubuntu 16.04 LTS.
#
# based on Version 1.1.0.0 [Quentin Pâris and Eduardo Lucio (Questor)] (2018-02-17 15-24) - Paris/Brazil
# for office2007pro (playonlinux://www.playonlinux.com/repository/download.php?id=2665)

# ---------------------------------------------------------------------------------------------------------

# Under BSD License!

# Copyright (c) 2018, Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#     * Redistributions of source code must retain the above copyright
#       notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above copyright
#       notice, this list of conditions and the following disclaimer in the
#       documentation and/or other materials provided with the distribution.
#     * Neither the name of the free software community nor the
#       names of its contributors may be used to endorse or promote products
#       derived from this software without specific prior written permission.

# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL Quentin Pâris and Eduardo Lucio BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# ---------------------------------------------------------------------------------------------------------

# NOTE: Complete liste of references! By Questor
# https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib
# https://www.playonlinux.com/en/app-2665-Microsoft_Office_2016.html
# http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions
# http://wiki.playonlinux.com/index.php/Components_and_Functions
# https://www.playonlinux.com/repository/source.php?script=822
# https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/scripts.lib
# https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/wine.lib
# https://askubuntu.com/questions/879304/wine-2-0-says-it-supports-office-2016-how-do-i-actually-install-it
# https://github.com/RobertJames/playonlinux/blob/75ef37523f299255a539a89b63dc87d7afc096d4/template.POL

# N0rbert's links:
# https://bugs.winehq.org/show_bug.cgi?id=41911 (really we need Wine 3.4+ to fix FindNLSStringEx errors)

#Links: By GuerreroAzul
#https://askubuntu.com/questions/975104/how-do-i-install-ms-office-2016-on-playonlinux
#https://www.playonlinux.com/es/app-2665-Microsoft_Office_2013.html
#https://www.playonlinux.com/repository/?cat=100

# ---------------------------------------------------------------------------------------------------------

# Initialization!
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Microsoft Office 2016"
PREFIX="Office2016"
WINEVERSION="3.14"
OSVERSION="win7"

POL_GetSetupImages "https://i.imgur.com/licFVuF.png" "https://i.imgur.com/ff6PkEZ.png" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 3064

POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com" "Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul" "$TITLE"

POL_Debug_Init

# ---------------------------------------------------------------------------------------------------------

# Perform some validations!
POL_RequiredVersion 4.2.21 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION!\nPlease update!"

#Linux
if [ "$POL_OS" = "Linux" ]; then
    wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE!"
fi

#MAC
if [ "$POL_OS" = "Mac" ]; then
    # NOTE: Samba support! By Quentin Pâris
    POL_Call POL_GetTool_samba3
    source "$POL_USER_ROOT/tools/samba3/init"
fi

POL_Wine_WaitBefore "$TITLE"
[ "$CDROM" ] && cd "$CDROM"

#Validation of 32Bits
if [ ! "$(file $SetupIs | grep 'x86-64')" = "" ]; then
    POL_Debug_Fatal "$(eval_gettext "The 64bits version is not compatible! Sorry!")";
fi

# NOTE: Check if "winetricks" is present! By Questor
winetricks -V || POL_Debug_Fatal "Please install winetricks before installing $TITLE!"

POL_System_SetArch "x86"
POL_SetupWindow_InstallMethod "LOCAL"

POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run! NOTE: Online installer will not work. Use offline installer')" "$TITLE"
SetupIs="$APP_ANSWER"

# ---------------------------------------------------------------------------------------------------------

# Prepare resources for installation!

# NOTE: Install wine version if isn't available. This is necessary because
# even though "POL_Wine_PrefixCreate" solves this, we end up having
# problems when the required version is not available and it tries to
# install it! Questor
# [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib]
POL_Wine_InstallVersion "$WINEVERSION"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "$OSVERSION"

# Fix black windows (added by N0rbert)
#POL_Wine_Direct3D "MaxVersionGL" "30002"

# What worked for me 
POL_Wine_Direct2D "max_version_factory" "0"

# ---------------------------------------------------------------------------------------------------------
# Install!

# NOTE: Installs office! By Questor
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

# ---------------------------------------------------------------------------------------------------------

# Prepare resources for applications!
# Fix a crash when loading a file
POL_Call POL_Install_msxml6

# NOTE: Uses native special version of "riched20" installed by Office 2016!
# Fix the "black fields" issue! By Questor
# [Ref.: http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555]
POL_Wine_OverrideDLL "native,builtin" "riched20"
POL_Wine_OverrideDLL "native,builtin" "msxml6"

# NOTE: Fix "move and change the window size (maximize/minimize/restore/resize
# etc...) bugs"! By Questor
# [Ref.: https://bugs.winehq.org/show_bug.cgi?id=44552]
Set_Managed "Off"

# ---------------------------------------------------------------------------------------------------------

# Create shortcuts, entries to extensions and finalize!

# NOTE: Create shortcuts! By Questor
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2016" "" "" "Office;WordProcessor;"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2016" "" "" "Office;Spreadsheet;"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2016" "" "" "Office;Presentation;"

# NOTE: No category for collaborative work? By Quentin Pâris
POL_Shortcut "ONENOTE.EXE" "Microsoft OneNote 2016" "" "" "Network;InstantMessaging;"

# NOTE: "Calendar;ContactManagement;"? By Quentin Pâris
POL_Shortcut "OUTLOOK.EXE" "Microsoft Outlook 2016" "" "" "Network;Email;"

# NOTE: Add an entry to PlayOnLinux's extension file. If the entry already
# exists, it will replace it! By Questor
# [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/playonlinux.lib]
POL_Extension_Write doc "Microsoft Word 2016"
POL_Extension_Write docx "Microsoft Word 2016"
POL_Extension_Write xls "Microsoft Excel 2016"
POL_Extension_Write xlsx "Microsoft Excel 2016"
POL_Extension_Write ppt "Microsoft Powerpoint 2016"
POL_Extension_Write pptx "Microsoft Powerpoint 2016"

if [ "$POL_OS" = "Mac" ]; then
    POL_Shortcut_InsertBeforeWine "Microsoft Word 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Excel 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Powerpoint 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft OneNote 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Outlook 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
fi

POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully!\n\nThanks!\nBy Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul')" "$TITLE"
POL_SetupWindow_Close

# ---------------------------------------------------------------------------------------------------------

exit 0

Odpowiedzi

Anonymous
Sunday 29 September 2019 at 14:08
Update: PowerPoint is very unstable and will refuse to open any large files (it will be "Processing" forever)
T800 Tuesday 18 June 2019 at 17:49
T800 Anonymous

Wiadmości

This message is not from the installer. It's from the programs themselves.

When executing EXCEL:

Unhandled exception: page fault on write access to 0x00000000 in 32-bit code (0x0340178f).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:0340178f ESP:0032db14 EBP:0032db20 EFLAGS:00210246(  R- --  I  Z- -P- )
 EAX:00000008 EBX:0032db9c ECX:00000000 EDX:00000000
 ESI:03dd6538 EDI:00000003
Stack dump:
0x0032db14:  031bd229 0032db9c 01dea648 0032db4c
0x0032db24:  031bce81 0032db9c 4d9fab34 016e8ce8
0x0032db34:  0032db9c 01915aac 0032db2c 0032feb0
0x0032db44:  03ae1edc 00000000 0032db5c 031bd8ad
0x0032db54:  01deb088 00000003 0032db70 02c198ff
0x0032db64:  0032db9c 00000003 00000001 0032db80
Backtrace:
=>0 0x0340178f in mso (+0x25178f) (0x0032db20)
  1 0x031bce81 in mso (+0xce80) (0x0032db4c)
  2 0x031bd8ad in mso (+0xd8ac) (0x0032db5c)
  3 0x02c198ff in mso99lwin32client (+0x98fe) (0x0032db70)
  4 0x031bd7e2 in mso (+0xd7e1) (0x0032db80)
  5 0x031bee74 in mso (+0xee73) (0x0032dbcc)
  6 0x031bee03 in mso (+0xee02) (0x0032dbf0)
  7 0x00417190 in excel (+0x1718f) (0x0032dc30)
  8 0x0040e71a in excel (+0xe719) (0x0032fa14)
  9 0x0040da7d in excel (+0xda7c) (0x0032fc88)
  10 0x00404a32 in excel (+0x4a31) (0x0032fe74)
  11 0x00401194 in excel (+0x1193) (0x0032fec0)
  12 0x7b4677d2 call_process_entry+0x11() in kernel32 (0x0032fed8)
  13 0x7b4696f6 start_process+0x105() in kernel32 (0x0032ffd8)
  14 0x7b4677de start_process_wrapper+0x9() in kernel32 (0x0032ffec)
0x0340178f: movl    $0x1,0x00000000
Modules:
Module    Address            Debug info    Name (194 modules)
PE      400000- 1ddb000    Export          excel
PE     2000000- 21d7000    Deferred        mso20win32client
PE     21e0000- 24e9000    Deferred        mso30win32client
PE     24f0000- 2c05000    Deferred        mso40uiwin32client
PE     2c10000- 31a9000    Export          mso99lwin32client
PE     31b0000- 3f6b000    Export          mso
PE     bf40000- c0e2000    Deferred        riched20
PE    10000000-10bf3000    Deferred        oart
ELF    7a800000-7a940000    Deferred        opengl32<elf>
  \-PE    7a820000-7a940000    \               opengl32
ELF    7b400000-7b7f6000    Dwarf           kernel32<elf>
  \-PE    7b420000-7b7f6000    \               kernel32
ELF    7bc00000-7bd10000    Deferred        ntdll<elf>
  \-PE    7bc10000-7bd10000    \               ntdll
ELF    7c000000-7c004000    Deferred        <wine-loader>
ELF    7ddb8000-7ddde000    Deferred        imm32<elf>
  \-PE    7ddc0000-7ddde000    \               imm32
ELF    7de61000-7de93000    Deferred        libexpat.so.1
ELF    7de93000-7dede000    Deferred        libfontconfig.so.1
ELF    7dede000-7defd000    Deferred        libz.so.1
ELF    7defd000-7df37000    Deferred        libpng16.so.16
ELF    7df37000-7dff4000    Deferred        libfreetype.so.6
ELF    7e011000-7e030000    Deferred        concrt140<elf>
  \-PE    7e020000-7e030000    \               concrt140
ELF    7e030000-7e0a7000    Deferred        shlwapi<elf>
  \-PE    7e040000-7e0a7000    \               shlwapi
ELF    7e0a7000-7e144000    Deferred        gdiplus<elf>
  \-PE    7e0c0000-7e144000    \               gdiplus
ELF    7e144000-7e1d1000    Deferred        rpcrt4<elf>
  \-PE    7e150000-7e1d1000    \               rpcrt4
ELF    7e1d1000-7e1eb000    Deferred        version<elf>
  \-PE    7e1e0000-7e1eb000    \               version
ELF    7e1eb000-7e33e000    Deferred        gdi32<elf>
  \-PE    7e200000-7e33e000    \               gdi32
ELF    7e33e000-7e56f000    Deferred        user32<elf>
  \-PE    7e350000-7e56f000    \               user32
ELF    7e56f000-7e6d7000    Deferred        ole32<elf>
  \-PE    7e590000-7e6d7000    \               ole32
ELF    7e6d7000-7e752000    Deferred        advapi32<elf>
  \-PE    7e6e0000-7e752000    \               advapi32
ELF    7e752000-7e766000    Deferred        api-ms-win-crt-locale-l1-1-0<elf>
  \-PE    7e760000-7e766000    \               api-ms-win-crt-locale-l1-1-0
ELF    7e766000-7e77a000    Deferred        api-ms-win-crt-time-l1-1-0<elf>
  \-PE    7e770000-7e77a000    \               api-ms-win-crt-time-l1-1-0
ELF    7e77a000-7e793000    Deferred        api-ms-win-crt-math-l1-1-0<elf>
  \-PE    7e780000-7e793000    \               api-ms-win-crt-math-l1-1-0
ELF    7e793000-7e7a7000    Deferred        api-ms-win-crt-utility-l1-1-0<elf>
  \-PE    7e7a0000-7e7a7000    \               api-ms-win-crt-utility-l1-1-0
ELF    7e7a7000-7e7bd000    Deferred        api-ms-win-crt-stdio-l1-1-0<elf>
  \-PE    7e7b0000-7e7bd000    \               api-ms-win-crt-stdio-l1-1-0
ELF    7e7bd000-7e7d1000    Deferred        api-ms-win-crt-filesystem-l1-1-0<elf>
  \-PE    7e7c0000-7e7d1000    \               api-ms-win-crt-filesystem-l1-1-0
ELF    7e7d1000-7e7e7000    Deferred        api-ms-win-crt-convert-l1-1-0<elf>
  \-PE    7e7e0000-7e7e7000    \               api-ms-win-crt-convert-l1-1-0
ELF    7e7e7000-7e7fd000    Deferred        api-ms-win-crt-string-l1-1-0<elf>
  \-PE    7e7f0000-7e7fd000    \               api-ms-win-crt-string-l1-1-0
ELF    7e7fd000-7e813000    Deferred        api-ms-win-crt-runtime-l1-1-0<elf>
  \-PE    7e800000-7e813000    \               api-ms-win-crt-runtime-l1-1-0
ELF    7e813000-7e827000    Deferred        api-ms-win-crt-heap-l1-1-0<elf>
  \-PE    7e820000-7e827000    \               api-ms-win-crt-heap-l1-1-0
ELF    7e827000-7e924000    Deferred        msvcr120<elf>
  \-PE    7e840000-7e924000    \               msvcr120
ELF    7e924000-7ea52000    Deferred        msvcp140<elf>
  \-PE    7e960000-7ea52000    \               msvcp140
ELF    7ea52000-7eb5c000    Deferred        ucrtbase<elf>
  \-PE    7ea70000-7eb5c000    \               ucrtbase
ELF    7eeb2000-7eec6000    Deferred        libnss_files.so.2
ELF    7eec6000-7eee1000    Deferred        libnsl.so.1
ELF    7eee1000-7efe3000    Deferred        libm.so.6
ELF    7efe3000-7eff9000    Deferred        vcruntime140<elf>
  \-PE    7eff0000-7eff9000    \               vcruntime140
ELF    f3c29000-f3c9b000    Deferred        dbghelp<elf>
  \-PE    f3c30000-f3c9b000    \               dbghelp
ELF    f3c9b000-f3cd3000    Deferred        mscoree<elf>
  \-PE    f3ca0000-f3cd3000    \               mscoree
ELF    f3cd3000-f3d27000    Deferred        libgssapi_krb5.so.2
ELF    f3d27000-f3d34000    Deferred        libkrb5support.so.0
ELF    f3d34000-f3e10000    Deferred        libkrb5.so.3
ELF    f3e10000-f3e9b000    Deferred        libgmp.so.10
ELF    f3e9b000-f401c000    Deferred        libunistring.so.2
ELF    f401c000-f416a000    Deferred        libp11-kit.so.0
ELF    f416a000-f4300000    Deferred        libgnutls.so.30
ELF    f4406000-f443b000    Deferred        libk5crypto.so.3
ELF    f4458000-f448e000    Deferred        libhogweed.so.4
ELF    f448e000-f44ca000    Deferred        libnettle.so.6
ELF    f44ca000-f44e8000    Deferred        libidn2.so.0
ELF    f44e8000-f4500000    Deferred        libresolv.so.2
ELF    f4801000-f4806000    Deferred        libkeyutils.so.1
ELF    f4806000-f480b000    Deferred        libcom_err.so.2
ELF    f480b000-f4814000    Deferred        libffi.so.6
ELF    f4817000-f4831000    Deferred        kerberos<elf>
  \-PE    f4820000-f4831000    \               kerberos
ELF    f4831000-f485e000    Deferred        iphlpapi<elf>
  \-PE    f4840000-f485e000    \               iphlpapi
ELF    f485e000-f4891000    Deferred        netapi32<elf>
  \-PE    f4860000-f4891000    \               netapi32
ELF    f4891000-f4900000    Deferred        dwrite<elf>
  \-PE    f48a0000-f4900000    \               dwrite
ELF    f4a01000-f4a16000    Deferred        libtasn1.so.6
ELF    f4a16000-f4a4e000    Deferred        secur32<elf>
  \-PE    f4a20000-f4a4e000    \               secur32
ELF    f55ba000-f55c6000    Deferred        libpciaccess.so.0
ELF    f55c6000-f55e4000    Deferred        libgcc_s.so.1
ELF    f576a000-f5778000    Deferred        libdrm_radeon.so.1
ELF    f5778000-f5782000    Deferred        libdrm_nouveau.so.2
ELF    f5782000-f57a9000    Deferred        libdrm_intel.so.1
ELF    f57a9000-f62a8000    Deferred        i965_dri.so
ELF    f62a8000-f62bc000    Deferred        libdrm.so.2
ELF    f62bc000-f62c2000    Deferred        libxcb-dri2.so.0
ELF    f62c2000-f62df000    Deferred        libxcb-glx.so.0
ELF    f62df000-f62e2000    Deferred        libx11-xcb.so.1
ELF    f62e2000-f62e6000    Deferred        libxdamage.so.1
ELF    f62e6000-f6304000    Deferred        libglapi.so.0
ELF    f6304000-f6307000    Deferred        libxshmfence.so.1
ELF    f6307000-f630f000    Deferred        libxcb-sync.so.1
ELF    f630f000-f6313000    Deferred        libxcb-present.so.0
ELF    f6313000-f6389000    Deferred        libglx_mesa.so.0
ELF    f63c9000-f6428000    Deferred        libgldispatch.so.0
ELF    f6428000-f644b000    Deferred        libglx.so.0
ELF    f644b000-f64ac000    Deferred        libgl.so.1
ELF    f64c9000-f64e1000    Deferred        wtsapi32<elf>
  \-PE    f64d0000-f64e1000    \               wtsapi32
ELF    f6527000-f65a8000    Deferred        d3dcompiler_47<elf>
  \-PE    f6530000-f65a8000    \               d3dcompiler_47
ELF    f65a8000-f65f0000    Deferred        d3d10<elf>
  \-PE    f65b0000-f65f0000    \               d3d10
ELF    f65f0000-f676c000    Deferred        wined3d<elf>
  \-PE    f6600000-f676c000    \               wined3d
ELF    f676c000-f67a4000    Deferred        dxgi<elf>
  \-PE    f6770000-f67a4000    \               dxgi
ELF    f67a4000-f6818000    Deferred        d3d11<elf>
  \-PE    f67b0000-f6818000    \               d3d11
ELF    f6818000-f682e000    Deferred        d3d10core<elf>
  \-PE    f6820000-f682e000    \               d3d10core
ELF    f682e000-f6844000    Deferred        d3d10_1<elf>
  \-PE    f6830000-f6844000    \               d3d10_1
ELF    f6844000-f68a8000    Deferred        d2d1<elf>
  \-PE    f6850000-f68a8000    \               d2d1
ELF    f68a8000-f68e0000    Deferred        uxtheme<elf>
  \-PE    f68b0000-f68e0000    \               uxtheme
ELF    f68e0000-f6906000    Deferred        cabinet<elf>
  \-PE    f68f0000-f6906000    \               cabinet
ELF    f6906000-f6952000    Deferred        usp10<elf>
  \-PE    f6910000-f6952000    \               usp10
ELF    f6952000-f6aa9000    Deferred        comctl32<elf>
  \-PE    f6960000-f6aa9000    \               comctl32
ELF    f6aa9000-f6ae3000    Deferred        ws2_32<elf>
  \-PE    f6ab0000-f6ae3000    \               ws2_32
ELF    f6ae3000-f6b0b000    Deferred        mpr<elf>
  \-PE    f6af0000-f6b0b000    \               mpr
ELF    f6b0b000-f6b90000    Deferred        wininet<elf>
  \-PE    f6b10000-f6b90000    \               wininet
ELF    f6b90000-f7557000    Deferred        shell32<elf>
  \-PE    f6ba0000-f7557000    \               shell32
ELF    f7557000-f75f9000    Deferred        urlmon<elf>
  \-PE    f7560000-f75f9000    \               urlmon
ELF    f75f9000-f773b000    Deferred        msi<elf>
  \-PE    f7600000-f773b000    \               msi
ELF    f773b000-f7751000    Deferred        slc<elf>
  \-PE    f7740000-f7751000    \               slc
ELF    f7751000-f7765000    Deferred        msimg32<elf>
  \-PE    f7760000-f7765000    \               msimg32
ELF    f7765000-f777c000    Deferred        api-ms-win-crt-multibyte-l1-1-0<elf>
  \-PE    f7770000-f777c000    \               api-ms-win-crt-multibyte-l1-1-0
ELF    f777c000-f78af000    Deferred        oleaut32<elf>
  \-PE    f7790000-f78af000    \               oleaut32
ELF    f78af000-f78b6000    Deferred        libxfixes.so.3
ELF    f78b6000-f78c2000    Deferred        libxcursor.so.1
ELF    f78c2000-f78d5000    Deferred        libxi.so.6
ELF    f78d5000-f78d9000    Deferred        libxcomposite.so.1
ELF    f78d9000-f78e6000    Deferred        libxrandr.so.2
ELF    f78e6000-f78f2000    Deferred        libxrender.so.1
ELF    f78f2000-f78f9000    Deferred        libxxf86vm.so.1
ELF    f78f9000-f7903000    Deferred        librt.so.1
ELF    f7903000-f791e000    Deferred        libbsd.so.0
ELF    f791e000-f794a000    Deferred        libxcb.so.1
ELF    f794a000-f7a94000    Deferred        libx11.so.6
ELF    f7a94000-f7aa9000    Deferred        libxext.so.6
ELF    f7aab000-f7ab0000    Deferred        libxcb-dri3.so.0
ELF    f7ab0000-f7ac4000    Deferred        api-ms-win-crt-environment-l1-1-0<elf>
  \-PE    f7ac0000-f7ac4000    \               api-ms-win-crt-environment-l1-1-0
ELF    f7ac6000-f7b60000    Deferred        winex11<elf>
  \-PE    f7ad0000-f7b60000    \               winex11
ELF    f7b60000-f7b6e000    Deferred        libnss_nis.so.2
ELF    f7b70000-f7b75000    Deferred        libdl.so.2
ELF    f7b75000-f7d51000    Deferred        libc.so.6
ELF    f7d51000-f7d70000    Deferred        libpthread.so.0
ELF    f7d71000-f7d75000    Deferred        libxinerama.so.1
ELF    f7d75000-f7d7c000    Deferred        libxdmcp.so.6
ELF    f7d7c000-f7d80000    Deferred        libxau.so.6
ELF    f7d83000-f7d8d000    Deferred        libnss_compat.so.2
ELF    f7d8d000-f7f46000    Dwarf           libwine.so.1
ELF    f7f48000-f7f70000    Deferred        ld-linux.so.2
ELF    f7f73000-f7f75000    Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files\Microsoft Office\Office16\EXCEL.EXE
    00000045    0
    00000044    0
    00000043    0
    00000042    0
    00000041    0
    00000040    0
    0000003f    1
    0000003e    0
    0000003d    0
    0000003c    0
    00000009    0 <==
0000000e services.exe
    0000002c    0
    00000026    0
    00000020    0
    0000001b    0
    00000013    0
    00000010    0
    0000000f    0
00000011 winedevice.exe
    00000018    0
    00000017    0
    00000016    0
    00000012    0
00000019 plugplay.exe
    0000001d    0
    0000001c    0
    0000001a    0
0000001e svchost.exe
    00000036    0
    00000035    0
    00000023    0
    00000022    0
    00000021    0
    0000001f    0
00000024 winedevice.exe
    00000029    0
    00000028    0
    00000027    0
    00000025    0
0000002a rpcss.exe
    00000030    0
    0000002f    0
    0000002e    0
    0000002d    0
    0000002b    0
00000037 explorer.exe
    0000003b    0
    0000003a    0
    00000039    0
    00000038    0
System information:
    Wine build: wine-3.21
    Platform: i386
    Version: Windows Server 2008 R2
    Host system: Linux
    Host version: 4.18.0-21-generic

When Executing POWERPOINT:

Unhandled exception: page fault on write access to 0x00000000 in 32-bit code (0x0340178f).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:0340178f ESP:0032db14 EBP:0032db20 EFLAGS:00210246(  R- --  I  Z- -P- )
 EAX:00000008 EBX:0032db9c ECX:00000000 EDX:00000000
 ESI:03dd6538 EDI:00000003
Stack dump:
0x0032db14:  031bd229 0032db9c 01dea648 0032db4c
0x0032db24:  031bce81 0032db9c 4d9fab34 016e8ce8
0x0032db34:  0032db9c 01915aac 0032db2c 0032feb0
0x0032db44:  03ae1edc 00000000 0032db5c 031bd8ad
0x0032db54:  01deb088 00000003 0032db70 02c198ff
0x0032db64:  0032db9c 00000003 00000001 0032db80
Backtrace:
=>0 0x0340178f in mso (+0x25178f) (0x0032db20)
  1 0x031bce81 in mso (+0xce80) (0x0032db4c)
  2 0x031bd8ad in mso (+0xd8ac) (0x0032db5c)
  3 0x02c198ff in mso99lwin32client (+0x98fe) (0x0032db70)
  4 0x031bd7e2 in mso (+0xd7e1) (0x0032db80)
  5 0x031bee74 in mso (+0xee73) (0x0032dbcc)
  6 0x031bee03 in mso (+0xee02) (0x0032dbf0)
  7 0x00417190 in excel (+0x1718f) (0x0032dc30)
  8 0x0040e71a in excel (+0xe719) (0x0032fa14)
  9 0x0040da7d in excel (+0xda7c) (0x0032fc88)
  10 0x00404a32 in excel (+0x4a31) (0x0032fe74)
  11 0x00401194 in excel (+0x1193) (0x0032fec0)
  12 0x7b4677d2 call_process_entry+0x11() in kernel32 (0x0032fed8)
  13 0x7b4696f6 start_process+0x105() in kernel32 (0x0032ffd8)
  14 0x7b4677de start_process_wrapper+0x9() in kernel32 (0x0032ffec)
0x0340178f: movl    $0x1,0x00000000
Modules:
Module    Address            Debug info    Name (194 modules)
PE      400000- 1ddb000    Export          excel
PE     2000000- 21d7000    Deferred        mso20win32client
PE     21e0000- 24e9000    Deferred        mso30win32client
PE     24f0000- 2c05000    Deferred        mso40uiwin32client
PE     2c10000- 31a9000    Export          mso99lwin32client
PE     31b0000- 3f6b000    Export          mso
PE     bf40000- c0e2000    Deferred        riched20
PE    10000000-10bf3000    Deferred        oart
ELF    7a800000-7a940000    Deferred        opengl32<elf>
  \-PE    7a820000-7a940000    \               opengl32
ELF    7b400000-7b7f6000    Dwarf           kernel32<elf>
  \-PE    7b420000-7b7f6000    \               kernel32
ELF    7bc00000-7bd10000    Deferred        ntdll<elf>
  \-PE    7bc10000-7bd10000    \               ntdll
ELF    7c000000-7c004000    Deferred        <wine-loader>
ELF    7ddb8000-7ddde000    Deferred        imm32<elf>
  \-PE    7ddc0000-7ddde000    \               imm32
ELF    7de61000-7de93000    Deferred        libexpat.so.1
ELF    7de93000-7dede000    Deferred        libfontconfig.so.1
ELF    7dede000-7defd000    Deferred        libz.so.1
ELF    7defd000-7df37000    Deferred        libpng16.so.16
ELF    7df37000-7dff4000    Deferred        libfreetype.so.6
ELF    7e011000-7e030000    Deferred        concrt140<elf>
  \-PE    7e020000-7e030000    \               concrt140
ELF    7e030000-7e0a7000    Deferred        shlwapi<elf>
  \-PE    7e040000-7e0a7000    \               shlwapi
ELF    7e0a7000-7e144000    Deferred        gdiplus<elf>
  \-PE    7e0c0000-7e144000    \               gdiplus
ELF    7e144000-7e1d1000    Deferred        rpcrt4<elf>
  \-PE    7e150000-7e1d1000    \               rpcrt4
ELF    7e1d1000-7e1eb000    Deferred        version<elf>
  \-PE    7e1e0000-7e1eb000    \               version
ELF    7e1eb000-7e33e000    Deferred        gdi32<elf>
  \-PE    7e200000-7e33e000    \               gdi32
ELF    7e33e000-7e56f000    Deferred        user32<elf>
  \-PE    7e350000-7e56f000    \               user32
ELF    7e56f000-7e6d7000    Deferred        ole32<elf>
  \-PE    7e590000-7e6d7000    \               ole32
ELF    7e6d7000-7e752000    Deferred        advapi32<elf>
  \-PE    7e6e0000-7e752000    \               advapi32
ELF    7e752000-7e766000    Deferred        api-ms-win-crt-locale-l1-1-0<elf>
  \-PE    7e760000-7e766000    \               api-ms-win-crt-locale-l1-1-0
ELF    7e766000-7e77a000    Deferred        api-ms-win-crt-time-l1-1-0<elf>
  \-PE    7e770000-7e77a000    \               api-ms-win-crt-time-l1-1-0
ELF    7e77a000-7e793000    Deferred        api-ms-win-crt-math-l1-1-0<elf>
  \-PE    7e780000-7e793000    \               api-ms-win-crt-math-l1-1-0
ELF    7e793000-7e7a7000    Deferred        api-ms-win-crt-utility-l1-1-0<elf>
  \-PE    7e7a0000-7e7a7000    \               api-ms-win-crt-utility-l1-1-0
ELF    7e7a7000-7e7bd000    Deferred        api-ms-win-crt-stdio-l1-1-0<elf>
  \-PE    7e7b0000-7e7bd000    \               api-ms-win-crt-stdio-l1-1-0
ELF    7e7bd000-7e7d1000    Deferred        api-ms-win-crt-filesystem-l1-1-0<elf>
  \-PE    7e7c0000-7e7d1000    \               api-ms-win-crt-filesystem-l1-1-0
ELF    7e7d1000-7e7e7000    Deferred        api-ms-win-crt-convert-l1-1-0<elf>
  \-PE    7e7e0000-7e7e7000    \               api-ms-win-crt-convert-l1-1-0
ELF    7e7e7000-7e7fd000    Deferred        api-ms-win-crt-string-l1-1-0<elf>
  \-PE    7e7f0000-7e7fd000    \               api-ms-win-crt-string-l1-1-0
ELF    7e7fd000-7e813000    Deferred        api-ms-win-crt-runtime-l1-1-0<elf>
  \-PE    7e800000-7e813000    \               api-ms-win-crt-runtime-l1-1-0
ELF    7e813000-7e827000    Deferred        api-ms-win-crt-heap-l1-1-0<elf>
  \-PE    7e820000-7e827000    \               api-ms-win-crt-heap-l1-1-0
ELF    7e827000-7e924000    Deferred        msvcr120<elf>
  \-PE    7e840000-7e924000    \               msvcr120
ELF    7e924000-7ea52000    Deferred        msvcp140<elf>
  \-PE    7e960000-7ea52000    \               msvcp140
ELF    7ea52000-7eb5c000    Deferred        ucrtbase<elf>
  \-PE    7ea70000-7eb5c000    \               ucrtbase
ELF    7eeb2000-7eec6000    Deferred        libnss_files.so.2
ELF    7eec6000-7eee1000    Deferred        libnsl.so.1
ELF    7eee1000-7efe3000    Deferred        libm.so.6
ELF    7efe3000-7eff9000    Deferred        vcruntime140<elf>
  \-PE    7eff0000-7eff9000    \               vcruntime140
ELF    f3c29000-f3c9b000    Deferred        dbghelp<elf>
  \-PE    f3c30000-f3c9b000    \               dbghelp
ELF    f3c9b000-f3cd3000    Deferred        mscoree<elf>
  \-PE    f3ca0000-f3cd3000    \               mscoree
ELF    f3cd3000-f3d27000    Deferred        libgssapi_krb5.so.2
ELF    f3d27000-f3d34000    Deferred        libkrb5support.so.0
ELF    f3d34000-f3e10000    Deferred        libkrb5.so.3
ELF    f3e10000-f3e9b000    Deferred        libgmp.so.10
ELF    f3e9b000-f401c000    Deferred        libunistring.so.2
ELF    f401c000-f416a000    Deferred        libp11-kit.so.0
ELF    f416a000-f4300000    Deferred        libgnutls.so.30
ELF    f4406000-f443b000    Deferred        libk5crypto.so.3
ELF    f4458000-f448e000    Deferred        libhogweed.so.4
ELF    f448e000-f44ca000    Deferred        libnettle.so.6
ELF    f44ca000-f44e8000    Deferred        libidn2.so.0
ELF    f44e8000-f4500000    Deferred        libresolv.so.2
ELF    f4801000-f4806000    Deferred        libkeyutils.so.1
ELF    f4806000-f480b000    Deferred        libcom_err.so.2
ELF    f480b000-f4814000    Deferred        libffi.so.6
ELF    f4817000-f4831000    Deferred        kerberos<elf>
  \-PE    f4820000-f4831000    \               kerberos
ELF    f4831000-f485e000    Deferred        iphlpapi<elf>
  \-PE    f4840000-f485e000    \               iphlpapi
ELF    f485e000-f4891000    Deferred        netapi32<elf>
  \-PE    f4860000-f4891000    \               netapi32
ELF    f4891000-f4900000    Deferred        dwrite<elf>
  \-PE    f48a0000-f4900000    \               dwrite
ELF    f4a01000-f4a16000    Deferred        libtasn1.so.6
ELF    f4a16000-f4a4e000    Deferred        secur32<elf>
  \-PE    f4a20000-f4a4e000    \               secur32
ELF    f55ba000-f55c6000    Deferred        libpciaccess.so.0
ELF    f55c6000-f55e4000    Deferred        libgcc_s.so.1
ELF    f576a000-f5778000    Deferred        libdrm_radeon.so.1
ELF    f5778000-f5782000    Deferred        libdrm_nouveau.so.2
ELF    f5782000-f57a9000    Deferred        libdrm_intel.so.1
ELF    f57a9000-f62a8000    Deferred        i965_dri.so
ELF    f62a8000-f62bc000    Deferred        libdrm.so.2
ELF    f62bc000-f62c2000    Deferred        libxcb-dri2.so.0
ELF    f62c2000-f62df000    Deferred        libxcb-glx.so.0
ELF    f62df000-f62e2000    Deferred        libx11-xcb.so.1
ELF    f62e2000-f62e6000    Deferred        libxdamage.so.1
ELF    f62e6000-f6304000    Deferred        libglapi.so.0
ELF    f6304000-f6307000    Deferred        libxshmfence.so.1
ELF    f6307000-f630f000    Deferred        libxcb-sync.so.1
ELF    f630f000-f6313000    Deferred        libxcb-present.so.0
ELF    f6313000-f6389000    Deferred        libglx_mesa.so.0
ELF    f63c9000-f6428000    Deferred        libgldispatch.so.0
ELF    f6428000-f644b000    Deferred        libglx.so.0
ELF    f644b000-f64ac000    Deferred        libgl.so.1
ELF    f64c9000-f64e1000    Deferred        wtsapi32<elf>
  \-PE    f64d0000-f64e1000    \               wtsapi32
ELF    f6527000-f65a8000    Deferred        d3dcompiler_47<elf>
  \-PE    f6530000-f65a8000    \               d3dcompiler_47
ELF    f65a8000-f65f0000    Deferred        d3d10<elf>
  \-PE    f65b0000-f65f0000    \               d3d10
ELF    f65f0000-f676c000    Deferred        wined3d<elf>
  \-PE    f6600000-f676c000    \               wined3d
ELF    f676c000-f67a4000    Deferred        dxgi<elf>
  \-PE    f6770000-f67a4000    \               dxgi
ELF    f67a4000-f6818000    Deferred        d3d11<elf>
  \-PE    f67b0000-f6818000    \               d3d11
ELF    f6818000-f682e000    Deferred        d3d10core<elf>
  \-PE    f6820000-f682e000    \               d3d10core
ELF    f682e000-f6844000    Deferred        d3d10_1<elf>
  \-PE    f6830000-f6844000    \               d3d10_1
ELF    f6844000-f68a8000    Deferred        d2d1<elf>
  \-PE    f6850000-f68a8000    \               d2d1
ELF    f68a8000-f68e0000    Deferred        uxtheme<elf>
  \-PE    f68b0000-f68e0000    \               uxtheme
ELF    f68e0000-f6906000    Deferred        cabinet<elf>
  \-PE    f68f0000-f6906000    \               cabinet
ELF    f6906000-f6952000    Deferred        usp10<elf>
  \-PE    f6910000-f6952000    \               usp10
ELF    f6952000-f6aa9000    Deferred        comctl32<elf>
  \-PE    f6960000-f6aa9000    \               comctl32
ELF    f6aa9000-f6ae3000    Deferred        ws2_32<elf>
  \-PE    f6ab0000-f6ae3000    \               ws2_32
ELF    f6ae3000-f6b0b000    Deferred        mpr<elf>
  \-PE    f6af0000-f6b0b000    \               mpr
ELF    f6b0b000-f6b90000    Deferred        wininet<elf>
  \-PE    f6b10000-f6b90000    \               wininet
ELF    f6b90000-f7557000    Deferred        shell32<elf>
  \-PE    f6ba0000-f7557000    \               shell32
ELF    f7557000-f75f9000    Deferred        urlmon<elf>
  \-PE    f7560000-f75f9000    \               urlmon
ELF    f75f9000-f773b000    Deferred        msi<elf>
  \-PE    f7600000-f773b000    \               msi
ELF    f773b000-f7751000    Deferred        slc<elf>
  \-PE    f7740000-f7751000    \               slc
ELF    f7751000-f7765000    Deferred        msimg32<elf>
  \-PE    f7760000-f7765000    \               msimg32
ELF    f7765000-f777c000    Deferred        api-ms-win-crt-multibyte-l1-1-0<elf>
  \-PE    f7770000-f777c000    \               api-ms-win-crt-multibyte-l1-1-0
ELF    f777c000-f78af000    Deferred        oleaut32<elf>
  \-PE    f7790000-f78af000    \               oleaut32
ELF    f78af000-f78b6000    Deferred        libxfixes.so.3
ELF    f78b6000-f78c2000    Deferred        libxcursor.so.1
ELF    f78c2000-f78d5000    Deferred        libxi.so.6
ELF    f78d5000-f78d9000    Deferred        libxcomposite.so.1
ELF    f78d9000-f78e6000    Deferred        libxrandr.so.2
ELF    f78e6000-f78f2000    Deferred        libxrender.so.1
ELF    f78f2000-f78f9000    Deferred        libxxf86vm.so.1
ELF    f78f9000-f7903000    Deferred        librt.so.1
ELF    f7903000-f791e000    Deferred        libbsd.so.0
ELF    f791e000-f794a000    Deferred        libxcb.so.1
ELF    f794a000-f7a94000    Deferred        libx11.so.6
ELF    f7a94000-f7aa9000    Deferred        libxext.so.6
ELF    f7aab000-f7ab0000    Deferred        libxcb-dri3.so.0
ELF    f7ab0000-f7ac4000    Deferred        api-ms-win-crt-environment-l1-1-0<elf>
  \-PE    f7ac0000-f7ac4000    \               api-ms-win-crt-environment-l1-1-0
ELF    f7ac6000-f7b60000    Deferred        winex11<elf>
  \-PE    f7ad0000-f7b60000    \               winex11
ELF    f7b60000-f7b6e000    Deferred        libnss_nis.so.2
ELF    f7b70000-f7b75000    Deferred        libdl.so.2
ELF    f7b75000-f7d51000    Deferred        libc.so.6
ELF    f7d51000-f7d70000    Deferred        libpthread.so.0
ELF    f7d71000-f7d75000    Deferred        libxinerama.so.1
ELF    f7d75000-f7d7c000    Deferred        libxdmcp.so.6
ELF    f7d7c000-f7d80000    Deferred        libxau.so.6
ELF    f7d83000-f7d8d000    Deferred        libnss_compat.so.2
ELF    f7d8d000-f7f46000    Dwarf           libwine.so.1
ELF    f7f48000-f7f70000    Deferred        ld-linux.so.2
ELF    f7f73000-f7f75000    Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files\Microsoft Office\Office16\EXCEL.EXE
    00000045    0
    00000044    0
    00000043    0
    00000042    0
    00000041    0
    00000040    0
    0000003f    1
    0000003e    0
    0000003d    0
    0000003c    0
    00000009    0 <==
0000000e services.exe
    0000002c    0
    00000026    0
    00000020    0
    0000001b    0
    00000013    0
    00000010    0
    0000000f    0
00000011 winedevice.exe
    00000018    0
    00000017    0
    00000016    0
    00000012    0
00000019 plugplay.exe
    0000001d    0
    0000001c    0
    0000001a    0
0000001e svchost.exe
    00000036    0
    00000035    0
    00000023    0
    00000022    0
    00000021    0
    0000001f    0
00000024 winedevice.exe
    00000029    0
    00000028    0
    00000027    0
    00000025    0
0000002a rpcss.exe
    00000030    0
    0000002f    0
    0000002e    0
    0000002d    0
    0000002b    0
00000037 explorer.exe
    0000003b    0
    0000003a    0
    00000039    0
    00000038    0
System information:
    Wine build: wine-3.21
    Platform: i386
    Version: Windows Server 2008 R2
    Host system: Linux
    Host version: 4.18.0-21-generic

WORD works just fine.

Odpowiedzi

GuerreroAzul Saturday 8 December 2018 at 15:04
GuerreroAzul

Information

This update has been approved by the team.

Wiadmości

X

Differences

@@ -1,99 +1,199 @@
-#!/bin/bash
-# 
-# [Isaac Angelo] (2018-09-27 21-25)
-# Script Baseado no Script de instalação do Office 2013
-#
+#!/usr/bin/env playonlinux-bash
+# Date: (2015-11-26 22-01)
+# Last revisio: (2018-12-17 17-07)
+# Wine version used: 3.20
+# Distribution used to test: Linux Mint 19 Xfce
+# Author: Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul
+
+# ---------------------------------------------------------------------------------------------------------
+
+# CHANGELOG
+# Version 0.0.1 by N0rbert - with Wine 3.0 it crashes on Welcome screen when trying
+# to call "unimplemented function KERNEL32.dll.FindNLSStringEx called in 32-bit code"
+# So we need Wine 3.4+ here, but I can't run this script with it on my Ubuntu 16.04 LTS.
 #
-version=0.04
- 
+# based on Version 1.1.0.0 [Quentin Pâris and Eduardo Lucio (Questor)] (2018-02-17 15-24) - Paris/Brazil
+# for office2007pro (playonlinux://www.playonlinux.com/repository/download.php?id=2665)
+
+# ---------------------------------------------------------------------------------------------------------
+
+# Under BSD License!
+
+# Copyright (c) 2018, Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul
+# All rights reserved.
+
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#     * Redistributions of source code must retain the above copyright
+#       notice, this list of conditions and the following disclaimer.
+#     * Redistributions in binary form must reproduce the above copyright
+#       notice, this list of conditions and the following disclaimer in the
+#       documentation and/or other materials provided with the distribution.
+#     * Neither the name of the free software community nor the
+#       names of its contributors may be used to endorse or promote products
+#       derived from this software without specific prior written permission.
+
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL Quentin Pâris and Eduardo Lucio BE LIABLE FOR ANY
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# ---------------------------------------------------------------------------------------------------------
+
+# NOTE: Complete liste of references! By Questor
+# https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib
+# https://www.playonlinux.com/en/app-2665-Microsoft_Office_2016.html
+# http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions
+# http://wiki.playonlinux.com/index.php/Components_and_Functions
+# https://www.playonlinux.com/repository/source.php?script=822
+# https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/scripts.lib
+# https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/wine.lib
+# https://askubuntu.com/questions/879304/wine-2-0-says-it-supports-office-2016-how-do-i-actually-install-it
+# https://github.com/RobertJames/playonlinux/blob/75ef37523f299255a539a89b63dc87d7afc096d4/template.POL
+
+# N0rbert's links:
+# https://bugs.winehq.org/show_bug.cgi?id=41911 (really we need Wine 3.4+ to fix FindNLSStringEx errors)
+
+#Links: By GuerreroAzul
+#https://askubuntu.com/questions/975104/how-do-i-install-ms-office-2016-on-playonlinux
+#https://www.playonlinux.com/es/app-2665-Microsoft_Office_2013.html
+#https://www.playonlinux.com/repository/?cat=100
+
+# ---------------------------------------------------------------------------------------------------------
+
+# Initialization!
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
- 
-PREFIX="Office2016"
-WINEVERSION="2.8-staging"
+
 TITLE="Microsoft Office 2016"
- 
-POL_GetSetupImages "http://files.playonlinux.com/resources/setups/Office/top.jpg" "http://files.playonlinux.com/resources/setups/Office/left.png" "$TITLE"
- 
+PREFIX="Office2016"
+WINEVERSION="3.21"
+OSVERSION="win7"
+
+POL_GetSetupImages "https://i.imgur.com/licFVuF.png" "https://i.imgur.com/ff6PkEZ.png" "$TITLE"
+
 POL_SetupWindow_Init
-POL_SetupWindow_SetID 2665
- 
-POL_SetupWindow_presentation "$TITLE" "Isaac Angelo" "versão = $version" "Microsoft"
+POL_SetupWindow_SetID 3064
 
+POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com" "Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul" "$TITLE"
 
- 
-POL_RequiredVersion 4.0.18 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update"
- 
-if [ "$POL_OS" = "Linux" ]; then
-        wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE"
-fi
 POL_Debug_Init
-POL_System_SetArch "x86"
- 
-#POL_SetupWindow_message "Esse script foi  " "MUITO IMPORTANTE!!!!" 
-POL_SetupWindow_InstallMethod "LOCAL"
- 
-if [ "$INSTALL_METHOD" = "DVD" ]; then
-#        POL_SetupWindow_cdrom
-#        POL_SetupWindow_check_cdrom "x86/setup.exe" "setup.exe"
-#        SetupIs="$CDROM_SETUP"
-#        cd "$CDROM"
-        POL_SetupWindow_browse "$(eval_gettext 'Selecione o Arquivo de Instalação do Office 32BITS')" "$TITLE"
-        SetupIs="$APP_ANSWER"
 
-else
-        POL_SetupWindow_browse "$(eval_gettext 'Selecione o Arquivo de Instalação do Office 32BITS')" "$TITLE"
-        SetupIs="$APP_ANSWER"
-fi
- 
-POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "$WINEVERSION"
+# ---------------------------------------------------------------------------------------------------------
+
+# Perform some validations!
+POL_RequiredVersion 4.3.3 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION!\nPlease update!"
 
-Set_OS "win7" 
+#Linux
+if [ "$POL_OS" = "Linux" ]; then
+    wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE!"
+fi
 
+#MAC
 if [ "$POL_OS" = "Mac" ]; then
-    # Samba support
+    # NOTE: Samba support! By Quentin Pâris
     POL_Call POL_GetTool_samba3
     source "$POL_USER_ROOT/tools/samba3/init"
 fi
- 
- 
+
 POL_Wine_WaitBefore "$TITLE"
 [ "$CDROM" ] && cd "$CDROM"
- 
+
+#Validation of 32Bits
 if [ ! "$(file $SetupIs | grep 'x86-64')" = "" ]; then
-    POL_Debug_Fatal "$(eval_gettext "A Versão de  64bits não é compatível ! ")";
+    POL_Debug_Fatal "$(eval_gettext "The 64bits version is not compatible! Sorry!")";
 fi
+
+# NOTE: Check if "winetricks" is present! By Questor
+winetricks -V || POL_Debug_Fatal "Please install winetricks before installing $TITLE!"
+
+POL_System_SetArch "x86"
+POL_SetupWindow_InstallMethod "LOCAL,DVD"
+
+if [ "$INSTALL_METHOD" = "DVD" ]; then
+    POL_SetupWindow_cdrom
+    POL_SetupWindow_check_cdrom "x86/setup.exe" "setup.exe"
+    SetupIs="$CDROM_SETUP"
+    cd "$CDROM"
+else
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run!')" "$TITLE"
+    SetupIs="$APP_ANSWER"
+fi
+
+# ---------------------------------------------------------------------------------------------------------
+
+# Prepare resources for installation!
+
+# NOTE: Install wine version if isn't available. This is necessary because
+# even though "POL_Wine_PrefixCreate" solves this, we end up having
+# problems when the required version is not available and it tries to
+# install it! Questor
+# [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib]
+POL_Wine_InstallVersion "$WINEVERSION"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+
+Set_OS "$OSVERSION"
+
+# Fix black windows (added by N0rbert)
+POL_Wine_Direct3D "MaxVersionGL" "30002"
+
+# ---------------------------------------------------------------------------------------------------------
+# Install!
+
+# NOTE: Installs office! By Questor
 POL_Wine "$SetupIs"
 POL_Wine_WaitExit "$TITLE"
- 
-# See http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555
+
+# ---------------------------------------------------------------------------------------------------------
+
+# Prepare resources for applications!
+
+# NOTE: Uses native special version of "riched20" installed by Office 2016!
+# Fix the "black fields" issue! By Questor
+# [Ref.: http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555]
 POL_Wine_OverrideDLL "native,builtin" "riched20"
- 
+
 # Fix a crash when loading a file
 # POL_Call POL_Install_msxml6
-# scirpt necessários para rodar o Office 2016 
- POL_Install_corefonts 
- POL_Install_tahoma
- POL_Install_tahoma2
- POL_Internal_InstallFonts
- POL_Install_msxml6
- POL_Install_vcrun6
- 
- 
+
+# NOTE: Fix "move and change the window size (maximize/minimize/restore/resize
+# etc...) bugs"! By Questor
+# [Ref.: https://bugs.winehq.org/show_bug.cgi?id=44552]
+Set_Managed "Off"
+
+# ---------------------------------------------------------------------------------------------------------
+
+# Create shortcuts, entries to extensions and finalize!
+
+# NOTE: Create shortcuts! By Questor
 POL_Shortcut "WINWORD.EXE" "Microsoft Word 2016" "" "" "Office;WordProcessor;"
 POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2016" "" "" "Office;Spreadsheet;"
 POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2016" "" "" "Office;Presentation;"
-POL_Shortcut "ONENOTE.EXE" "Microsoft OneNote 2016" "" "" "Network;InstantMessaging;" # No category for collaborative work?
-POL_Shortcut "OUTLOOK.EXE" "Microsoft Outlook 2016" "" "" "Network;Email;" # Calendar;ContactManagement; ? :p
- 
+
+# NOTE: No category for collaborative work? By Quentin Pâris
+POL_Shortcut "ONENOTE.EXE" "Microsoft OneNote 2016" "" "" "Network;InstantMessaging;"
+
+# NOTE: "Calendar;ContactManagement;"? By Quentin Pâris
+POL_Shortcut "OUTLOOK.EXE" "Microsoft Outlook 2016" "" "" "Network;Email;"
+
+# NOTE: Add an entry to PlayOnLinux's extension file. If the entry already
+# exists, it will replace it! By Questor
+# [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/playonlinux.lib]
 POL_Extension_Write doc "Microsoft Word 2016"
 POL_Extension_Write docx "Microsoft Word 2016"
 POL_Extension_Write xls "Microsoft Excel 2016"
 POL_Extension_Write xlsx "Microsoft Excel 2016"
 POL_Extension_Write ppt "Microsoft Powerpoint 2016"
 POL_Extension_Write pptx "Microsoft Powerpoint 2016"
- 
+
 if [ "$POL_OS" = "Mac" ]; then
     POL_Shortcut_InsertBeforeWine "Microsoft Word 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
     POL_Shortcut_InsertBeforeWine "Microsoft Excel 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
@@ -101,7 +201,10 @@
     POL_Shortcut_InsertBeforeWine "Microsoft OneNote 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
     POL_Shortcut_InsertBeforeWine "Microsoft Outlook 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
 fi
- 
-POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully\n\nIf an installation Windows prevent your programs from running, you must remove and reinstall $TITLE')" "$TITLE"
+
+POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully!\n\nThanks!\nBy Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul')" "$TITLE"
 POL_SetupWindow_Close
-exit
+
+# ---------------------------------------------------------------------------------------------------------
+
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date: (2015-11-26 22-01)
# Last revisio: (2018-12-17 17-07)
# Wine version used: 3.20
# Distribution used to test: Linux Mint 19 Xfce
# Author: Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul

# ---------------------------------------------------------------------------------------------------------

# CHANGELOG
# Version 0.0.1 by N0rbert - with Wine 3.0 it crashes on Welcome screen when trying
# to call "unimplemented function KERNEL32.dll.FindNLSStringEx called in 32-bit code"
# So we need Wine 3.4+ here, but I can't run this script with it on my Ubuntu 16.04 LTS.
#
# based on Version 1.1.0.0 [Quentin Pâris and Eduardo Lucio (Questor)] (2018-02-17 15-24) - Paris/Brazil
# for office2007pro (playonlinux://www.playonlinux.com/repository/download.php?id=2665)

# ---------------------------------------------------------------------------------------------------------

# Under BSD License!

# Copyright (c) 2018, Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul
# All rights reserved.

# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#     * Redistributions of source code must retain the above copyright
#       notice, this list of conditions and the following disclaimer.
#     * Redistributions in binary form must reproduce the above copyright
#       notice, this list of conditions and the following disclaimer in the
#       documentation and/or other materials provided with the distribution.
#     * Neither the name of the free software community nor the
#       names of its contributors may be used to endorse or promote products
#       derived from this software without specific prior written permission.

# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL Quentin Pâris and Eduardo Lucio BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

# ---------------------------------------------------------------------------------------------------------

# NOTE: Complete liste of references! By Questor
# https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib
# https://www.playonlinux.com/en/app-2665-Microsoft_Office_2016.html
# http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions
# http://wiki.playonlinux.com/index.php/Components_and_Functions
# https://www.playonlinux.com/repository/source.php?script=822
# https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/scripts.lib
# https://github.com/PlayOnLinux/POL-POM-4/blob/367e50865168b5b931611fa33b0c1d8426143a90/lib/wine.lib
# https://askubuntu.com/questions/879304/wine-2-0-says-it-supports-office-2016-how-do-i-actually-install-it
# https://github.com/RobertJames/playonlinux/blob/75ef37523f299255a539a89b63dc87d7afc096d4/template.POL

# N0rbert's links:
# https://bugs.winehq.org/show_bug.cgi?id=41911 (really we need Wine 3.4+ to fix FindNLSStringEx errors)

#Links: By GuerreroAzul
#https://askubuntu.com/questions/975104/how-do-i-install-ms-office-2016-on-playonlinux
#https://www.playonlinux.com/es/app-2665-Microsoft_Office_2013.html
#https://www.playonlinux.com/repository/?cat=100

# ---------------------------------------------------------------------------------------------------------

# Initialization!
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Microsoft Office 2016"
PREFIX="Office2016"
WINEVERSION="3.21"
OSVERSION="win7"

POL_GetSetupImages "https://i.imgur.com/licFVuF.png" "https://i.imgur.com/ff6PkEZ.png" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 3064

POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com" "Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul" "$TITLE"

POL_Debug_Init

# ---------------------------------------------------------------------------------------------------------

# Perform some validations!
POL_RequiredVersion 4.3.3 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION!\nPlease update!"

#Linux
if [ "$POL_OS" = "Linux" ]; then
    wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE!"
fi

#MAC
if [ "$POL_OS" = "Mac" ]; then
    # NOTE: Samba support! By Quentin Pâris
    POL_Call POL_GetTool_samba3
    source "$POL_USER_ROOT/tools/samba3/init"
fi

POL_Wine_WaitBefore "$TITLE"
[ "$CDROM" ] && cd "$CDROM"

#Validation of 32Bits
if [ ! "$(file $SetupIs | grep 'x86-64')" = "" ]; then
    POL_Debug_Fatal "$(eval_gettext "The 64bits version is not compatible! Sorry!")";
fi

# NOTE: Check if "winetricks" is present! By Questor
winetricks -V || POL_Debug_Fatal "Please install winetricks before installing $TITLE!"

POL_System_SetArch "x86"
POL_SetupWindow_InstallMethod "LOCAL,DVD"

if [ "$INSTALL_METHOD" = "DVD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "x86/setup.exe" "setup.exe"
    SetupIs="$CDROM_SETUP"
    cd "$CDROM"
else
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run!')" "$TITLE"
    SetupIs="$APP_ANSWER"
fi

# ---------------------------------------------------------------------------------------------------------

# Prepare resources for installation!

# NOTE: Install wine version if isn't available. This is necessary because
# even though "POL_Wine_PrefixCreate" solves this, we end up having
# problems when the required version is not available and it tries to
# install it! Questor
# [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/wine.lib]
POL_Wine_InstallVersion "$WINEVERSION"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "$OSVERSION"

# Fix black windows (added by N0rbert)
POL_Wine_Direct3D "MaxVersionGL" "30002"

# ---------------------------------------------------------------------------------------------------------
# Install!

# NOTE: Installs office! By Questor
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

# ---------------------------------------------------------------------------------------------------------

# Prepare resources for applications!

# NOTE: Uses native special version of "riched20" installed by Office 2016!
# Fix the "black fields" issue! By Questor
# [Ref.: http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555]
POL_Wine_OverrideDLL "native,builtin" "riched20"

# Fix a crash when loading a file
# POL_Call POL_Install_msxml6

# NOTE: Fix "move and change the window size (maximize/minimize/restore/resize
# etc...) bugs"! By Questor
# [Ref.: https://bugs.winehq.org/show_bug.cgi?id=44552]
Set_Managed "Off"

# ---------------------------------------------------------------------------------------------------------

# Create shortcuts, entries to extensions and finalize!

# NOTE: Create shortcuts! By Questor
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2016" "" "" "Office;WordProcessor;"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2016" "" "" "Office;Spreadsheet;"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2016" "" "" "Office;Presentation;"

# NOTE: No category for collaborative work? By Quentin Pâris
POL_Shortcut "ONENOTE.EXE" "Microsoft OneNote 2016" "" "" "Network;InstantMessaging;"

# NOTE: "Calendar;ContactManagement;"? By Quentin Pâris
POL_Shortcut "OUTLOOK.EXE" "Microsoft Outlook 2016" "" "" "Network;Email;"

# NOTE: Add an entry to PlayOnLinux's extension file. If the entry already
# exists, it will replace it! By Questor
# [Ref.: https://github.com/PlayOnLinux/POL-POM-4/blob/master/lib/playonlinux.lib]
POL_Extension_Write doc "Microsoft Word 2016"
POL_Extension_Write docx "Microsoft Word 2016"
POL_Extension_Write xls "Microsoft Excel 2016"
POL_Extension_Write xlsx "Microsoft Excel 2016"
POL_Extension_Write ppt "Microsoft Powerpoint 2016"
POL_Extension_Write pptx "Microsoft Powerpoint 2016"

if [ "$POL_OS" = "Mac" ]; then
    POL_Shortcut_InsertBeforeWine "Microsoft Word 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Excel 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Powerpoint 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft OneNote 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Outlook 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
fi

POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully!\n\nThanks!\nBy Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul')" "$TITLE"
POL_SetupWindow_Close

# ---------------------------------------------------------------------------------------------------------

exit 0

Odpowiedzi

Edytowane przez Dadu042

isaacangello Thursday 22 November 2018 at 19:08
isaacangello

Warning

This update has not been approved yet by the team.
Use it at your own risk

Wiadmości

This script has the purpose of installing and giving the option to insert a key for office 2016, it already works and opens the ps programs of the suite, but still presents strange behaviors. It takes a way to crack it or insert a valid key,

Differences

@@ -0,0 +1,107 @@
+#!/bin/bash
+# 
+# [Isaac Angelo] (2018-09-27 21-25)
+# Script Baseado no Script de instalação do Office 2013
+#
+#
+version=0.04
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+PREFIX="Office2016"
+WINEVERSION="2.8-staging"
+TITLE="Microsoft Office 2016"
+ 
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/Office/top.jpg" "http://files.playonlinux.com/resources/setups/Office/left.png" "$TITLE"
+ 
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 2665
+ 
+POL_SetupWindow_presentation "$TITLE" "Isaac Angelo" "versão = $version" "Microsoft"
+
+
+ 
+POL_RequiredVersion 4.0.18 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update"
+ 
+if [ "$POL_OS" = "Linux" ]; then
+        wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE"
+fi
+POL_Debug_Init
+POL_System_SetArch "x86"
+ 
+#POL_SetupWindow_message "Esse script foi  " "MUITO IMPORTANTE!!!!" 
+POL_SetupWindow_InstallMethod "LOCAL"
+ 
+if [ "$INSTALL_METHOD" = "DVD" ]; then
+#        POL_SetupWindow_cdrom
+#        POL_SetupWindow_check_cdrom "x86/setup.exe" "setup.exe"
+#        SetupIs="$CDROM_SETUP"
+#        cd "$CDROM"
+        POL_SetupWindow_browse "$(eval_gettext 'Selecione o Arquivo de Instalação do Office 32BITS')" "$TITLE"
+        SetupIs="$APP_ANSWER"
+
+else
+        POL_SetupWindow_browse "$(eval_gettext 'Selecione o Arquivo de Instalação do Office 32BITS')" "$TITLE"
+        SetupIs="$APP_ANSWER"
+fi
+ 
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+
+Set_OS "win7" 
+
+if [ "$POL_OS" = "Mac" ]; then
+    # Samba support
+    POL_Call POL_GetTool_samba3
+    source "$POL_USER_ROOT/tools/samba3/init"
+fi
+ 
+ 
+POL_Wine_WaitBefore "$TITLE"
+[ "$CDROM" ] && cd "$CDROM"
+ 
+if [ ! "$(file $SetupIs | grep 'x86-64')" = "" ]; then
+    POL_Debug_Fatal "$(eval_gettext "A Versão de  64bits não é compatível ! ")";
+fi
+POL_Wine "$SetupIs"
+POL_Wine_WaitExit "$TITLE"
+ 
+# See http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555
+POL_Wine_OverrideDLL "native,builtin" "riched20"
+ 
+# Fix a crash when loading a file
+# POL_Call POL_Install_msxml6
+# scirpt necessários para rodar o Office 2016 
+ POL_Install_corefonts 
+ POL_Install_tahoma
+ POL_Install_tahoma2
+ POL_Internal_InstallFonts
+ POL_Install_msxml6
+ POL_Install_vcrun6
+ 
+ 
+POL_Shortcut "WINWORD.EXE" "Microsoft Word 2016" "" "" "Office;WordProcessor;"
+POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2016" "" "" "Office;Spreadsheet;"
+POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2016" "" "" "Office;Presentation;"
+POL_Shortcut "ONENOTE.EXE" "Microsoft OneNote 2016" "" "" "Network;InstantMessaging;" # No category for collaborative work?
+POL_Shortcut "OUTLOOK.EXE" "Microsoft Outlook 2016" "" "" "Network;Email;" # Calendar;ContactManagement; ? :p
+ 
+POL_Extension_Write doc "Microsoft Word 2016"
+POL_Extension_Write docx "Microsoft Word 2016"
+POL_Extension_Write xls "Microsoft Excel 2016"
+POL_Extension_Write xlsx "Microsoft Excel 2016"
+POL_Extension_Write ppt "Microsoft Powerpoint 2016"
+POL_Extension_Write pptx "Microsoft Powerpoint 2016"
+ 
+if [ "$POL_OS" = "Mac" ]; then
+    POL_Shortcut_InsertBeforeWine "Microsoft Word 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
+    POL_Shortcut_InsertBeforeWine "Microsoft Excel 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
+    POL_Shortcut_InsertBeforeWine "Microsoft Powerpoint 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
+    POL_Shortcut_InsertBeforeWine "Microsoft OneNote 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
+    POL_Shortcut_InsertBeforeWine "Microsoft Outlook 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
+fi
+ 
+POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully\n\nIf an installation Windows prevent your programs from running, you must remove and reinstall $TITLE')" "$TITLE"
+POL_SetupWindow_Close
+exit

New source code

#!/bin/bash
# 
# [Isaac Angelo] (2018-09-27 21-25)
# Script Baseado no Script de instalação do Office 2013
#
#
version=0.04
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="Office2016"
WINEVERSION="2.8-staging"
TITLE="Microsoft Office 2016"
 
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/Office/top.jpg" "http://files.playonlinux.com/resources/setups/Office/left.png" "$TITLE"
 
POL_SetupWindow_Init
POL_SetupWindow_SetID 2665
 
POL_SetupWindow_presentation "$TITLE" "Isaac Angelo" "versão = $version" "Microsoft"


 
POL_RequiredVersion 4.0.18 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update"
 
if [ "$POL_OS" = "Linux" ]; then
        wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE"
fi
POL_Debug_Init
POL_System_SetArch "x86"
 
#POL_SetupWindow_message "Esse script foi  " "MUITO IMPORTANTE!!!!" 
POL_SetupWindow_InstallMethod "LOCAL"
 
if [ "$INSTALL_METHOD" = "DVD" ]; then
#        POL_SetupWindow_cdrom
#        POL_SetupWindow_check_cdrom "x86/setup.exe" "setup.exe"
#        SetupIs="$CDROM_SETUP"
#        cd "$CDROM"
        POL_SetupWindow_browse "$(eval_gettext 'Selecione o Arquivo de Instalação do Office 32BITS')" "$TITLE"
        SetupIs="$APP_ANSWER"

else
        POL_SetupWindow_browse "$(eval_gettext 'Selecione o Arquivo de Instalação do Office 32BITS')" "$TITLE"
        SetupIs="$APP_ANSWER"
fi
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

Set_OS "win7" 

if [ "$POL_OS" = "Mac" ]; then
    # Samba support
    POL_Call POL_GetTool_samba3
    source "$POL_USER_ROOT/tools/samba3/init"
fi
 
 
POL_Wine_WaitBefore "$TITLE"
[ "$CDROM" ] && cd "$CDROM"
 
if [ ! "$(file $SetupIs | grep 'x86-64')" = "" ]; then
    POL_Debug_Fatal "$(eval_gettext "A Versão de  64bits não é compatível ! ")";
fi
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"
 
# See http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555
POL_Wine_OverrideDLL "native,builtin" "riched20"
 
# Fix a crash when loading a file
# POL_Call POL_Install_msxml6
# scirpt necessários para rodar o Office 2016 
 POL_Install_corefonts 
 POL_Install_tahoma
 POL_Install_tahoma2
 POL_Internal_InstallFonts
 POL_Install_msxml6
 POL_Install_vcrun6
 
 
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2016" "" "" "Office;WordProcessor;"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2016" "" "" "Office;Spreadsheet;"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2016" "" "" "Office;Presentation;"
POL_Shortcut "ONENOTE.EXE" "Microsoft OneNote 2016" "" "" "Network;InstantMessaging;" # No category for collaborative work?
POL_Shortcut "OUTLOOK.EXE" "Microsoft Outlook 2016" "" "" "Network;Email;" # Calendar;ContactManagement; ? :p
 
POL_Extension_Write doc "Microsoft Word 2016"
POL_Extension_Write docx "Microsoft Word 2016"
POL_Extension_Write xls "Microsoft Excel 2016"
POL_Extension_Write xlsx "Microsoft Excel 2016"
POL_Extension_Write ppt "Microsoft Powerpoint 2016"
POL_Extension_Write pptx "Microsoft Powerpoint 2016"
 
if [ "$POL_OS" = "Mac" ]; then
    POL_Shortcut_InsertBeforeWine "Microsoft Word 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Excel 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Powerpoint 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft OneNote 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
    POL_Shortcut_InsertBeforeWine "Microsoft Outlook 2016" "source \"$POL_USER_ROOT/tools/samba3/init\""
fi
 
POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully\n\nIf an installation Windows prevent your programs from running, you must remove and reinstall $TITLE')" "$TITLE"
POL_SetupWindow_Close
exit

Odpowiedzi

outlaw-97 Friday 30 March 2018 at 11:32
outlaw-97 Anonymous

Wiadmości

devil

Odpowiedzi