This script is for installing Photoscape 32 bit
[code language=playonlinux]
#!/bin/bash
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: 1.7.31
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
#############
# Variables #
#############
TITLE="Photoscape 3.7"
PREFIX="photoscape"
WORKING_WINE_VERSION="1.7.31"
#################
# Debug Options #
#################
POL_SetupWindow_Init
POL_Debug_Init
################
# Presentation #
################
POL_SetupWindow_presentation "$TITLE" "MOOII Tech" "www.photoscape.org" "Fekir" "$PREFIX"
#########################################
# Prepare everything for Photoscape 3.7 #
#########################################
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_LoadVar_PROGRAMFILES
#########################
# Select file & install #
#########################
SETUP_OPTIONS=""
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot
###################
# Making shortcut #
###################
POL_Shortcut "PhotoScape.exe" "$TITLE"
POL_Shortcut_QuietDebug "$TITLE"
################
# Clean & exit #
################
POL_SetupWindow_Close
exit
[/code]
POL_Shortcut_QuietDebug is needed or PlayOnLinux thinks that the Program crashed.
Edited by fekir