Advertisement
Guest User

Office 2013 POL InstallScript Modified for Linux

a guest
Nov 28th, 2015
16,722
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.91 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # CHANGELOG
  4. # [Quentin PÂRIS] (2015-11-26 22-01)
  5. # Initial version
  6. # minorly modified Version by overflyer87
  7. # (NOT CREDIT WORTHY, JUST TRYING TO HELP REGULAR USERS DYING FOR OFFICE 2013)
  8.  
  9. [ "$PLAYONLINUX" = "" ] && exit 0
  10. source "$PLAYONLINUX/lib/sources"
  11.  
  12. PREFIX="Office2013"
  13. WINEVERSION="1.8-rc1-staging"
  14. TITLE="Microsoft Office 2013"
  15.  
  16. POL_GetSetupImages "http://files.playonlinux.com/resources/setups/Office/top.jpg" "http://files.playonlinux.com/resources/setups/Office/left.png" "$TITLE"
  17.  
  18. POL_SetupWindow_Init
  19.  
  20. POL_SetupWindow_presentation "$TITLE" "Microsoft" "http://www.microsoft.com" "Quentin PÂRIS" "$PREFIX"
  21.  
  22. POL_RequiredVersion 4.0.18 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update"
  23.  
  24. if [ "$POL_OS" = "Linux" ]; then
  25.         wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE"
  26. fi
  27. POL_Debug_Init
  28. POL_System_SetArch "x86"
  29.  
  30.  
  31. POL_SetupWindow_InstallMethod "LOCAL"
  32.  
  33. POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
  34. SetupIs="$APP_ANSWER"
  35.  
  36.  
  37. POL_Wine_SelectPrefix "$PREFIX"
  38. POL_Wine_PrefixCreate "$WINEVERSION"
  39.  
  40. Set_OS "win7"
  41.  
  42. POL_Wine_WaitBefore "$TITLE"
  43. [ "$CDROM" ] && cd "$CDROM"
  44.  
  45. if [ ! "$(file $SetupIs | grep 'x86-64')" = "" ]; then
  46.     POL_Debug_Fatal "$(eval_gettext "The 64bits version is not compatible! Sorry")";
  47. fi
  48. POL_Wine "$SetupIs"
  49. POL_Wine_WaitExit "$TITLE"
  50.  
  51. # See http://forum.winehq.org/viewtopic.php?f=8&t=23126&p=95555#p95555
  52. POL_Wine_OverrideDLL "native,builtin" "riched20"
  53.  
  54. # Fix a crash when loading a file
  55. # This line was now calling POL_Call POL_Install_msxml6 which always failed since msxml6.dll is already present in
  56. # even freshly created wineprefix and the question of if that file should be deleted and answered with n or y
  57. # always results in crash of this Install function of POL. Install msxml6 manually via POL.
  58.  
  59. POL_Shortcut "WINWORD.EXE" "Microsoft Word 2013" "" "" "Office;WordProcessor;"
  60. POL_Shortcut "EXCEL.EXE" "Microsoft Excel 2013" "" "" "Office;Spreadsheet;"
  61. POL_Shortcut "POWERPNT.EXE" "Microsoft Powerpoint 2013" "" "" "Office;Presentation;"
  62. POL_Shortcut "ONENOTE.EXE" "Microsoft OneNote 2013" "" "" "Network;InstantMessaging;" # No category for collaborative work?
  63. POL_Shortcut "OUTLOOK.EXE" "Microsoft Outlook 2013" "" "" "Network;Email;" # Calendar;ContactManagement; ? :p
  64.  
  65. POL_Extension_Write doc "Microsoft Word 2013"
  66. POL_Extension_Write docx "Microsoft Word 2013"
  67. POL_Extension_Write xls "Microsoft Excel 2013"
  68. POL_Extension_Write xlsx "Microsoft Excel 2013"
  69. POL_Extension_Write ppt "Microsoft Powerpoint 2013"
  70. POL_Extension_Write pptx "Microsoft Powerpoint 2013"
  71.  
  72. 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"
  73. POL_SetupWindow_Close
  74. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement