Microsoft Office 2007

Informations

Créateur Messages
Quentin PÂRIS Anonymous

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 2083050
Wine: 4.0

Retours d'expérience

Description

These components don't work :

- Microsoft Office Access 2007
- Microsoft Office Groove 2007
- Microsoft Office Outlook 2007

Code source

#!/bin/bash
# Last revision : (2019-11-02)
# Tested : Debian 6.0, Mac OSX
# Author : Tinou
# Script licence : GPLv3
#
# This script is designed for PlayOnLinux and PlayOnMac.
#


# CHANGELOG
# [Tinou] (2011-08-22 20-00)
#   Update for POL/POM 4
# [SuperPlumus] (2013-06-08 17-31)
#   gettext
# [Dadu042] (2019-11-02)
#   POL_RequiredVersion because Wine is not avaiable before POL 4.3.4

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

TITLE="Microsoft Office 2007"
PREFIXNAME="Office2007"

POL_Debug_Init
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com/" "Tinou" "$PREFIXNAME"

POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_System_SetArch "x86"

#Preparation de Wine
POL_Wine_SelectPrefix "$PREFIXNAME"
POL_Wine_PrefixCreate "4.0"
#[rbelo] Let's try Wine 1.6.2
# I never did manage to install any Service Pack with Wine 1.2.3
#POL_Wine_PrefixCreate "1.2.3"

cd "$POL_USER_ROOT/tmp"

POL_SetupWindow_InstallMethod "LOCAL,DVD"

if [ "$INSTALL_METHOD" = "DVD" ]; then
       POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "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_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

POL_Wine_OverrideDLL native,builtin riched20

#CREATION LANCEUR
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2007" "" "" "Office;WordProcessor;"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2007" "" "" "Office;Spreadsheet;"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2007" "" "" "Office;Presentation;"

POL_Extension_Write doc "Microsoft Word 2007"
POL_Extension_Write docx "Microsoft Word 2007"
POL_Extension_Write xls "Microsoft Excel 2007"
POL_Extension_Write xlsx "Microsoft Excel 2007"
POL_Extension_Write ppt "Microsoft Powerpoint 2007"
POL_Extension_Write pptx "Microsoft Powerpoint 2007"

POL_Call POL_Install_riched30

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages
thefirethirteen Samedi 1 Octobre 2022 à 15:27
thefirethirteen

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

Cannot install the SP3 version.

Fixed it by using Wine 7.0

Differences

@@ -1,6 +1,6 @@
 #!/bin/bash
-# Last revision : (2019-11-02)
-# Tested : Debian 6.0, Mac OSX
+# Last revision : (2022-10-01)
+# Tested : Debian 6.0, Mac OSX, Fedora 36
 # Author : Tinou
 # Script licence : GPLv3
 #
@@ -15,6 +15,8 @@
 #   gettext
 # [Dadu042] (2019-11-02)
 #   POL_RequiredVersion because Wine is not avaiable before POL 4.3.4
+# [thefirethirteen] (2022-10-01)
+#   Update to Wine 7.0 so that the installation can start when SP3 patches are present
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
@@ -32,7 +34,7 @@
 
 #Preparation de Wine
 POL_Wine_SelectPrefix "$PREFIXNAME"
-POL_Wine_PrefixCreate "4.0"
+POL_Wine_PrefixCreate "7.0"
 #[rbelo] Let's try Wine 1.6.2
 # I never did manage to install any Service Pack with Wine 1.2.3
 #POL_Wine_PrefixCreate "1.2.3"

Nouveau code source

#!/bin/bash
# Last revision : (2022-10-01)
# Tested : Debian 6.0, Mac OSX, Fedora 36
# Author : Tinou
# Script licence : GPLv3
#
# This script is designed for PlayOnLinux and PlayOnMac.
#


# CHANGELOG
# [Tinou] (2011-08-22 20-00)
#   Update for POL/POM 4
# [SuperPlumus] (2013-06-08 17-31)
#   gettext
# [Dadu042] (2019-11-02)
#   POL_RequiredVersion because Wine is not avaiable before POL 4.3.4
# [thefirethirteen] (2022-10-01)
#   Update to Wine 7.0 so that the installation can start when SP3 patches are present

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

TITLE="Microsoft Office 2007"
PREFIXNAME="Office2007"

POL_Debug_Init
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com/" "Tinou" "$PREFIXNAME"

POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_System_SetArch "x86"

#Preparation de Wine
POL_Wine_SelectPrefix "$PREFIXNAME"
POL_Wine_PrefixCreate "7.0"
#[rbelo] Let's try Wine 1.6.2
# I never did manage to install any Service Pack with Wine 1.2.3
#POL_Wine_PrefixCreate "1.2.3"

cd "$POL_USER_ROOT/tmp"

POL_SetupWindow_InstallMethod "LOCAL,DVD"

if [ "$INSTALL_METHOD" = "DVD" ]; then
       POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "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_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

POL_Wine_OverrideDLL native,builtin riched20

#CREATION LANCEUR
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2007" "" "" "Office;WordProcessor;"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2007" "" "" "Office;Spreadsheet;"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2007" "" "" "Office;Presentation;"

POL_Extension_Write doc "Microsoft Word 2007"
POL_Extension_Write docx "Microsoft Word 2007"
POL_Extension_Write xls "Microsoft Excel 2007"
POL_Extension_Write xlsx "Microsoft Excel 2007"
POL_Extension_Write ppt "Microsoft Powerpoint 2007"
POL_Extension_Write pptx "Microsoft Powerpoint 2007"

POL_Call POL_Install_riched30

POL_SetupWindow_Close
exit

Réponses

ScienceGamer Mercredi 27 Mai 2020 à 18:55
ScienceGamer Anonymous

Messages

The only thing that does not work and can be improved as far as I know is switching between multiple windows. I noticed this when I rendered consolidation of multiple files.
 

Réponses

Dadu042 Dimanche 3 Novembre 2019 à 0:20
Dadu042

Information

Cette mise à jour a été acceptée par l'équipe

Differences

@@ -1,5 +1,5 @@
 #!/bin/bash
-# Last revision : (2013-06-08 17-31)
+# Last revision : (2019-11-02)
 # Tested : Debian 6.0, Mac OSX
 # Author : Tinou
 # Script licence : GPLv3
@@ -13,6 +13,8 @@
 #   Update for POL/POM 4
 # [SuperPlumus] (2013-06-08 17-31)
 #   gettext
+# [Dadu042] (2019-11-02)
+#   POL_RequiredVersion because Wine is not avaiable before POL 4.3.4
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
@@ -24,6 +26,8 @@
 POL_SetupWindow_Init
 POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com/" "Tinou" "$PREFIXNAME"
 
+POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+
 POL_System_SetArch "x86"
 
 #Preparation de Wine

Nouveau code source

#!/bin/bash
# Last revision : (2019-11-02)
# Tested : Debian 6.0, Mac OSX
# Author : Tinou
# Script licence : GPLv3
#
# This script is designed for PlayOnLinux and PlayOnMac.
#


# CHANGELOG
# [Tinou] (2011-08-22 20-00)
#   Update for POL/POM 4
# [SuperPlumus] (2013-06-08 17-31)
#   gettext
# [Dadu042] (2019-11-02)
#   POL_RequiredVersion because Wine is not avaiable before POL 4.3.4

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

TITLE="Microsoft Office 2007"
PREFIXNAME="Office2007"

POL_Debug_Init
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com/" "Tinou" "$PREFIXNAME"

POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

POL_System_SetArch "x86"

#Preparation de Wine
POL_Wine_SelectPrefix "$PREFIXNAME"
POL_Wine_PrefixCreate "4.0"
#[rbelo] Let's try Wine 1.6.2
# I never did manage to install any Service Pack with Wine 1.2.3
#POL_Wine_PrefixCreate "1.2.3"

cd "$POL_USER_ROOT/tmp"

