Вы находитесь здесь

Microsoft Office 2016

Informations

Creator Message
TastyCake101 Anonymous

Warning

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

Informations

Platforms:
Downloads: 1059428
Wine: 3.21

Feedbacks

Description

Microsoft Office 2016.

Appdb.winehq.org

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 Message
Titule Thursday 16 November 2023 at 14:38
Titule Anonymous

Message

  • wine windows are almost unreadable small
  • wine-Message "File not found" during installation, does not say which
  • Later, can't find "WINWORD.EXE" and "EXCEL.EXE"

Replies

vothanhhuy256 Saturday 12 February 2022 at 11:29
vothanhhuy256 Anonymous

Message

Hello,

I hope you are having a great time!

Thanks to this program, it works very well. It helps me play the game, work with Windows programs on Linux. But it has one problem is Powerpoint 2016. It always crashes when I run it (although Word, Excel can run). This is the error log:

#!/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

Replies

Edited by vothanhhuy256

Sakii Saturday 1 May 2021 at 16:47
Sakii

Warning

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

Message

Hello everyone,

 

I updated the latest approved script to work one-click with my Office 365 v2002 installer. It's from 2017, I think it is very similar to Office 2016. Activation works too! (via login)

 

Logging in fails the first time, and passes the second time.

 

OneNote and Outlook doesn't start but the others work very well with minor graphic glitches. If you have any crashes, freezes, kill every Wine and Office related processes, they do cause some interference.


I'm new to playonlinux so every feedback is appreciated :)

Differences

@@ -1,12 +1,12 @@
 #!/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
-
+# Last revision: (2021-05-01 16-14)
+# Wine version used: 6.0
+# Distribution used to test: Linux Mint 21.1 Xfce
+# Author: Quentin Pâris, Eduardo Lucio, N0rbert, GuerreroAzul, Sakii
+ 
 # ---------------------------------------------------------------------------------------------------------
-
+ 
 # 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"
@@ -14,14 +14,14 @@
 #
 # 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
@@ -32,7 +32,7 @@
 #     * 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
@@ -43,9 +43,9 @@
 # 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
@@ -56,66 +56,70 @@
 # 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
 
+# Activation and registry references by Sakii
+# https://www.linux.org/threads/crossover-on-ubuntu.27388/post-108776
+# https://www.reddit.com/r/winehq/comments/k4ws5z/is_there_a_shortcut_method_to_add_registry_keys/
+ 
 # ---------------------------------------------------------------------------------------------------------
-
+ 
 # Initialization!
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Microsoft Office 2016"
 PREFIX="Office2016"
-WINEVERSION="3.21"
+WINEVERSION="6.0"
 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_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com" "Quentin Pâris, Eduardo Lucio, N0rbert, GuerreroAzul, Sakii" "$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"
@@ -125,35 +129,40 @@
     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"
+# Registry changes (by Sakii)
+POL_Wine_Direct3D MaxVersionGL --dword 30002
+POL_Wine_UpdateRegistryWinePair Direct2D max_version_factory --dword 0
+
+# MSXML dependency, dll override is added automatically (by Sakii)
+POL_Call POL_Install_msxml6
 
+ 
 # ---------------------------------------------------------------------------------------------------------
 # Install!
-
-# NOTE: Installs office! By Questor
+ 
+# Installer is run synchronously
+POL_Wine_WaitBefore "$TITLE"
 POL_Wine "$SetupIs"
-POL_Wine_WaitExit "$TITLE"
-
+ 
 # ---------------------------------------------------------------------------------------------------------
-
+ 
 # Prepare resources for applications!
 
 # NOTE: Uses native special version of "riched20" installed by Office 2016!
@@ -161,29 +170,35 @@
 # [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]
+# Also fixes the white frame when maximized and the laggy window decorations
 Set_Managed "Off"
 
-# ---------------------------------------------------------------------------------------------------------
+# Change to static login dialog instead of embedded browser (by Sakii)
+POL_Wine_UpdateRegistryPair "HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\16.0\\Common\\Identity" "EnableADAL" --dword 0
 
