WarpPLS is software helping analysis quantitative data (questionnaire, survey) on PLS-based structural equation modeling (SEM) on statistical science.
However, the author of WarpPLS (NedKock) have been developed it on Windows, doesn't supported MacOS. Therefore, I wrote the script to help someone (doctoral student, researchers, ...) who would like to make install easy on Mac.
This script use version 7 beta.
Wine version: 3.0.3 (x86)
Distribution: MacOS Mojave
Distribution Version: 10.14
Comments:
Before install, I recommend installation XQuartz and Win Mono at outside playonmac because XQuazt will help WarpPLS running data and create 2D and 3D graphic vectors. Moreover, I put direct link from his website on script that users know link offical.
Known issues
Does not work with Wine 4.0.3 & 5.0
Screenshots



 
#!/bin/bash
# Date : (2020-01-27)
# Distribution used to test : MacOS Mojave 10.14
# Author : DaoDuyTung
# PlayOnMac: 3.0.3
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="WarpPLS_7b"
PREFIX="TungDaoWarpPLS"
WORKING_WINE_VERSION="3.0.3"
OSVERSION="win10"
EDITOR="NedKock"
WEB_URL="http://www.warppls.com"
DOWNLOADURL="http://cits.tamiu.edu/WarpPLS/WarpPLS70SetupMCRSw.exe"
SETUPFILE="WarpPLS70SetupMCRSw.exe"
SHORTCUTFILENAME="WarpPLS_7_0.exe"
AUTHOR="DaoDuyTung"
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$WEB_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_System_TmpCreate "$PREFIX"
POL_Call POL_Install_msxml6
POL_Call POL_Install_corefonts
POL_Call POL_Install_dotnet20
POL_Call POL_Install_dotnet35
POL_Call POL_Install_dotnet40
POL_Call POL_Install_gecko
 
cd "$POL_System_TmpDir"
 
if [ "$POL_SELECTED_FILE" ]; then
    SetupFile="$POL_SELECTED_FILE"
else
    POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
    if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
    then
        POL_Download "$DOWNLOADURL" "56c6e58954fa48758e654697347ea513"
        SetupFile="$POL_System_TmpDir/$SETUPFILE"
    elif [ "$INSTALL_METHOD" = "LOCAL" ]
    then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SetupFile="$APP_ANSWER"
    fi
fi
# Installation
Set_OS "$OSVERSION"
 
POL_SetupWindow_message "The installer for $TITLE will now appear"
POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupFile"
POL_Wine_WaitExit "$TITLE"
 
POL_System_TmpDelete
 
POL_Shortcut "$SHORTCUTFILENAME" "$TITLE"
 
POL_SetupWindow_Close
exit 0
                            Edité par tungdao