The forum

[SCRIPT] Adobe Photoshop CS6

Author Replies
Ruzmat Tuesday 7 October 2014 at 13:41
RuzmatAnonymous

Hello.

I've done a script to install photoshop CS 6 (not the master collection, only photoshop)

 

#!/bin/bash
# Date : (2014-10-07 14-00)
# Last revision : (2014-10-07 14-00)
# Wine version used : 1.7.0
# Distribution used to test : Ubuntu 14.04 x86_64
# Author : Ruzmat

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

TITLE="Photoshop CS6"
PREFIX="Photoshop"

POL_SetupWindow_Init
 
POL_SetupWindow_presentation "$TITLE" "Photoshop" "http://www.adobe.com/" "Ruzmat" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.0"
 
POL_System_TmpCreate "$PREFIX"

POL_Call POL_Install_atmlib
POL_Call POL_Install_gdiplus
POL_Call POL_Install_ie6
POL_Call POL_Install_vcrun2005
POL_Call POL_Install_vcrun2008
POL_Call POL_Function_FontsSmoothRGB
POL_Call POL_Install_corefonts
POL_Call POL_Install_msxml3
POL_Call POL_Install_msxml6
POL_Call POL_Install_vcrun2010

POL_SetupWindow_InstallMethod "LOCAL"
 
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "Please select the installation file to run." "Photoshop CS6 installation"
    POL_SetupWindow_wait "Installation in progress." "Photoshop CS6 installation"
    POL_Wine start /unix "$APP_ANSWER"
fi
 
POL_System_TmpDelete
 
POL_Shortcut "Photoshop.exe" "$TITLE"
 
POL_SetupWindow_Close
exit

 

petch Tuesday 7 October 2014 at 21:09
petch

Hi,

Let's go for the script review,

PREFIX="Photoshop"
 

To avoid any possible collision, better pick a more specific PREFIX, PhotoshopCS6 or something

POL_System_TmpCreate "$PREFIX"
POL_System_TmpDelete

If you don't use the temporary directory, remove those statements; For scripts maintenance, the simpler the better.

POL_SetupWindow_InstallMethod "LOCAL"
  
if [ "$INSTALL_METHOD" = "LOCAL" ]
then

Same thing, until you support more than one installation method, it's probably best to drop the extra complexity

    POL_SetupWindow_browse "Please select the installation file to run." "Photoshop CS6 installation"
All user oriented messages should support the localization support (http://www.playonmac.com/en/dev-documentation-10.html).
    POL_SetupWindow_wait "Installation in progress." "Photoshop CS6 installation"
For a standard waiting message just use POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$APP_ANSWER"
start /unix is usually unnecessary and has the side effect that the execution of the program becomes asysnchronous (the script doesn't wait for the execution to finish to continue). See if the script works without start /unix.
By the way in this script, are you sure POL_Shortcut is not attempted before the installation is completed? That'd be strange if it works as-is.
 
Regards,
Pierre.
Ronin DUSETTE Saturday 25 October 2014 at 18:17
Ronin DUSETTE

I literally just wrote this. lol.

http://www.playonmac.com/en/app-2316-Adobe_Photoshop_CS6.html


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts

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