+# Copy necessary DLLs (by Sakii)
+DRIVE_C="${POL_USER_ROOT}wineprefix/$PREFIX/drive_c"
+cp "$DRIVE_C/Program Files/Common Files/Microsoft Shared/ClickToRun/AppvIsvSubsystems32.dll" "$DRIVE_C/Program Files/Microsoft Office/root/Office16/"
+cp "$DRIVE_C/Program Files/Common Files/Microsoft Shared/ClickToRun/C2R32.dll" "$DRIVE_C/Program Files/Microsoft Office/root/Office16/"
+ 
+# ---------------------------------------------------------------------------------------------------------
+ 
 # 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]
@@ -193,7 +208,7 @@
 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\""
@@ -201,10 +216,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\nThanks!\nBy Quentin Pâris, Eduardo Lucio and N0rbert, GuerreroAzul')" "$TITLE"
+ 
+POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully!\n\nThanks!\nBy Quentin Pâris, Eduardo Lucio, N0rbert, GuerreroAzul, Sakii')" "$TITLE"
 POL_SetupWindow_Close
-
+ 
 # ---------------------------------------------------------------------------------------------------------
-
+ 
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date: (2015-11-26 22-01)
# Last revision: (2021-05-01 16-14)
# Wine version used: 6.0
# Distribution used to test: Linux Mint 21.1 Xfce
# Author: Quentin Pâris, Eduardo Lucio, N0rbert, GuerreroAzul, Sakii
 
# ---------------------------------------------------------------------------------------------------------
 
# 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

# Activation and registry references by Sakii
# https://www.linux.org/threads/crossover-on-ubuntu.27388/post-108776
# https://www.reddit.com/r/winehq/comments/k4ws5z/is_there_a_shortcut_method_to_add_registry_keys/
 
# ---------------------------------------------------------------------------------------------------------
 
# Initialization!
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Microsoft Office 2016"
PREFIX="Office2016"
WINEVERSION="6.0"
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, N0rbert, GuerreroAzul, Sakii" "$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"

# Registry changes (by Sakii)
POL_Wine_Direct3D MaxVersionGL --dword 30002
POL_Wine_UpdateRegistryWinePair Direct2D max_version_factory --dword 0

# MSXML dependency, dll override is added automatically (by Sakii)
POL_Call POL_Install_msxml6

 
# ---------------------------------------------------------------------------------------------------------
# Install!
 
# Installer is run synchronously
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
 
# ---------------------------------------------------------------------------------------------------------
 
# 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"

# 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]
# Also fixes the white frame when maximized and the laggy window decorations
Set_Managed "Off"

# Change to static login dialog instead of embedded browser (by Sakii)
POL_Wine_UpdateRegistryPair "HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\16.0\\Common\\Identity" "EnableADAL" --dword 0

# Copy necessary DLLs (by Sakii)
DRIVE_C="${POL_USER_ROOT}wineprefix/$PREFIX/drive_c"
cp "$DRIVE_C/Program Files/Common Files/Microsoft Shared/ClickToRun/AppvIsvSubsystems32.dll" "$DRIVE_C/Program Files/Microsoft Office/root/Office16/"
cp "$DRIVE_C/Program Files/Common Files/Microsoft Shared/ClickToRun/C2R32.dll" "$DRIVE_C/Program Files/Microsoft Office/root/Office16/"
 
# ---------------------------------------------------------------------------------------------------------
 
# 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, N0rbert, GuerreroAzul, Sakii')" "$TITLE"
POL_SetupWindow_Close
 
# ---------------------------------------------------------------------------------------------------------
 
exit 0

Replies

Anonymous
Friday 29 April 2022 at 6:06
Tested with: Linux Mint 20.3 Una
Microsoft Office 2016 x86 Version (v.16.0.5290.1000)
Results: Big graphical glitches like word not showing math equations, powerpoint not showing images, etc...

Edited by Sakii

electron1948 Monday 27 July 2020 at 15:38
electron1948 Anonymous

Message

I tried this on Mint 19.3, POL 4.33, Office 2016 Home & Student - 32bit

It appears to install although the install dialog is black.  Trying Excel, Word etc it just crashes, the debug info says 'AppVIsvSubsystems32.dll'  is missing.

Working from another post it says: 

Copy "AppvIsvSubsystems32.dll" and "C2R32.dll" from
"<office2016>/Program Files/Common Files/Microsoft Shared/ClickToRun/"
 to
"<office2016>/Program Files/Microsoft Office/root/Office16/"

Checking this out shows that he folder 'Program Files/Common Files/Microsoft Shared/ClickToRun' is empty, suggesting that more than those two files are missing.  Copied those two files from the DVD (2016/Office/Data/16.0.9029.2167/Experiment) and tried again.  This time the error is:

Failed to load libgssapi_krb5

Now I'm stuck, need to copy but from where to where?

 

Replies

Raven_Knight554 Friday 22 May 2020 at 15:00
Raven_Knight554 Anonymous

Message

I have installed Office 2016 with POL script. It took more than an hour, but everything completed succesfully. yesheart

Word and Excel works well, but with a little 'glitch' that I can't open drop down lists with mouse, but need to use arrow keys.

eg: To change font, I need to click that box, then use arrow keys to open the drop down list.

But I can live with it. cheeky

 

Powerpoint crashes at startup.

I'm attaching a dump report:

 

Unhandled exception: page fault on write access to 0x00000000 in 32-bit code (0x02808c98).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:02808c98 ESP:0032f598 EBP:0032f5a4 EFLAGS:00210246(  R- --  I  Z- -P- )
 EAX:00000008 EBX:0032f620 ECX:00000000 EDX:00000000
 ESI:031e097c EDI:00000003
Stack dump:
0x0032f598:  025bd392 0032f620 011d9b40 0032f5d0
0x0032f5a8:  025bcfde 0032f620 7413b3f0 1086a958
0x0032f5b8:  0032f620 10a78d78 0032f5b0 0032faf0
0x0032f5c8:  02eea2be 00000000 0032f5e0 025bd9cb
0x0032f5d8:  011da5a0 00000003 0032f5f4 02019aa0
0x0032f5e8:  0032f620 00000003 00000003 0032f604
Backtrace:
=>0 0x02808c98 in mso (+0x258c98) (0x0032f5a4)
  1 0x025bcfde in mso (+0xcfdd) (0x0032f5d0)
  2 0x025bd9cb in mso (+0xd9ca) (0x0032f5e0)
  3 0x02019aa0 in mso99lwin32client (+0x9a9f) (0x0032f5f4)
  4 0x025bd8cb in mso (+0xd8ca) (0x0032f604)
  5 0x025bf249 in mso (+0xf248) (0x0032f650)
  6 0x025bf1d8 in mso (+0xf1d7) (0x0032f674)
  7 0x10005c97 in ppcore (+0x5c96) (0x0032facc)
  8 0x10008406 in ppcore (+0x8405) (0x0032fafc)
  9 0x10008337 in ppcore (+0x8336) (0x0032fb28)
  10 0x100081bb in ppcore (+0x81ba) (0x0032fb54)
  11 0x1000a62d in ppcore (+0xa62c) (0x0032fb84)
  12 0x1000a5fd in ppcore (+0xa5fc) (0x0032fb9c)
  13 0x10007d5e in ppcore (+0x7d5d) (0x0032fdf4)
  14 0x10008559 in ppcore (+0x8558) (0x0032fe68)
  15 0x004016ed in powerpnt (+0x16ec) (0x0032fe74)
  16 0x004016bf in powerpnt (+0x16be) (0x0032fec0)
  17 0x7b4677d2 call_process_entry+0x11() in kernel32 (0x0032fed8)
  18 0x7b4696f6 start_process+0x105() in kernel32 (0x0032ffd8)
  19 0x7b4677de start_process_wrapper+0x9() in kernel32 (0x0032ffec)