POL_SetupWindow_InstallMethod "LOCAL,DVD"

if [ "$INSTALL_METHOD" = "DVD" ]; then
       POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "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_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

POL_Wine_OverrideDLL native,builtin riched20

#CREATION LANCEUR
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2007" "" "" "Office;WordProcessor;"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2007" "" "" "Office;Spreadsheet;"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2007" "" "" "Office;Presentation;"

POL_Extension_Write doc "Microsoft Word 2007"
POL_Extension_Write docx "Microsoft Word 2007"
POL_Extension_Write xls "Microsoft Excel 2007"
POL_Extension_Write xlsx "Microsoft Excel 2007"
POL_Extension_Write ppt "Microsoft Powerpoint 2007"
POL_Extension_Write pptx "Microsoft Powerpoint 2007"

POL_Call POL_Install_riched30

POL_SetupWindow_Close
exit

Réponses

FatHard Jeudi 9 Mai 2019 à 23:36
FatHard Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

Option to select the .exe install file
Add icons in your application launcher, in the Office category
Fixed bug that happens to some users when trying to open files directly

Differences

@@ -35,18 +35,36 @@
 
 cd "$POL_USER_ROOT/tmp"
 
-POL_SetupWindow_cdrom
-POL_SetupWindow_check_cdrom "setup.exe"
+POL_SetupWindow_InstallMethod "LOCAL,DVD"
+
+if [ "$INSTALL_METHOD" = "DVD" ]; then
+       POL_SetupWindow_cdrom
+        POL_SetupWindow_check_cdrom "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_Wine_WaitBefore "$TITLE"
-POL_Wine "$CDROM/setup.exe"
+POL_Wine "$SetupIs"
+POL_Wine_WaitExit "$TITLE"
 
 POL_Wine_OverrideDLL native,builtin riched20
 
 #CREATION LANCEUR
-POL_Shortcut "WINWORD.EXE" "Microsoft Word 2007"
-POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2007"
-POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2007"
+POL_Shortcut "WINWORD.EXE" "Microsoft Word 2007" "" "" "Office;WordProcessor;"
+POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2007" "" "" "Office;Spreadsheet;"
+POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2007" "" "" "Office;Presentation;"
+
+POL_Extension_Write doc "Microsoft Word 2007"
+POL_Extension_Write docx "Microsoft Word 2007"
+POL_Extension_Write xls "Microsoft Excel 2007"
+POL_Extension_Write xlsx "Microsoft Excel 2007"
+POL_Extension_Write ppt "Microsoft Powerpoint 2007"
+POL_Extension_Write pptx "Microsoft Powerpoint 2007"
 
 POL_Call POL_Install_riched30
 

Nouveau code source

#!/bin/bash
# Last revision : (2013-06-08 17-31)
# Tested : Debian 6.0, Mac OSX
# Author : Tinou
# Script licence : GPLv3
#
# This script is designed for PlayOnLinux and PlayOnMac.
#


# CHANGELOG
# [Tinou] (2011-08-22 20-00)
#   Update for POL/POM 4
# [SuperPlumus] (2013-06-08 17-31)
#   gettext

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

TITLE="Microsoft Office 2007"
PREFIXNAME="Office2007"

POL_Debug_Init
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com/" "Tinou" "$PREFIXNAME"

POL_System_SetArch "x86"

#Preparation de Wine
POL_Wine_SelectPrefix "$PREFIXNAME"
POL_Wine_PrefixCreate "4.0"
#[rbelo] Let's try Wine 1.6.2
# I never did manage to install any Service Pack with Wine 1.2.3
#POL_Wine_PrefixCreate "1.2.3"

cd "$POL_USER_ROOT/tmp"

POL_SetupWindow_InstallMethod "LOCAL,DVD"

if [ "$INSTALL_METHOD" = "DVD" ]; then
       POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "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_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"

POL_Wine_OverrideDLL native,builtin riched20

#CREATION LANCEUR
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2007" "" "" "Office;WordProcessor;"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2007" "" "" "Office;Spreadsheet;"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2007" "" "" "Office;Presentation;"

POL_Extension_Write doc "Microsoft Word 2007"
POL_Extension_Write docx "Microsoft Word 2007"
POL_Extension_Write xls "Microsoft Excel 2007"
POL_Extension_Write xlsx "Microsoft Excel 2007"
POL_Extension_Write ppt "Microsoft Powerpoint 2007"
POL_Extension_Write pptx "Microsoft Powerpoint 2007"

POL_Call POL_Install_riched30

POL_SetupWindow_Close
exit

Réponses

Dimanche 3 Novembre 2019 à 0:17
Approved.

Edité par FatHard

Quentin PÂRIS Mardi 12 Février 2019 à 22:16
Quentin PÂRIS Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -28,7 +28,7 @@
 
 #Preparation de Wine
 POL_Wine_SelectPrefix "$PREFIXNAME"
-POL_Wine_PrefixCreate "1.6.2"
+POL_Wine_PrefixCreate "4.0"
 #[rbelo] Let's try Wine 1.6.2
 # I never did manage to install any Service Pack with Wine 1.2.3
 #POL_Wine_PrefixCreate "1.2.3"

Nouveau code source

#!/bin/bash
# Last revision : (2013-06-08 17-31)
# Tested : Debian 6.0, Mac OSX
# Author : Tinou
# Script licence : GPLv3
#
# This script is designed for PlayOnLinux and PlayOnMac.
#


# CHANGELOG
# [Tinou] (2011-08-22 20-00)
#   Update for POL/POM 4
# [SuperPlumus] (2013-06-08 17-31)
#   gettext

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

TITLE="Microsoft Office 2007"
PREFIXNAME="Office2007"

POL_Debug_Init
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com/" "Tinou" "$PREFIXNAME"

POL_System_SetArch "x86"

#Preparation de Wine
POL_Wine_SelectPrefix "$PREFIXNAME"
POL_Wine_PrefixCreate "4.0"
#[rbelo] Let's try Wine 1.6.2
# I never did manage to install any Service Pack with Wine 1.2.3
#POL_Wine_PrefixCreate "1.2.3"

cd "$POL_USER_ROOT/tmp"

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

POL_Wine_WaitBefore "$TITLE"
POL_Wine "$CDROM/setup.exe"

POL_Wine_OverrideDLL native,builtin riched20

#CREATION LANCEUR
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2007"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2007"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2007"

POL_Call POL_Install_riched30

POL_SetupWindow_Close
exit

Réponses

Anonymous
Jeudi 13 Juin 2019 à 13:04
I don't know how to use this source code? Can anyone help? I can not install OFFICE 2007 on PlayonLinux 4.2.12 / UBUNTU 18.04. Please help.
Anonymous
Jeudi 13 Juin 2019 à 13:15
ERROR
Anonymous
Jeudi 13 Juin 2019 à 13:16
Error in POL_Wine_InstallVersion
Unable to find version: 4.0
pmorch Dimanche 7 Octobre 2018 à 17:20
pmorch Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

I've updated the installer.