0x02808c98: movl    $0x1,0x00000000
Modules:
Module    Address            Debug info    Name (191 modules)
PE      400000-  5c5000    Export          powerpnt
PE      5d0000- 11ca000    Deferred        oart
PE     13f0000- 15c7000    Deferred        mso20win32client
PE     15d0000- 18e1000    Deferred        mso30win32client
PE     18f0000- 2008000    Deferred        mso40uiwin32client
PE     2010000- 25ad000    Export          mso99lwin32client
PE     25b0000- 3375000    Export          mso
PE     9060000- 9187000    Deferred        ppintl
PE     9190000- 92ca000    Deferred        ppresources
PE    10000000-10b95000    Export          ppcore
PE    63d00000-63d13000    Deferred        slc
PE    643c0000-64481000    Deferred        mscoree
PE    69b00000-69c23000    Deferred        d3dcompiler_47
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    7d83e000-7d846000    Deferred        libxfixes.so.3
ELF    7d846000-7d853000    Deferred        libxcursor.so.1
ELF    7d953000-7d968000    Deferred        libxi.so.6
ELF    7d968000-7d96d000    Deferred        libxcomposite.so.1
ELF    7d96d000-7d97c000    Deferred        libxrandr.so.2
ELF    7d97c000-7d988000    Deferred        libxrender.so.1
ELF    7d988000-7d990000    Deferred        libxxf86vm.so.1
ELF    7d990000-7d995000    Deferred        libxinerama.so.1
ELF    7d995000-7d9b4000    Deferred        libbsd.so.0
ELF    7d9b4000-7d9bc000    Deferred        libxdmcp.so.6
ELF    7d9bc000-7d9c2000    Deferred        libxau.so.6
ELF    7d9c2000-7d9f1000    Deferred        libxcb.so.1
ELF    7d9f1000-7db40000    Deferred        libx11.so.6
ELF    7db40000-7db57000    Deferred        libxext.so.6
ELF    7db7e000-7dc18000    Deferred        winex11<elf>
  \-PE    7db90000-7dc18000    \               winex11
ELF    7dc18000-7dc37000    Deferred        concrt140<elf>
  \-PE    7dc20000-7dc37000    \               concrt140
ELF    7dc37000-7dc5d000    Deferred        imm32<elf>
  \-PE    7dc40000-7dc5d000    \               imm32
ELF    7dd53000-7dd7f000    Deferred        libexpat.so.1
ELF    7dd7f000-7ddcd000    Deferred        libfontconfig.so.1
ELF    7ddcd000-7ddeb000    Deferred        libz.so.1
ELF    7ddeb000-7de2a000    Deferred        libpng16.so.16
ELF    7de2a000-7def0000    Deferred        libfreetype.so.6
ELF    7df17000-7df2b000    Deferred        api-ms-win-crt-time-l1-1-0<elf>
  \-PE    7df20000-7df2b000    \               api-ms-win-crt-time-l1-1-0
ELF    7df2b000-7dfa2000    Deferred        shlwapi<elf>
  \-PE    7df40000-7dfa2000    \               shlwapi
ELF    7dfa2000-7e03f000    Deferred        gdiplus<elf>
  \-PE    7dfb0000-7e03f000    \               gdiplus
ELF    7e03f000-7e056000    Deferred        api-ms-win-crt-multibyte-l1-1-0<elf>
  \-PE    7e040000-7e056000    \               api-ms-win-crt-multibyte-l1-1-0
ELF    7e056000-7e06c000    Deferred        api-ms-win-crt-convert-l1-1-0<elf>
  \-PE    7e060000-7e06c000    \               api-ms-win-crt-convert-l1-1-0
ELF    7e06c000-7e080000    Deferred        api-ms-win-crt-utility-l1-1-0<elf>
  \-PE    7e070000-7e080000    \               api-ms-win-crt-utility-l1-1-0
ELF    7e080000-7e096000    Deferred        api-ms-win-crt-string-l1-1-0<elf>
  \-PE    7e090000-7e096000    \               api-ms-win-crt-string-l1-1-0
ELF    7e096000-7e193000    Deferred        msvcr120<elf>
  \-PE    7e0b0000-7e193000    \               msvcr120
ELF    7e193000-7e2c1000    Deferred        msvcp140<elf>
  \-PE    7e1d0000-7e2c1000    \               msvcp140
ELF    7e2c1000-7e34e000    Deferred        rpcrt4<elf>
  \-PE    7e2d0000-7e34e000    \               rpcrt4
ELF    7e34e000-7e368000    Deferred        version<elf>
  \-PE    7e350000-7e368000    \               version
ELF    7e368000-7e599000    Deferred        user32<elf>
  \-PE    7e380000-7e599000    \               user32
ELF    7e599000-7e701000    Deferred        ole32<elf>
  \-PE    7e5b0000-7e701000    \               ole32
ELF    7e701000-7e854000    Deferred        gdi32<elf>
  \-PE    7e710000-7e854000    \               gdi32
ELF    7e854000-7e8cf000    Deferred        advapi32<elf>
  \-PE    7e860000-7e8cf000    \               advapi32
ELF    7e8cf000-7e8e3000    Deferred        api-ms-win-crt-heap-l1-1-0<elf>
  \-PE    7e8d0000-7e8e3000    \               api-ms-win-crt-heap-l1-1-0
ELF    7e8e3000-7e8f7000    Deferred        api-ms-win-crt-locale-l1-1-0<elf>
  \-PE    7e8f0000-7e8f7000    \               api-ms-win-crt-locale-l1-1-0
ELF    7e8f7000-7e90d000    Deferred        api-ms-win-crt-stdio-l1-1-0<elf>
  \-PE    7e900000-7e90d000    \               api-ms-win-crt-stdio-l1-1-0
ELF    7e90d000-7e926000    Deferred        api-ms-win-crt-math-l1-1-0<elf>
  \-PE    7e910000-7e926000    \               api-ms-win-crt-math-l1-1-0
ELF    7e926000-7e93c000    Deferred        api-ms-win-crt-runtime-l1-1-0<elf>
  \-PE    7e930000-7e93c000    \               api-ms-win-crt-runtime-l1-1-0
ELF    7e93c000-7ea46000    Deferred        ucrtbase<elf>
  \-PE    7e960000-7ea46000    \               ucrtbase
ELF    7eebf000-7eed4000    Deferred        libnss_files.so.2
ELF    7eed4000-7efd9000    Deferred        libm.so.6
ELF    7efea000-7f000000    Deferred        vcruntime140<elf>
  \-PE    7eff0000-7f000000    \               vcruntime140
ELF    f2072000-f20e4000    Deferred        dbghelp<elf>
  \-PE    f2080000-f20e4000    \               dbghelp
ELF    f20e4000-f213a000    Deferred        libgssapi_krb5.so.2
ELF    f213a000-f2149000    Deferred        libkrb5support.so.0
ELF    f2149000-f217d000    Deferred        libk5crypto.so.3
ELF    f217d000-f225e000    Deferred        libkrb5.so.3
ELF    f225e000-f22ee000    Deferred        libgmp.so.10
ELF    f22ee000-f2470000    Deferred        libunistring.so.2
ELF    f2470000-f25c8000    Deferred        libp11-kit.so.0
ELF    f25c8000-f25e1000    Deferred        libresolv.so.2
ELF    f2608000-f2635000    Deferred        iphlpapi<elf>
  \-PE    f2610000-f2635000    \               iphlpapi
ELF    f2638000-f263e000    Deferred        libkeyutils.so.1
ELF    f263e000-f2644000    Deferred        libcom_err.so.2
ELF    f2644000-f265e000    Deferred        kerberos<elf>
  \-PE    f2650000-f265e000    \               kerberos
ELF    f267e000-f2688000    Deferred        libffi.so.7
ELF    f2688000-f26c1000    Deferred        libhogweed.so.5
ELF    f26c1000-f2701000    Deferred        libnettle.so.7
ELF    f2701000-f2721000    Deferred        libidn2.so.0
ELF    f2721000-f2921000    Deferred        libgnutls.so.30
ELF    f2921000-f2990000    Deferred        dwrite<elf>
  \-PE    f2930000-f2990000    \               dwrite
ELF    f2f01000-f2f34000    Deferred        netapi32<elf>
  \-PE    f2f10000-f2f34000    \               netapi32
ELF    f2f34000-f2f6c000    Deferred        secur32<elf>
  \-PE    f2f40000-f2f6c000    \               secur32