It should:

  • Install MS Office 2007 also on Ubuntu 18.04 (which the original official version doesn't).
  • Install .desktop files that integrate with the installed applications list and right-click/properties so e.g. .doc(x) files can be opened with MS Word without too much hassle.
  • Copy in the required fonts for word, so that smilies and bullet lists work out of the box.

It can also be found as on github as pmorch/PlayOnLinux-MSOffice2007.

 

Differences

@@ -1,14 +1,19 @@
 #!/bin/bash
-# Last revision : (2013-06-08 17-31)
-# Tested : Debian 6.0, Mac OSX
-# Author : Tinou
+# Last revision : (2018-06-25)
+# Tested : Xubuntu 18.04
+# Author : Pmorch
 # Script licence : GPLv3
 #
 # This script is designed for PlayOnLinux and PlayOnMac.
-#
-
 
 # CHANGELOG
+# [Pmorch] (2011-08-26)
+#   Update wine version to 3.11 to make it work in Xubuntu 18.04
+#   Backported several features from similar MS Office 2010 source code
+#   Installed fonts for bullets and smileys
+#   Link to winehq issue about riched20
+#   Added categories to POL_Shortcut (so the shortcuts get added to
+#       .local/share/applications/*.desktop also)
 # [Tinou] (2011-08-22 20-00)
 #   Update for POL/POM 4
 # [SuperPlumus] (2013-06-08 17-31)
@@ -17,38 +22,100 @@
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
+AUTHOR=Pmorch
 TITLE="Microsoft Office 2007"
 PREFIXNAME="Office2007"
+WINE_VERSION="3.11"
 
 POL_Debug_Init
 POL_SetupWindow_Init
-POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com/" "Tinou" "$PREFIXNAME"
+
+# This doesn't do anything in 4.2.12. See
+# https://www.playonlinux.com/en/topic-15931.html
+POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com/" "$AUTHOR" "$PREFIXNAME"
 
 POL_System_SetArch "x86"
 
-#Preparation de Wine
+# Preparation of Wine
 POL_Wine_SelectPrefix "$PREFIXNAME"
-POL_Wine_PrefixCreate "1.6.2"
-#[rbelo] Let's try Wine 1.6.2
-# I never did manage to install any Service Pack with Wine 1.2.3
-#POL_Wine_PrefixCreate "1.2.3"
+POL_Wine_PrefixCreate "$WINE_VERSION"
 
 cd "$POL_USER_ROOT/tmp"
 
+# Making bulletslook right
+POL_Wine_InstallFonts
+
+# Making e.g. smileys look right
+# Is this the right way to do it? See
+# https://www.playonlinux.com/en/topic-15929.html
+function copyExtraFonts() {
+    FONTSURL=https://github.com/IamDH4/ttf-wps-fonts/archive/master.zip
+    FONTSZIP=ttf-wps-fonts-master.zip
+    FONTSDIR=ttf-wps-fonts-master
+
+    if [ "$WINEPREFIX" = "" ] ; then
+        POL_SetupWindow_message "How could there not be a WINEPREFIX: '$WINEPREFIX' - exiting" "$TITLE"
+        exit 1;
+    fi
+
+    FONTSDESTINATION="$WINEPREFIX/drive_c/windows/Fonts"
+
+    if [ ! -d $FONTSDESTINATION ] ; then
+        POL_SetupWindow_message "How could there not be a Fonts directory: '$FONTSDESTINATION' - exiting" "$TITLE"
+        exit 1;
+    fi
+
+    if ! command -v unzip > /dev/null || \
+       ! command -v wget > /dev/null ; then
+        POL_SetupWindow_message "unzip and/or wget are not installed - not installing extra fonts" "$TITLE"
+        return
+    fi
+
+    if [ ! -d $PREFIXFONTSDIR ] ; then
+        POL_SetupWindow_message "'$PREFIXFONTSDIR' didn't exist - not installing extra fonts" "$TITLE"
+        return
+    fi
+
+    wget -O $FONTSZIP $FONTSURL
+    unzip $FONTSZIP
+    for f in symbol.ttf wingding.ttf WEBDINGS.TTF ; do
+        echo Copying $f to $FONTSDESTINATION
+        cp $FONTSDIR/$f $FONTSDESTINATION
+    done
+
+    rm -rf $FONTSZIP $FONTSDIR
+}
+
+copyExtraFonts
+
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "setup.exe"
 
 POL_Wine_WaitBefore "$TITLE"
 POL_Wine "$CDROM/setup.exe"
 
+# See http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555
 POL_Wine_OverrideDLL native,builtin riched20
 
-#CREATION LANCEUR
-POL_Shortcut "WINWORD.EXE" "Microsoft Word 2007"
-POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2007"
-POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2007"
+# Creation of shortcuts
+POL_Shortcut "WINWORD.EXE" "Microsoft Word 2007" "" "" "Office;WordProcessor;"
+POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2007" "" "" "Office;Spreadsheet;"
+POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2007" "" "" "Office;Presentation;"
 
-POL_Call POL_Install_riched30
+# These don't seem to do anything
+# https://www.playonlinux.com/en/topic-15928.html
+#
+# POL_Extension_Write doc "Microsoft Word 2007"
+# POL_Extension_Write docx "Microsoft Word 2007"
+# POL_Extension_Write xls "Microsoft Excel 2007"
+# POL_Extension_Write xlsx "Microsoft Excel 2007"
+# POL_Extension_Write ppt "Microsoft Powerpoint 2007"
+# POL_Extension_Write pptx "Microsoft Powerpoint 2007"
+
+# I think this has something to do with the dialog box for entering initials
+# only works for Word and Powerpoint, but I'm not sure. Excel doesn't start
+# unless Word or Powerpoint has been started first.
+POL_SetupWindow_message "MS Office 2017 has been installed. NOTE: start Word or Powerpoint first, not Excel" "$TITLE"
 
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit

Nouveau code source

#!/bin/bash
# Last revision : (2018-06-25)
# Tested : Xubuntu 18.04
# Author : Pmorch
# Script licence : GPLv3
#
# This script is designed for PlayOnLinux and PlayOnMac.

# CHANGELOG
# [Pmorch] (2011-08-26)
#   Update wine version to 3.11 to make it work in Xubuntu 18.04
#   Backported several features from similar MS Office 2010 source code
#   Installed fonts for bullets and smileys
#   Link to winehq issue about riched20
#   Added categories to POL_Shortcut (so the shortcuts get added to
#       .local/share/applications/*.desktop also)
# [Tinou] (2011-08-22 20-00)
#   Update for POL/POM 4
# [SuperPlumus] (2013-06-08 17-31)
#   gettext

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

AUTHOR=Pmorch
TITLE="Microsoft Office 2007"
PREFIXNAME="Office2007"
WINE_VERSION="3.11"

POL_Debug_Init
POL_SetupWindow_Init

# This doesn't do anything in 4.2.12. See
# https://www.playonlinux.com/en/topic-15931.html
POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com/" "$AUTHOR" "$PREFIXNAME"

POL_System_SetArch "x86"

# Preparation of Wine
POL_Wine_SelectPrefix "$PREFIXNAME"
POL_Wine_PrefixCreate "$WINE_VERSION"

cd "$POL_USER_ROOT/tmp"

# Making bulletslook right
POL_Wine_InstallFonts

# Making e.g. smileys look right
# Is this the right way to do it? See
# https://www.playonlinux.com/en/topic-15929.html
function copyExtraFonts() {
    FONTSURL=https://github.com/IamDH4/ttf-wps-fonts/archive/master.zip
    FONTSZIP=ttf-wps-fonts-master.zip
    FONTSDIR=ttf-wps-fonts-master

    if [ "$WINEPREFIX" = "" ] ; then
        POL_SetupWindow_message "How could there not be a WINEPREFIX: '$WINEPREFIX' - exiting" "$TITLE"
        exit 1;
    fi

    FONTSDESTINATION="$WINEPREFIX/drive_c/windows/Fonts"

    if [ ! -d $FONTSDESTINATION ] ; then
        POL_SetupWindow_message "How could there not be a Fonts directory: '$FONTSDESTINATION' - exiting" "$TITLE"
        exit 1;
    fi

    if ! command -v unzip > /dev/null || \
       ! command -v wget > /dev/null ; then
        POL_SetupWindow_message "unzip and/or wget are not installed - not installing extra fonts" "$TITLE"
        return
    fi

    if [ ! -d $PREFIXFONTSDIR ] ; then
        POL_SetupWindow_message "'$PREFIXFONTSDIR' didn't exist - not installing extra fonts" "$TITLE"
        return
    fi

    wget -O $FONTSZIP $FONTSURL
    unzip $FONTSZIP
    for f in symbol.ttf wingding.ttf WEBDINGS.TTF ; do
        echo Copying $f to $FONTSDESTINATION
        cp $FONTSDIR/$f $FONTSDESTINATION
    done

    rm -rf $FONTSZIP $FONTSDIR
}

copyExtraFonts

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

POL_Wine_WaitBefore "$TITLE"
POL_Wine "$CDROM/setup.exe"

# See http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555
POL_Wine_OverrideDLL native,builtin riched20

# Creation of shortcuts
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2007" "" "" "Office;WordProcessor;"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2007" "" "" "Office;Spreadsheet;"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2007" "" "" "Office;Presentation;"

# These don't seem to do anything
# https://www.playonlinux.com/en/topic-15928.html
#
# POL_Extension_Write doc "Microsoft Word 2007"
# POL_Extension_Write docx "Microsoft Word 2007"
# POL_Extension_Write xls "Microsoft Excel 2007"
# POL_Extension_Write xlsx "Microsoft Excel 2007"
# POL_Extension_Write ppt "Microsoft Powerpoint 2007"
# POL_Extension_Write pptx "Microsoft Powerpoint 2007"

# I think this has something to do with the dialog box for entering initials
# only works for Word and Powerpoint, but I'm not sure. Excel doesn't start
# unless Word or Powerpoint has been started first.
POL_SetupWindow_message "MS Office 2017 has been installed. NOTE: start Word or Powerpoint first, not Excel" "$TITLE"

POL_SetupWindow_Close
exit

Réponses

MDMilkMan Lundi 17 September 2018 à 5:50
MDMilkMan Anonymous

Messages

I have recently installed playonlinux on Fedora 28 and tried to install my Microsoft Office 2007 but I keep getting errors from wine that I can not pull up and I am missing some fonts that I can not seem to find anywhere. Office installs right but will not boot and I can not watch the installation of office. My version of Office 2007 is configured to self install when launched not sure if that makes a difference. I have not found a work around that works so far and would really prefer not to have to pay for Crossover

Réponses

gdesilva Jeudi 21 Juin 2018 à 14:35
gdesilva Anonymous

Messages

I have been using MSOffice 2007 with POL on Ubuntu Studio 16.04 without any issues (Word, Excel and Ppt). Recently upgraded to Ubuntu Studio 18.04 and tried to install MS Office via POL. Selected Office from the list and noticed that it was defaulting to wine 1.6.2 but the installation was problematic - screens without any contents etc.

Then I used the 'Instal unlisted program' option and picked the wine system version ( which I understand is version 3 ) and the installation went off without any problems.

I can use Word and Excel without any issues but Powerpoint fails to start with an error

[06/21/18 22:33:34] - Running wine- POWERPNT.EXE (Working directory : /home/guptila/.PlayOnLinux/wineprefix/MSOffice2007/drive_c/Program Files/Microsoft Office/Office12)
0009:err:eventlog:ReportEventW L"Microsoft Office PowerPoint"
0009:err:eventlog:ReportEventW L"PowerPoint failed to start correctly last time.  Starting PowerPoint in safe mode will help you correct or isolate a startup problem in order to successfully start the0009:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111
0009:err:ole:CoGetClassObject no class object {c1ee01f2-b3b6-4a6a-9ddd-e988c088ec82} could be created for context 0x1
0009:err:mscoree:CLRRuntimeInfo_GetRuntimeDirectory error reading registry key for installroot

 

 

Réponses

Anonymous
Vendredi 21 September 2018 à 3:17
Exact same issue over here, have you found a solution?
pskhub Dimanche 12 Mars 2017 à 21:33
pskhub Anonymous

Messages

Hello,

      It was very easy to install Microsoft Office 2007. One of the issues that I faced was making microsoft word and excel as default programs when opening files. I was able to solve the problem using a terminal command found on an ubuntu forum. I just wish to ask if the command can be included in the original installation script so that all word excel files are opened by default in MS Word/Excel.

Thanks & regards

Réponses

amas Vendredi 24 Février 2017 à 11:46
amas Anonymous

Messages

Works very good w/ wine 1.6.2.

Also VISIO is fine.

Much faster program startup than Office 2010, which also works very well.

Réponses

EruIluvatar Samedi 21 Janvier 2017 à 16:16
EruIluvatar Anonymous

Messages

Installation was no hassle, SP3 can be installed easily via Configure -> Run .exe.

However all the programs could not find any printers from Cups on Ubuntu 16.04.

This can be solved by using a new Wine version, 1.9.x went fine for me.

Maybe we can fix this upstream?

Réponses

whYMe Mardi 9 Aoüt 2016 à 4:39
whYMe Anonymous

Messages

May be it's an old Office version by now and no change in this script since longtime but let me give some feedback.

it installed fine with an error in downloading windows XP SP3 "windowsxp-kb936929-sp3-x86-enu_c81472f7eeea2eca421e116cd4c03e2300ebfde4.exe" from windowsupdate server, which always fail.

I suggest to use different server for same file like majorgeeks.com for example.

also if installing IE8 optional windows components, MS Publisher 2007 works.

Réponses

rbelo Mardi 28 Octobre 2014 à 1:08
rbelo Anonymous

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

... however, I was never able to install any Service Pack after Office 2007 instalation. I did manage to create a ISO with SP3 integrated and, using the "Install a non-listed program" option, I used the latest stable 32 bit WINE version (1.6.2, to date). Up 'till now, just by changing the WINE version, I managed to successfully install Office 2007 AND Service Pack 3 AND  pt-pt Language Pack in 4 diferent PCs. And even Excel macros are up and runnin'...

Wouldn't it be possible to update this script so as to install WINE ver. 1.6.2, or, at the very least, to give the user a choice as to which WINE version he/she wants to install?

Sorry if this question is a bit lame, but I'm an absolute noobie in Linux and PoL.


More importantly,  keep up with the good work, Quentin Pâris!!! laugh

Differences

@@ -28,7 +28,10 @@
 
 #Preparation de Wine
 POL_Wine_SelectPrefix "$PREFIXNAME"
-POL_Wine_PrefixCreate "1.2.3"
+POL_Wine_PrefixCreate "1.6.2"
+#[rbelo] Let's try Wine 1.6.2
+# I never did manage to install any Service Pack with Wine 1.2.3
+#POL_Wine_PrefixCreate "1.2.3"
 
 cd "$POL_USER_ROOT/tmp"
 

Nouveau code source

#!/bin/bash
# Last revision : (2013-06-08 17-31)
# Tested : Debian 6.0, Mac OSX
# Author : Tinou
# Script licence : GPLv3
#
# This script is designed for PlayOnLinux and PlayOnMac.
#


# CHANGELOG
# [Tinou] (2011-08-22 20-00)
#   Update for POL/POM 4
# [SuperPlumus] (2013-06-08 17-31)
#   gettext

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

TITLE="Microsoft Office 2007"
PREFIXNAME="Office2007"

POL_Debug_Init
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com/" "Tinou" "$PREFIXNAME"

POL_System_SetArch "x86"

#Preparation de Wine
POL_Wine_SelectPrefix "$PREFIXNAME"
POL_Wine_PrefixCreate "1.6.2"
#[rbelo] Let's try Wine 1.6.2
# I never did manage to install any Service Pack with Wine 1.2.3
#POL_Wine_PrefixCreate "1.2.3"

cd "$POL_USER_ROOT/tmp"

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

POL_Wine_WaitBefore "$TITLE"
POL_Wine "$CDROM/setup.exe"

POL_Wine_OverrideDLL native,builtin riched20

#CREATION LANCEUR
POL_Shortcut "WINWORD.EXE" "Microsoft Word 2007"
POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2007"
POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2007"

POL_Call POL_Install_riched30

POL_SetupWindow_Close
exit

Réponses

Anonymous
Samedi 1 Novembre 2014 à 5:04
If you want a different Wine version, you can set this up yourself easily in the configuration options. It doesn't ask you what Wine version to use because PlayOnLinux is aimed towards end users who may not have such knowledge of Wine. Perhaps with a little bit of testing this script can be updated to Wine 1.7.30.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com