ELF    f2fe8000-f2fff000    Deferred        libtasn1.so.6
ELF    f544b000-f5458000    Deferred        libpciaccess.so.0
ELF    f5458000-f5477000    Deferred        libgcc_s.so.1
ELF    f5655000-f565f000    Deferred        libdrm_nouveau.so.2
ELF    f565f000-f566f000    Deferred        libdrm_radeon.so.1
ELF    f566f000-f5697000    Deferred        libdrm_intel.so.1
ELF    f5697000-f573e000    Deferred        libzstd.so.1
ELF    f573e000-f65b6000    Deferred        i965_dri.so
ELF    f65b6000-f65bf000    Deferred        libxcb-sync.so.1
ELF    f65bf000-f65c4000    Deferred        libxcb-present.so.0
ELF    f65c4000-f65ca000    Deferred        libxcb-dri3.so.0
ELF    f65ca000-f65cf000    Deferred        libxdamage.so.1
ELF    f65cf000-f65d6000    Deferred        libxcb-dri2.so.0
ELF    f65d6000-f65f5000    Deferred        libxcb-glx.so.0
ELF    f65f5000-f660b000    Deferred        libdrm.so.2
ELF    f660b000-f6634000    Deferred        libglapi.so.0
ELF    f6634000-f66b4000    Deferred        libglx_mesa.so.0
ELF    f66b4000-f66f0000    Deferred        libglx.so.0
ELF    f66f0000-f676d000    Deferred        libgldispatch.so.0
ELF    f676d000-f67da000    Deferred        libgl.so.1
ELF    f6801000-f6819000    Deferred        wtsapi32<elf>
  \-PE    f6810000-f6819000    \               wtsapi32
ELF    f687e000-f68c6000    Deferred        d3d10<elf>
  \-PE    f6880000-f68c6000    \               d3d10
ELF    f68c6000-f6a42000    Deferred        wined3d<elf>
  \-PE    f68e0000-f6a42000    \               wined3d
ELF    f6a42000-f6a7a000    Deferred        dxgi<elf>
  \-PE    f6a50000-f6a7a000    \               dxgi
ELF    f6a7a000-f6aee000    Deferred        d3d11<elf>
  \-PE    f6a80000-f6aee000    \               d3d11
ELF    f6aee000-f6b04000    Deferred        d3d10core<elf>
  \-PE    f6af0000-f6b04000    \               d3d10core
ELF    f6b04000-f6b1a000    Deferred        d3d10_1<elf>
  \-PE    f6b10000-f6b1a000    \               d3d10_1
ELF    f6b1a000-f6b7e000    Deferred        d2d1<elf>
  \-PE    f6b20000-f6b7e000    \               d2d1
ELF    f6b7e000-f6bb6000    Deferred        uxtheme<elf>
  \-PE    f6b80000-f6bb6000    \               uxtheme
ELF    f6bb6000-f6bdc000    Deferred        cabinet<elf>
  \-PE    f6bc0000-f6bdc000    \               cabinet
ELF    f6bdc000-f6c28000    Deferred        usp10<elf>
  \-PE    f6be0000-f6c28000    \               usp10
ELF    f6c28000-f6d7f000    Deferred        comctl32<elf>
  \-PE    f6c30000-f6d7f000    \               comctl32
ELF    f6d7f000-f6db9000    Deferred        ws2_32<elf>
  \-PE    f6d90000-f6db9000    \               ws2_32
ELF    f6db9000-f6de1000    Deferred        mpr<elf>
  \-PE    f6dc0000-f6de1000    \               mpr
ELF    f6de1000-f6e66000    Deferred        wininet<elf>
  \-PE    f6df0000-f6e66000    \               wininet
ELF    f6e66000-f782d000    Deferred        shell32<elf>
  \-PE    f6e80000-f782d000    \               shell32
ELF    f782d000-f78cf000    Deferred        urlmon<elf>
  \-PE    f7840000-f78cf000    \               urlmon
ELF    f78cf000-f7a11000    Deferred        msi<elf>
  \-PE    f78e0000-f7a11000    \               msi
ELF    f7a11000-f7a25000    Deferred        msimg32<elf>
  \-PE    f7a20000-f7a25000    \               msimg32
ELF    f7a25000-f7a39000    Deferred        api-ms-win-crt-environment-l1-1-0<elf>
  \-PE    f7a30000-f7a39000    \               api-ms-win-crt-environment-l1-1-0
ELF    f7a39000-f7a4d000    Deferred        api-ms-win-crt-filesystem-l1-1-0<elf>
  \-PE    f7a40000-f7a4d000    \               api-ms-win-crt-filesystem-l1-1-0
ELF    f7a4d000-f7b80000    Deferred        oleaut32<elf>
  \-PE    f7a60000-f7b80000    \               oleaut32
ELF    f7b8a000-f7b90000    Deferred        libdl.so.2
ELF    f7b90000-f7d7e000    Deferred        libc.so.6
ELF    f7d7e000-f7da1000    Deferred        libpthread.so.0
ELF    f7da6000-f7db0000    Deferred        libuuid.so.1
ELF    f7db1000-f7db4000    Deferred        libxshmfence.so.1
ELF    f7db4000-f7db9000    Deferred        libx11-xcb.so.1
ELF    f7dc8000-f7f81000    Dwarf           libwine.so.1
ELF    f7f83000-f7fb0000    Deferred        ld-linux.so.2
ELF    f7fb3000-f7fb4000    Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files\Microsoft Office\Office16\POWERPNT.EXE
    00000034   15
    00000033    0
    00000032    0
    00000031    0
    00000030    0
    0000002f    0
    0000002e    0
    00000009    0 <==
0000000e services.exe
    00000024    0
    00000021    0
    0000001c    0
    00000018    0
    00000013    0
    00000010    0
    0000000f    0
00000011 winedevice.exe
    00000019    0
    00000017    0
    00000016    0
    00000012    0
0000001a plugplay.exe
    0000001e    0
    0000001d    0
    0000001b    0
0000001f winedevice.exe
    00000028    0
    00000025    0
    00000023    0
    00000022    0
    00000020    0
00000029 explorer.exe
    0000002d    0
    0000002c    0
    0000002b    0
    0000002a    0
System information:
    Wine build: wine-3.21
    Platform: i386
    Version: Windows Server 2008 R2
    Host system: Linux
    Host version: 5.4.0-31-generic

Replies

Meles Wednesday 25 March 2020 at 7:56
Meles Anonymous

Message

Hi there,

sorry, but I'm not very familar whith topics like this, but trying to get Office 2016 to run under ubuntu. I get 'Please install winbind before installing'. Is one of these scripts here working and is there a step-by-step instruction?

Replies

Sunday 5 April 2020 at 9:05
Look at our Wiki
Anonymous
Saturday 12 February 2022 at 11:35
You can open Terminal, then type "sudo apt-get install winbind", type your password, reinstall program and enjoy it.

Edited by Meles

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

Message

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

Replies

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)
Anonymous
Sunday 26 July 2020 at 19:17
Tried this script with Linux Mint 19.3 & POL 4.3.3.  appears to install OK but when I try to run all I get is:

Error in POL_Shortcut
Binary not found: WINWORD.EXE
Have you installed the program to the default location?

Error in POL_Shortcut
Binary not found: EXCEL.EXE
Have you installed the program to the default location?

I'm assuming 'default location' applies to the destination and not the location of the source files (on the DVD)

Annoying!
T800 Tuesday 18 June 2019 at 17:49
T800 Anonymous

Message

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.

Replies

GuerreroAzul Saturday 8 December 2018 at 15:04
GuerreroAzul

Information

This update has been approved by the team.

Message

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

Replies

Anonymous
Sunday 26 July 2020 at 16:14
Have tried this script: Mint 19.3,  MSO 2016 Home & Student,  Wine 3.12 & 4.0, POL 4.3.3 & 4.3.4

All I get is a crash:

Error in main
Microsoft Excel 2016 crashed.
Select its shortcut and click on "Debug" in the side panel to get more details.

The same pc runs Word & Excel 2007 (the only bits I'm interested in) perfectly in POL 4.2, 4.3.3 & 4.3.4 with Wine 4.

Annoying!

Edited by 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

Message

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

Replies

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

Message

devil

Replies

Anonymous
Tuesday 19 July 2022 at 17:11
friendly