IrfanView

Informations

Creator Message
Yaotl Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 25780
Wine: 6.0.1

Feedbacks

Description

IrfanView is a fast, compact and innovative FREEWARE (for non-commercial use) graphic viewer for Windows. Wikipedia.

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-08-02 03-49)
# Last revision : (2021-10-12 14-47)
# Wine version used : 6.0.1
# Distribution used to test : Linux Mint 20.1 Cinnamon
# Author : Yaotl
# PlayOnLinux : 4.3.4
# Script licence : GPL3


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

TITLE="IrfanView"
PREFIX="IrfanView"

# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 3581
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.com/" "Yaotl" "$PREFIX"

POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "6.0.1"

POL_Call POL_Install_corefonts

#Set_OS "win10"

# Download
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
if [ "$POL_ARCH" = "amd64" ]; then
    SetupFile="iview458_x64_setup.exe"
    SetupFilePlugins="iview458_plugins_x64_setup.exe"
    ShortEXE="i_view64.exe"
    i_ini="i_view64.ini"
else
    SetupFile="iview458_setup.exe"
    SetupFilePlugins="iview458_plugins_setup.exe"
    ShortEXE="i_view32.exe"
    i_ini="i_view32.ini"
fi

wget --referer=https://www.irfanview.info/files/$SetupFile https://www.irfanview.info/files/$SetupFile
wget --referer=https://www.irfanview.info/files/$SetupFilePlugins https://www.irfanview.info/files/$SetupFilePlugins

# toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"

# Installation
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFile" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFilePlugins" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
unzip "$POL_System_TmpDir/irfanview_skin_grosberg.zip" -d "$WINEPREFIX/drive_c/Program Files/IrfanView/Toolbars"

# Create Shortcut
POL_Shortcut "$ShortEXE" "$TITLE" "" "" "Graphics;"

# Automatic language selection
lang_install="true"

if [ "$POL_LANG" = "en" ]; then # English
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
elif [ "$POL_LANG" = "de" ]; then # German
    lang_setup="irfanview_lang_deutsch.exe"
    DLL="DEUTSCH.DLL"
    Lang="Deutsch"
elif [ "$POL_LANG" = "fr" ]; then # French
    lang_setup="irfanview_lang_french.exe"
    DLL="FRENCH.DLL"
    Lang="Francais"
elif [ "$POL_LANG" = "ar" ]; then # Arabic
    lang_setup="irfanview_lang_arabic.exe"
    DLL="ARABIC.DLL"
    Lang="Arabic"
elif [ "$POL_LANG" = "bg" ]; then # Bulgarian
    lang_setup="irfanview_lang_bulgarian.exe"
    DLL="BULGARIAN.DLL"
    Lang="Bulgarian"
elif [ "$POL_LANG" = "ca" ]; then # Catalan
    lang_setup="irfanview_lang_catalan.exe"
    DLL="CATALAN.DLL"
    Lang="Català"
elif [ "$POL_LANG" = "zh" ]; then # Chinese
    lang_setup="irfanview_lang_chinese.exe"
    DLL="CHINESE_SIMP.DLL"
    Lang="Chinese simple"
elif [ "$POL_LANG" = "hr" ]; then # Croatian
    lang_setup="irfanview_lang_hrvatski.exe"
    DLL="HRVATSKI.DLL"
    Lang="Hrvatski"
elif [ "$POL_LANG" = "cs" ]; then # Czech
    lang_setup="irfanview_lang_czech.exe"
    DLL="CZECH.DLL"
    Lang="Czech"
elif [ "$POL_LANG" = "da" ]; then # Danish
    lang_setup="irfanview_lang_dansk.exe"
    DLL="DANSK.DLL"
    Lang="Dansk"
elif [ "$POL_LANG" = "et" ]; then # Estonian
    lang_setup="irfanview_lang_estonian.exe"
    DLL="ESTONIAN.DLL"
    Lang="Eesti"
elif [ "$POL_LANG" = "fi" ]; then # Finnish
    lang_setup="irfanview_lang_finnish.exe"
    DLL="FINNISH.DLL"
    Lang="Suomi"
elif [ "$POL_LANG" = "el" ]; then # Greek
    lang_setup="irfanview_lang_greek.exe"
    DLL="HELLENIC.DLL"
    Lang="Greek"
elif [ "$POL_LANG" = "he" ]; then # Hebrew
    lang_setup="irfanview_lang_hebrew.exe"
    DLL="HEBREW.DLL"
    Lang="Hebrew"
elif [ "$POL_LANG" = "hu" ]; then # Hungarian
    lang_setup="irfanview_lang_hungarian.exe"
    DLL="MAGYAR.DLL"
    Lang="Magyar"
elif [ "$POL_LANG" = "it" ]; then # Italian
    lang_setup="irfanview_lang_italian.exe"
    DLL="ITALIAN.DLL"
    Lang="Italiano"
elif [ "$POL_LANG" = "ja" ]; then # Japanese
    lang_setup="irfanview_lang_japanese.exe"
    DLL="JAPANESE.DLL"
    Lang="Japanese"
elif [ "$POL_LANG" = "ko" ]; then # Korean
    lang_setup="irfanview_lang_korean.exe"
    DLL="KOREAN.DLL"
    Lang="Korean"
elif [ "$POL_LANG" = "lv" ]; then # Latvian
    lang_setup="irfanview_lang_latvian.exe"
    DLL="LATVIAN.DLL"
    Lang="Latviešu (Latvian)"
elif [ "$POL_LANG" = "lt" ]; then # Lithuanian
    lang_setup="irfanview_lang_lithuanian.exe"
    DLL="LITHUANIAN.DLL"
    Lang="Lithuanian"
elif [ "$POL_LANG" = "nl" ]; then # Nederlands
    lang_setup="irfanview_lang_nederlands.exe"
    DLL="NEDERLANDS.DLL"
    Lang="Nederlands"
elif [ "$POL_LANG" = "pl" ]; then # Polski
    lang_setup="irfanview_lang_polski.exe"
    DLL="POLSKI.DLL"
    Lang="Polski"
elif [ "$POL_LANG" = "pt" ]; then # Portuguese
    lang_setup="irfanview_lang_portuguese.exe"
    DLL="PORTUGUESE.DLL"
    Lang="Portuguese (Portugal)"
elif [ "$POL_LANG" = "ro" ]; then # Romanian
    lang_setup="irfanview_lang_romanian.exe"
    DLL="ROMANIAN.DLL"
    Lang="Romanian"
elif [ "$POL_LANG" = "ru" ]; then # Russian
    lang_setup="irfanview_lang_russian.exe"
    DLL="RUSSIAN.DLL"
    Lang="Russian"
elif [ "$POL_LANG" = "sk" ]; then # Slovak
    lang_setup="irfanview_lang_slovak.exe"
    DLL="SLOVAK.DLL"
    Lang="Slovensky/Slovak"
elif [ "$POL_LANG" = "sl" ]; then # Slovenian
    lang_setup="irfanview_lang_slovenscina.exe"
    DLL="SLOVENSCINA.DLL"
    Lang="Slovenian"
elif [ "$POL_LANG" = "es" ]; then # Spanish
    lang_setup="irfanview_lang_spanish.exe"
    DLL="SPANISH.DLL"
    Lang="Español"
elif [ "$POL_LANG" = "sv" ]; then # Swedish
    lang_setup="irfanview_lang_swedish.exe"
    DLL="SWEDISH.DLL"
    Lang="Svenska"
elif [ "$POL_LANG" = "tr" ]; then # Turkish
    lang_setup="irfanview_lang_turkish.exe"
    DLL="TURKISH.DLL"
    Lang="Türkçe"
elif [ "$POL_LANG" = "uk" ]; then # Ukrainian
    lang_setup="irfanview_lang_ukrainian.exe"
    DLL="UKRAINIAN.DLL"
    Lang="Ukrainian"
elif [ "$POL_LANG" = "uz" ]; then # Uzbek
    lang_setup="irfanview_lang_uzbek.exe"
    DLL="UZBEK.DLL"
    Lang="Uzbek"
else
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
    POL_Browser "https://www.irfanview.com/languages.htm"
fi

if [ "$lang_install" = "true" ]; then
    cd "$POL_System_TmpDir"
    POL_Download "https://www.irfanview.net/lang/$lang_setup"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$POL_System_TmpDir/$lang_setup"
    POL_Wine_WaitExit "$TITLE"
fi

POL_Debug_Message "Selected language. Wine: $POL_LANG; lang_install: $lang_install; DLL: $DLL; Lang: $Lang; lang_setup: $lang_setup;"

cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/$i_ini"
[Language]
DLL=$DLL
Lang=$Lang
[Toolbar]
Skin=Grosberg_32.png
Size=32
EOF

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
progd458 Monday 8 July 2024 at 5:56
progd458 Anonymous

Message

“maxOS Catalina user: 32bits wine version are no longer available. We are going to use the system wine version instead” - not an error, just a message.

Fails to download https://www.irfanview.com/skins/irfanview_skin_grosberg.zip  "An error happened during download."

Then pops up with 10x “There is no Windows program configured to open this type of file”, then

"Error in POL_Wine

WIne seems to have crashed"

MacOS 14.5 Sonoma on M2 Apple Silicon.

Note that latest version of Irfanview has increased from 4.58 to 4.67.

Replies

lutzd Saturday 21 January 2023 at 19:12
lutzd

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Hallo, irfanview is not working, pls try

old install scripts end immediatly with 10x File Not Found, than starts Language Support, but no Install Dir was Created (File Not Found)
However, only skin located on irfanview.com

Try
old install script based on old kiljans website. Now thisa is INFO not COM
 

Be well

Lutz

Differences

@@ -1,59 +1,59 @@
 #!/usr/bin/env playonlinux-bash
-# Date : (2019-08-02 03-49)
-# Last revision : (2021-10-12 14-47)
+# Date : (***)
+# Last revision : (***)
 # Wine version used : 6.0.1
-# Distribution used to test : Linux Mint 20.1 Cinnamon
-# Author : Yaotl
+# Distribution used to test : Ubuntu 20.10 kinetic
+# Author : ***
 # PlayOnLinux : 4.3.4
 # Script licence : GPL3
-
-
+ 
+ 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="IrfanView"
 PREFIX="IrfanView"
-
+ 
 # Initialization
 POL_SetupWindow_Init
 POL_SetupWindow_SetID 3581
 POL_Debug_Init
-
+ 
 # Presentation
-POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.com/" "Yaotl" "$PREFIX"
-
+POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.info/" "lutzd" "$PREFIX"
+ 
 POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."
-
+ 
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "auto"
 POL_Wine_PrefixCreate "6.0.1"
-
+ 
 POL_Call POL_Install_corefonts
-
+ 
 #Set_OS "win10"
-
+ 
 # Download
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"
 if [ "$POL_ARCH" = "amd64" ]; then
-    SetupFile="iview458_x64_setup.exe"
-    SetupFilePlugins="iview458_plugins_x64_setup.exe"
+    SetupFile="iview462g_x64_setup.exe"
+    SetupFilePlugins="iview462_plugins_x64_setup.exe"
     ShortEXE="i_view64.exe"
     i_ini="i_view64.ini"
 else
-    SetupFile="iview458_setup.exe"
-    SetupFilePlugins="iview458_plugins_setup.exe"
+    SetupFile="iview462_setup.exe"
+    SetupFilePlugins="iview462_plugins_setup.exe"
     ShortEXE="i_view32.exe"
     i_ini="i_view32.ini"
 fi
 
 wget --referer=https://www.irfanview.info/files/$SetupFile https://www.irfanview.info/files/$SetupFile
-wget --referer=https://www.irfanview.info/files/$SetupFilePlugins https://www.irfanview.info/files/$SetupFilePlugins
-
+wget --referer=https://www.fosshub.com/IrfanView.html?dwl=$SetupFilePlugins https://www.fosshub.com/IrfanView.html?dwl=$SetupFilePlugins
+ 
 # toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
 POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"
-
+ 
 # Installation
 POL_Wine_WaitBefore "$TITLE"
 POL_Wine start /unix "$POL_System_TmpDir/$SetupFile" /silent /folder="C:\Program Files\IrfanView"
@@ -61,13 +61,13 @@
 POL_Wine start /unix "$POL_System_TmpDir/$SetupFilePlugins" /silent /folder="C:\Program Files\IrfanView"
 POL_Wine_WaitExit "$TITLE"
 unzip "$POL_System_TmpDir/irfanview_skin_grosberg.zip" -d "$WINEPREFIX/drive_c/Program Files/IrfanView/Toolbars"
-
+ 
 # Create Shortcut
 POL_Shortcut "$ShortEXE" "$TITLE" "" "" "Graphics;"
-
+ 
 # Automatic language selection
 lang_install="true"
-
+ 
 if [ "$POL_LANG" = "en" ]; then # English
     lang_install="false"
     DLL="ENGLISH"
@@ -202,7 +202,7 @@
     Lang="English"
     POL_Browser "https://www.irfanview.com/languages.htm"
 fi
-
+ 
 if [ "$lang_install" = "true" ]; then
     cd "$POL_System_TmpDir"
     POL_Download "https://www.irfanview.net/lang/$lang_setup"
@@ -210,9 +210,9 @@
     POL_Wine start /unix "$POL_System_TmpDir/$lang_setup"
     POL_Wine_WaitExit "$TITLE"
 fi
-
+ 
 POL_Debug_Message "Selected language. Wine: $POL_LANG; lang_install: $lang_install; DLL: $DLL; Lang: $Lang; lang_setup: $lang_setup;"
-
+ 
 cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/$i_ini"
 [Language]
 DLL=$DLL
@@ -221,7 +221,7 @@
 Skin=Grosberg_32.png
 Size=32
 EOF
-
+ 
 # Cleanup
 POL_System_TmpDelete
 POL_SetupWindow_Close

New source code

#!/usr/bin/env playonlinux-bash
# Date : (***)
# Last revision : (***)
# Wine version used : 6.0.1
# Distribution used to test : Ubuntu 20.10 kinetic
# Author : ***
# PlayOnLinux : 4.3.4
# Script licence : GPL3
 
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="IrfanView"
PREFIX="IrfanView"
 
# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 3581
POL_Debug_Init
 
# Presentation
POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.info/" "lutzd" "$PREFIX"
 
POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "6.0.1"
 
POL_Call POL_Install_corefonts
 
#Set_OS "win10"
 
# Download
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
if [ "$POL_ARCH" = "amd64" ]; then
    SetupFile="iview462g_x64_setup.exe"
    SetupFilePlugins="iview462_plugins_x64_setup.exe"
    ShortEXE="i_view64.exe"
    i_ini="i_view64.ini"
else
    SetupFile="iview462_setup.exe"
    SetupFilePlugins="iview462_plugins_setup.exe"
    ShortEXE="i_view32.exe"
    i_ini="i_view32.ini"
fi

wget --referer=https://www.irfanview.info/files/$SetupFile https://www.irfanview.info/files/$SetupFile
wget --referer=https://www.fosshub.com/IrfanView.html?dwl=$SetupFilePlugins https://www.fosshub.com/IrfanView.html?dwl=$SetupFilePlugins
 
# toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"
 
# Installation
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFile" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFilePlugins" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
unzip "$POL_System_TmpDir/irfanview_skin_grosberg.zip" -d "$WINEPREFIX/drive_c/Program Files/IrfanView/Toolbars"
 
# Create Shortcut
POL_Shortcut "$ShortEXE" "$TITLE" "" "" "Graphics;"
 
# Automatic language selection
lang_install="true"
 
if [ "$POL_LANG" = "en" ]; then # English
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
elif [ "$POL_LANG" = "de" ]; then # German
    lang_setup="irfanview_lang_deutsch.exe"
    DLL="DEUTSCH.DLL"
    Lang="Deutsch"
elif [ "$POL_LANG" = "fr" ]; then # French
    lang_setup="irfanview_lang_french.exe"
    DLL="FRENCH.DLL"
    Lang="Francais"
elif [ "$POL_LANG" = "ar" ]; then # Arabic
    lang_setup="irfanview_lang_arabic.exe"
    DLL="ARABIC.DLL"
    Lang="Arabic"
elif [ "$POL_LANG" = "bg" ]; then # Bulgarian
    lang_setup="irfanview_lang_bulgarian.exe"
    DLL="BULGARIAN.DLL"
    Lang="Bulgarian"
elif [ "$POL_LANG" = "ca" ]; then # Catalan
    lang_setup="irfanview_lang_catalan.exe"
    DLL="CATALAN.DLL"
    Lang="Català"
elif [ "$POL_LANG" = "zh" ]; then # Chinese
    lang_setup="irfanview_lang_chinese.exe"
    DLL="CHINESE_SIMP.DLL"
    Lang="Chinese simple"
elif [ "$POL_LANG" = "hr" ]; then # Croatian
    lang_setup="irfanview_lang_hrvatski.exe"
    DLL="HRVATSKI.DLL"
    Lang="Hrvatski"
elif [ "$POL_LANG" = "cs" ]; then # Czech
    lang_setup="irfanview_lang_czech.exe"
    DLL="CZECH.DLL"
    Lang="Czech"
elif [ "$POL_LANG" = "da" ]; then # Danish
    lang_setup="irfanview_lang_dansk.exe"
    DLL="DANSK.DLL"
    Lang="Dansk"
elif [ "$POL_LANG" = "et" ]; then # Estonian
    lang_setup="irfanview_lang_estonian.exe"
    DLL="ESTONIAN.DLL"
    Lang="Eesti"
elif [ "$POL_LANG" = "fi" ]; then # Finnish
    lang_setup="irfanview_lang_finnish.exe"
    DLL="FINNISH.DLL"
    Lang="Suomi"
elif [ "$POL_LANG" = "el" ]; then # Greek
    lang_setup="irfanview_lang_greek.exe"
    DLL="HELLENIC.DLL"
    Lang="Greek"
elif [ "$POL_LANG" = "he" ]; then # Hebrew
    lang_setup="irfanview_lang_hebrew.exe"
    DLL="HEBREW.DLL"
    Lang="Hebrew"
elif [ "$POL_LANG" = "hu" ]; then # Hungarian
    lang_setup="irfanview_lang_hungarian.exe"
    DLL="MAGYAR.DLL"
    Lang="Magyar"
elif [ "$POL_LANG" = "it" ]; then # Italian
    lang_setup="irfanview_lang_italian.exe"
    DLL="ITALIAN.DLL"
    Lang="Italiano"
elif [ "$POL_LANG" = "ja" ]; then # Japanese
    lang_setup="irfanview_lang_japanese.exe"
    DLL="JAPANESE.DLL"
    Lang="Japanese"
elif [ "$POL_LANG" = "ko" ]; then # Korean
    lang_setup="irfanview_lang_korean.exe"
    DLL="KOREAN.DLL"
    Lang="Korean"
elif [ "$POL_LANG" = "lv" ]; then # Latvian
    lang_setup="irfanview_lang_latvian.exe"
    DLL="LATVIAN.DLL"
    Lang="Latviešu (Latvian)"
elif [ "$POL_LANG" = "lt" ]; then # Lithuanian
    lang_setup="irfanview_lang_lithuanian.exe"
    DLL="LITHUANIAN.DLL"
    Lang="Lithuanian"
elif [ "$POL_LANG" = "nl" ]; then # Nederlands
    lang_setup="irfanview_lang_nederlands.exe"
    DLL="NEDERLANDS.DLL"
    Lang="Nederlands"
elif [ "$POL_LANG" = "pl" ]; then # Polski
    lang_setup="irfanview_lang_polski.exe"
    DLL="POLSKI.DLL"
    Lang="Polski"
elif [ "$POL_LANG" = "pt" ]; then # Portuguese
    lang_setup="irfanview_lang_portuguese.exe"
    DLL="PORTUGUESE.DLL"
    Lang="Portuguese (Portugal)"
elif [ "$POL_LANG" = "ro" ]; then # Romanian
    lang_setup="irfanview_lang_romanian.exe"
    DLL="ROMANIAN.DLL"
    Lang="Romanian"
elif [ "$POL_LANG" = "ru" ]; then # Russian
    lang_setup="irfanview_lang_russian.exe"
    DLL="RUSSIAN.DLL"
    Lang="Russian"
elif [ "$POL_LANG" = "sk" ]; then # Slovak
    lang_setup="irfanview_lang_slovak.exe"
    DLL="SLOVAK.DLL"
    Lang="Slovensky/Slovak"
elif [ "$POL_LANG" = "sl" ]; then # Slovenian
    lang_setup="irfanview_lang_slovenscina.exe"
    DLL="SLOVENSCINA.DLL"
    Lang="Slovenian"
elif [ "$POL_LANG" = "es" ]; then # Spanish
    lang_setup="irfanview_lang_spanish.exe"
    DLL="SPANISH.DLL"
    Lang="Español"
elif [ "$POL_LANG" = "sv" ]; then # Swedish
    lang_setup="irfanview_lang_swedish.exe"
    DLL="SWEDISH.DLL"
    Lang="Svenska"
elif [ "$POL_LANG" = "tr" ]; then # Turkish
    lang_setup="irfanview_lang_turkish.exe"
    DLL="TURKISH.DLL"
    Lang="Türkçe"
elif [ "$POL_LANG" = "uk" ]; then # Ukrainian
    lang_setup="irfanview_lang_ukrainian.exe"
    DLL="UKRAINIAN.DLL"
    Lang="Ukrainian"
elif [ "$POL_LANG" = "uz" ]; then # Uzbek
    lang_setup="irfanview_lang_uzbek.exe"
    DLL="UZBEK.DLL"
    Lang="Uzbek"
else
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
    POL_Browser "https://www.irfanview.com/languages.htm"
fi
 
if [ "$lang_install" = "true" ]; then
    cd "$POL_System_TmpDir"
    POL_Download "https://www.irfanview.net/lang/$lang_setup"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$POL_System_TmpDir/$lang_setup"
    POL_Wine_WaitExit "$TITLE"
fi
 
POL_Debug_Message "Selected language. Wine: $POL_LANG; lang_install: $lang_install; DLL: $DLL; Lang: $Lang; lang_setup: $lang_setup;"
 
cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/$i_ini"
[Language]
DLL=$DLL
Lang=$Lang
[Toolbar]
Skin=Grosberg_32.png
Size=32
EOF
 
# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Commander_Keen Friday 5 August 2022 at 18:36
Commander_Keen Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -37,13 +37,13 @@
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"
 if [ "$POL_ARCH" = "amd64" ]; then
-    SetupFile="iview458_x64_setup.exe"
-    SetupFilePlugins="iview458_plugins_x64_setup.exe"
+    SetupFile="iview460_x64_setup.exe"
+    SetupFilePlugins="iview460_plugins_x64_setup.exe"
     ShortEXE="i_view64.exe"
     i_ini="i_view64.ini"
 else
-    SetupFile="iview458_setup.exe"
-    SetupFilePlugins="iview458_plugins_setup.exe"
+    SetupFile="iview460_setup.exe"
+    SetupFilePlugins="iview460_plugins_setup.exe"
     ShortEXE="i_view32.exe"
     i_ini="i_view32.ini"
 fi

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-08-02 03-49)
# Last revision : (2021-10-12 14-47)
# Wine version used : 6.0.1
# Distribution used to test : Linux Mint 20.1 Cinnamon
# Author : Yaotl
# PlayOnLinux : 4.3.4
# Script licence : GPL3


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

TITLE="IrfanView"
PREFIX="IrfanView"

# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 3581
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.com/" "Yaotl" "$PREFIX"

POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "6.0.1"

POL_Call POL_Install_corefonts

#Set_OS "win10"

# Download
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
if [ "$POL_ARCH" = "amd64" ]; then
    SetupFile="iview460_x64_setup.exe"
    SetupFilePlugins="iview460_plugins_x64_setup.exe"
    ShortEXE="i_view64.exe"
    i_ini="i_view64.ini"
else
    SetupFile="iview460_setup.exe"
    SetupFilePlugins="iview460_plugins_setup.exe"
    ShortEXE="i_view32.exe"
    i_ini="i_view32.ini"
fi

wget --referer=https://www.irfanview.info/files/$SetupFile https://www.irfanview.info/files/$SetupFile
wget --referer=https://www.irfanview.info/files/$SetupFilePlugins https://www.irfanview.info/files/$SetupFilePlugins

# toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"

# Installation
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFile" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFilePlugins" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
unzip "$POL_System_TmpDir/irfanview_skin_grosberg.zip" -d "$WINEPREFIX/drive_c/Program Files/IrfanView/Toolbars"

# Create Shortcut
POL_Shortcut "$ShortEXE" "$TITLE" "" "" "Graphics;"

# Automatic language selection
lang_install="true"

if [ "$POL_LANG" = "en" ]; then # English
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
elif [ "$POL_LANG" = "de" ]; then # German
    lang_setup="irfanview_lang_deutsch.exe"
    DLL="DEUTSCH.DLL"
    Lang="Deutsch"
elif [ "$POL_LANG" = "fr" ]; then # French
    lang_setup="irfanview_lang_french.exe"
    DLL="FRENCH.DLL"
    Lang="Francais"
elif [ "$POL_LANG" = "ar" ]; then # Arabic
    lang_setup="irfanview_lang_arabic.exe"
    DLL="ARABIC.DLL"
    Lang="Arabic"
elif [ "$POL_LANG" = "bg" ]; then # Bulgarian
    lang_setup="irfanview_lang_bulgarian.exe"
    DLL="BULGARIAN.DLL"
    Lang="Bulgarian"
elif [ "$POL_LANG" = "ca" ]; then # Catalan
    lang_setup="irfanview_lang_catalan.exe"
    DLL="CATALAN.DLL"
    Lang="Català"
elif [ "$POL_LANG" = "zh" ]; then # Chinese
    lang_setup="irfanview_lang_chinese.exe"
    DLL="CHINESE_SIMP.DLL"
    Lang="Chinese simple"
elif [ "$POL_LANG" = "hr" ]; then # Croatian
    lang_setup="irfanview_lang_hrvatski.exe"
    DLL="HRVATSKI.DLL"
    Lang="Hrvatski"
elif [ "$POL_LANG" = "cs" ]; then # Czech
    lang_setup="irfanview_lang_czech.exe"
    DLL="CZECH.DLL"
    Lang="Czech"
elif [ "$POL_LANG" = "da" ]; then # Danish
    lang_setup="irfanview_lang_dansk.exe"
    DLL="DANSK.DLL"
    Lang="Dansk"
elif [ "$POL_LANG" = "et" ]; then # Estonian
    lang_setup="irfanview_lang_estonian.exe"
    DLL="ESTONIAN.DLL"
    Lang="Eesti"
elif [ "$POL_LANG" = "fi" ]; then # Finnish
    lang_setup="irfanview_lang_finnish.exe"
    DLL="FINNISH.DLL"
    Lang="Suomi"
elif [ "$POL_LANG" = "el" ]; then # Greek
    lang_setup="irfanview_lang_greek.exe"
    DLL="HELLENIC.DLL"
    Lang="Greek"
elif [ "$POL_LANG" = "he" ]; then # Hebrew
    lang_setup="irfanview_lang_hebrew.exe"
    DLL="HEBREW.DLL"
    Lang="Hebrew"
elif [ "$POL_LANG" = "hu" ]; then # Hungarian
    lang_setup="irfanview_lang_hungarian.exe"
    DLL="MAGYAR.DLL"
    Lang="Magyar"
elif [ "$POL_LANG" = "it" ]; then # Italian
    lang_setup="irfanview_lang_italian.exe"
    DLL="ITALIAN.DLL"
    Lang="Italiano"
elif [ "$POL_LANG" = "ja" ]; then # Japanese
    lang_setup="irfanview_lang_japanese.exe"
    DLL="JAPANESE.DLL"
    Lang="Japanese"
elif [ "$POL_LANG" = "ko" ]; then # Korean
    lang_setup="irfanview_lang_korean.exe"
    DLL="KOREAN.DLL"
    Lang="Korean"
elif [ "$POL_LANG" = "lv" ]; then # Latvian
    lang_setup="irfanview_lang_latvian.exe"
    DLL="LATVIAN.DLL"
    Lang="Latviešu (Latvian)"
elif [ "$POL_LANG" = "lt" ]; then # Lithuanian
    lang_setup="irfanview_lang_lithuanian.exe"
    DLL="LITHUANIAN.DLL"
    Lang="Lithuanian"
elif [ "$POL_LANG" = "nl" ]; then # Nederlands
    lang_setup="irfanview_lang_nederlands.exe"
    DLL="NEDERLANDS.DLL"
    Lang="Nederlands"
elif [ "$POL_LANG" = "pl" ]; then # Polski
    lang_setup="irfanview_lang_polski.exe"
    DLL="POLSKI.DLL"
    Lang="Polski"
elif [ "$POL_LANG" = "pt" ]; then # Portuguese
    lang_setup="irfanview_lang_portuguese.exe"
    DLL="PORTUGUESE.DLL"
    Lang="Portuguese (Portugal)"
elif [ "$POL_LANG" = "ro" ]; then # Romanian
    lang_setup="irfanview_lang_romanian.exe"
    DLL="ROMANIAN.DLL"
    Lang="Romanian"
elif [ "$POL_LANG" = "ru" ]; then # Russian
    lang_setup="irfanview_lang_russian.exe"
    DLL="RUSSIAN.DLL"
    Lang="Russian"
elif [ "$POL_LANG" = "sk" ]; then # Slovak
    lang_setup="irfanview_lang_slovak.exe"
    DLL="SLOVAK.DLL"
    Lang="Slovensky/Slovak"
elif [ "$POL_LANG" = "sl" ]; then # Slovenian
    lang_setup="irfanview_lang_slovenscina.exe"
    DLL="SLOVENSCINA.DLL"
    Lang="Slovenian"
elif [ "$POL_LANG" = "es" ]; then # Spanish
    lang_setup="irfanview_lang_spanish.exe"
    DLL="SPANISH.DLL"
    Lang="Español"
elif [ "$POL_LANG" = "sv" ]; then # Swedish
    lang_setup="irfanview_lang_swedish.exe"
    DLL="SWEDISH.DLL"
    Lang="Svenska"
elif [ "$POL_LANG" = "tr" ]; then # Turkish
    lang_setup="irfanview_lang_turkish.exe"
    DLL="TURKISH.DLL"
    Lang="Türkçe"
elif [ "$POL_LANG" = "uk" ]; then # Ukrainian
    lang_setup="irfanview_lang_ukrainian.exe"
    DLL="UKRAINIAN.DLL"
    Lang="Ukrainian"
elif [ "$POL_LANG" = "uz" ]; then # Uzbek
    lang_setup="irfanview_lang_uzbek.exe"
    DLL="UZBEK.DLL"
    Lang="Uzbek"
else
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
    POL_Browser "https://www.irfanview.com/languages.htm"
fi

if [ "$lang_install" = "true" ]; then
    cd "$POL_System_TmpDir"
    POL_Download "https://www.irfanview.net/lang/$lang_setup"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$POL_System_TmpDir/$lang_setup"
    POL_Wine_WaitExit "$TITLE"
fi

POL_Debug_Message "Selected language. Wine: $POL_LANG; lang_install: $lang_install; DLL: $DLL; Lang: $Lang; lang_setup: $lang_setup;"

cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/$i_ini"
[Language]
DLL=$DLL
Lang=$Lang
[Toolbar]
Skin=Grosberg_32.png
Size=32
EOF

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Yaotl Tuesday 12 October 2021 at 14:42
Yaotl Anonymous

Information

This update has been approved by the team.

Differences

@@ -1,7 +1,7 @@
 #!/usr/bin/env playonlinux-bash
 # Date : (2019-08-02 03-49)
-# Last revision : (2021-04-12 22-55)
-# Wine version used : 5.0.4
+# Last revision : (2021-10-12 14-47)
+# Wine version used : 6.0.1
 # Distribution used to test : Linux Mint 20.1 Cinnamon
 # Author : Yaotl
 # PlayOnLinux : 4.3.4
@@ -27,7 +27,7 @@
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "auto"
-POL_Wine_PrefixCreate "5.0.4"
+POL_Wine_PrefixCreate "6.0.1"
 
 POL_Call POL_Install_corefonts
 
@@ -36,26 +36,25 @@
 # Download
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"
-if [ "$POL_ARCH" == "amd64" ]; then
-    SetupFile="iview457_x64_setup.exe"
-    SetupFilePlugins="iview457_plugins_x64_setup.exe"
+if [ "$POL_ARCH" = "amd64" ]; then
+    SetupFile="iview458_x64_setup.exe"
+    SetupFilePlugins="iview458_plugins_x64_setup.exe"
     ShortEXE="i_view64.exe"
     i_ini="i_view64.ini"
-    Archive="IrfanView457_64Bit.7z"
-    POL_Download "http://yaotl.heliohost.us/resources/setups/$PREFIX/$Archive" "6f98d28f4d7d3e2727a37cc633ab9ffb"
 else
-    SetupFile="iview457_setup.exe"
-    SetupFilePlugins="iview457_plugins_setup.exe"
+    SetupFile="iview458_setup.exe"
+    SetupFilePlugins="iview458_plugins_setup.exe"
     ShortEXE="i_view32.exe"
     i_ini="i_view32.ini"
-    Archive="IrfanView457_32Bit.7z"
-    POL_Download "http://yaotl.heliohost.us/resources/setups/$PREFIX/$Archive" "9e03f7df5a36c6da23f63c2833210364"
 fi
+
+wget --referer=https://www.irfanview.info/files/$SetupFile https://www.irfanview.info/files/$SetupFile
+wget --referer=https://www.irfanview.info/files/$SetupFilePlugins https://www.irfanview.info/files/$SetupFilePlugins
+
 # toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
 POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"
 
 # Installation
-7z e "$POL_System_TmpDir/$Archive"
 POL_Wine_WaitBefore "$TITLE"
 POL_Wine start /unix "$POL_System_TmpDir/$SetupFile" /silent /folder="C:\Program Files\IrfanView"
 POL_Wine_WaitExit "$TITLE"
@@ -68,132 +67,132 @@
 
 # Automatic language selection
 lang_install="true"
- 
-if [ "$POL_LANG" == "en" ]; then # English
+
+if [ "$POL_LANG" = "en" ]; then # English
     lang_install="false"
     DLL="ENGLISH"
     Lang="English"
-elif [ "$POL_LANG" == "de" ]; then # German
-    lang_install="false"
+elif [ "$POL_LANG" = "de" ]; then # German
+    lang_setup="irfanview_lang_deutsch.exe"
     DLL="DEUTSCH.DLL"
     Lang="Deutsch"
-elif [ "$POL_LANG" == "fr" ]; then # French
+elif [ "$POL_LANG" = "fr" ]; then # French
     lang_setup="irfanview_lang_french.exe"
     DLL="FRENCH.DLL"
     Lang="Francais"
-elif [ "$POL_LANG" == "ar" ]; then # Arabic
+elif [ "$POL_LANG" = "ar" ]; then # Arabic
     lang_setup="irfanview_lang_arabic.exe"
     DLL="ARABIC.DLL"
     Lang="Arabic"
-elif [ "$POL_LANG" == "bg" ]; then # Bulgarian
+elif [ "$POL_LANG" = "bg" ]; then # Bulgarian
     lang_setup="irfanview_lang_bulgarian.exe"
     DLL="BULGARIAN.DLL"
     Lang="Bulgarian"
-elif [ "$POL_LANG" == "ca" ]; then # Catalan
+elif [ "$POL_LANG" = "ca" ]; then # Catalan
     lang_setup="irfanview_lang_catalan.exe"
     DLL="CATALAN.DLL"
     Lang="Català"
-elif [ "$POL_LANG" == "zh" ]; then # Chinese
+elif [ "$POL_LANG" = "zh" ]; then # Chinese
     lang_setup="irfanview_lang_chinese.exe"
     DLL="CHINESE_SIMP.DLL"
     Lang="Chinese simple"
-elif [ "$POL_LANG" == "hr" ]; then # Croatian
+elif [ "$POL_LANG" = "hr" ]; then # Croatian
     lang_setup="irfanview_lang_hrvatski.exe"
     DLL="HRVATSKI.DLL"
     Lang="Hrvatski"
-elif [ "$POL_LANG" == "cs" ]; then # Czech
+elif [ "$POL_LANG" = "cs" ]; then # Czech
     lang_setup="irfanview_lang_czech.exe"
     DLL="CZECH.DLL"
     Lang="Czech"
-elif [ "$POL_LANG" == "da" ]; then # Danish
+elif [ "$POL_LANG" = "da" ]; then # Danish
     lang_setup="irfanview_lang_dansk.exe"
     DLL="DANSK.DLL"
     Lang="Dansk"
-elif [ "$POL_LANG" == "et" ]; then # Estonian
+elif [ "$POL_LANG" = "et" ]; then # Estonian
     lang_setup="irfanview_lang_estonian.exe"
     DLL="ESTONIAN.DLL"
     Lang="Eesti"
-elif [ "$POL_LANG" == "fi" ]; then # Finnish
+elif [ "$POL_LANG" = "fi" ]; then # Finnish
     lang_setup="irfanview_lang_finnish.exe"
     DLL="FINNISH.DLL"
     Lang="Suomi"
-elif [ "$POL_LANG" == "el" ]; then # Greek
+elif [ "$POL_LANG" = "el" ]; then # Greek
     lang_setup="irfanview_lang_greek.exe"
     DLL="HELLENIC.DLL"
     Lang="Greek"
-elif [ "$POL_LANG" == "he" ]; then # Hebrew
+elif [ "$POL_LANG" = "he" ]; then # Hebrew
     lang_setup="irfanview_lang_hebrew.exe"
     DLL="HEBREW.DLL"
     Lang="Hebrew"
-elif [ "$POL_LANG" == "hu" ]; then # Hungarian
+elif [ "$POL_LANG" = "hu" ]; then # Hungarian
     lang_setup="irfanview_lang_hungarian.exe"
     DLL="MAGYAR.DLL"
     Lang="Magyar"
-elif [ "$POL_LANG" == "it" ]; then # Italian
+elif [ "$POL_LANG" = "it" ]; then # Italian
     lang_setup="irfanview_lang_italian.exe"
     DLL="ITALIAN.DLL"
     Lang="Italiano"
-elif [ "$POL_LANG" == "ja" ]; then # Japanese
+elif [ "$POL_LANG" = "ja" ]; then # Japanese
     lang_setup="irfanview_lang_japanese.exe"
     DLL="JAPANESE.DLL"
     Lang="Japanese"
-elif [ "$POL_LANG" == "ko" ]; then # Korean
+elif [ "$POL_LANG" = "ko" ]; then # Korean
     lang_setup="irfanview_lang_korean.exe"
     DLL="KOREAN.DLL"
     Lang="Korean"
-elif [ "$POL_LANG" == "lv" ]; then # Latvian
+elif [ "$POL_LANG" = "lv" ]; then # Latvian
     lang_setup="irfanview_lang_latvian.exe"
     DLL="LATVIAN.DLL"
     Lang="Latviešu (Latvian)"
-elif [ "$POL_LANG" == "lt" ]; then # Lithuanian
+elif [ "$POL_LANG" = "lt" ]; then # Lithuanian
     lang_setup="irfanview_lang_lithuanian.exe"
     DLL="LITHUANIAN.DLL"
     Lang="Lithuanian"
-elif [ "$POL_LANG" == "nl" ]; then # Nederlands
+elif [ "$POL_LANG" = "nl" ]; then # Nederlands
     lang_setup="irfanview_lang_nederlands.exe"
     DLL="NEDERLANDS.DLL"
     Lang="Nederlands"
-elif [ "$POL_LANG" == "pl" ]; then # Polski
+elif [ "$POL_LANG" = "pl" ]; then # Polski
     lang_setup="irfanview_lang_polski.exe"
     DLL="POLSKI.DLL"
     Lang="Polski"
-elif [ "$POL_LANG" == "pt" ]; then # Portuguese
+elif [ "$POL_LANG" = "pt" ]; then # Portuguese
     lang_setup="irfanview_lang_portuguese.exe"
     DLL="PORTUGUESE.DLL"
     Lang="Portuguese (Portugal)"
-elif [ "$POL_LANG" == "ro" ]; then # Romanian
+elif [ "$POL_LANG" = "ro" ]; then # Romanian
     lang_setup="irfanview_lang_romanian.exe"
     DLL="ROMANIAN.DLL"
     Lang="Romanian"
-elif [ "$POL_LANG" == "ru" ]; then # Russian
+elif [ "$POL_LANG" = "ru" ]; then # Russian
     lang_setup="irfanview_lang_russian.exe"
     DLL="RUSSIAN.DLL"
     Lang="Russian"
-elif [ "$POL_LANG" == "sk" ]; then # Slovak
+elif [ "$POL_LANG" = "sk" ]; then # Slovak
     lang_setup="irfanview_lang_slovak.exe"
     DLL="SLOVAK.DLL"
     Lang="Slovensky/Slovak"
-elif [ "$POL_LANG" == "sl" ]; then # Slovenian
+elif [ "$POL_LANG" = "sl" ]; then # Slovenian
     lang_setup="irfanview_lang_slovenscina.exe"
     DLL="SLOVENSCINA.DLL"
     Lang="Slovenian"
-elif [ "$POL_LANG" == "es" ]; then # Spanish
+elif [ "$POL_LANG" = "es" ]; then # Spanish
     lang_setup="irfanview_lang_spanish.exe"
     DLL="SPANISH.DLL"
     Lang="Español"
-elif [ "$POL_LANG" == "sv" ]; then # Swedish
+elif [ "$POL_LANG" = "sv" ]; then # Swedish
     lang_setup="irfanview_lang_swedish.exe"
     DLL="SWEDISH.DLL"
     Lang="Svenska"
-elif [ "$POL_LANG" == "tr" ]; then # Turkish
+elif [ "$POL_LANG" = "tr" ]; then # Turkish
     lang_setup="irfanview_lang_turkish.exe"
     DLL="TURKISH.DLL"
     Lang="Türkçe"
-elif [ "$POL_LANG" == "uk" ]; then # Ukrainian
+elif [ "$POL_LANG" = "uk" ]; then # Ukrainian
     lang_setup="irfanview_lang_ukrainian.exe"
     DLL="UKRAINIAN.DLL"
     Lang="Ukrainian"
-elif [ "$POL_LANG" == "uz" ]; then # Uzbek
+elif [ "$POL_LANG" = "uz" ]; then # Uzbek
     lang_setup="irfanview_lang_uzbek.exe"
     DLL="UZBEK.DLL"
     Lang="Uzbek"
@@ -204,11 +203,12 @@
     POL_Browser "https://www.irfanview.com/languages.htm"
 fi
 
-if [ "$lang_install" == "true" ]; then
+if [ "$lang_install" = "true" ]; then
     cd "$POL_System_TmpDir"
     POL_Download "https://www.irfanview.net/lang/$lang_setup"
     POL_Wine_WaitBefore "$TITLE"
     POL_Wine start /unix "$POL_System_TmpDir/$lang_setup"
+    POL_Wine_WaitExit "$TITLE"
 fi
 
 POL_Debug_Message "Selected language. Wine: $POL_LANG; lang_install: $lang_install; DLL: $DLL; Lang: $Lang; lang_setup: $lang_setup;"

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-08-02 03-49)
# Last revision : (2021-10-12 14-47)
# Wine version used : 6.0.1
# Distribution used to test : Linux Mint 20.1 Cinnamon
# Author : Yaotl
# PlayOnLinux : 4.3.4
# Script licence : GPL3


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

TITLE="IrfanView"
PREFIX="IrfanView"

# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 3581
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.com/" "Yaotl" "$PREFIX"

POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "6.0.1"

POL_Call POL_Install_corefonts

#Set_OS "win10"

# Download
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
if [ "$POL_ARCH" = "amd64" ]; then
    SetupFile="iview458_x64_setup.exe"
    SetupFilePlugins="iview458_plugins_x64_setup.exe"
    ShortEXE="i_view64.exe"
    i_ini="i_view64.ini"
else
    SetupFile="iview458_setup.exe"
    SetupFilePlugins="iview458_plugins_setup.exe"
    ShortEXE="i_view32.exe"
    i_ini="i_view32.ini"
fi

wget --referer=https://www.irfanview.info/files/$SetupFile https://www.irfanview.info/files/$SetupFile
wget --referer=https://www.irfanview.info/files/$SetupFilePlugins https://www.irfanview.info/files/$SetupFilePlugins

# toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"

# Installation
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFile" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFilePlugins" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
unzip "$POL_System_TmpDir/irfanview_skin_grosberg.zip" -d "$WINEPREFIX/drive_c/Program Files/IrfanView/Toolbars"

# Create Shortcut
POL_Shortcut "$ShortEXE" "$TITLE" "" "" "Graphics;"

# Automatic language selection
lang_install="true"

if [ "$POL_LANG" = "en" ]; then # English
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
elif [ "$POL_LANG" = "de" ]; then # German
    lang_setup="irfanview_lang_deutsch.exe"
    DLL="DEUTSCH.DLL"
    Lang="Deutsch"
elif [ "$POL_LANG" = "fr" ]; then # French
    lang_setup="irfanview_lang_french.exe"
    DLL="FRENCH.DLL"
    Lang="Francais"
elif [ "$POL_LANG" = "ar" ]; then # Arabic
    lang_setup="irfanview_lang_arabic.exe"
    DLL="ARABIC.DLL"
    Lang="Arabic"
elif [ "$POL_LANG" = "bg" ]; then # Bulgarian
    lang_setup="irfanview_lang_bulgarian.exe"
    DLL="BULGARIAN.DLL"
    Lang="Bulgarian"
elif [ "$POL_LANG" = "ca" ]; then # Catalan
    lang_setup="irfanview_lang_catalan.exe"
    DLL="CATALAN.DLL"
    Lang="Català"
elif [ "$POL_LANG" = "zh" ]; then # Chinese
    lang_setup="irfanview_lang_chinese.exe"
    DLL="CHINESE_SIMP.DLL"
    Lang="Chinese simple"
elif [ "$POL_LANG" = "hr" ]; then # Croatian
    lang_setup="irfanview_lang_hrvatski.exe"
    DLL="HRVATSKI.DLL"
    Lang="Hrvatski"
elif [ "$POL_LANG" = "cs" ]; then # Czech
    lang_setup="irfanview_lang_czech.exe"
    DLL="CZECH.DLL"
    Lang="Czech"
elif [ "$POL_LANG" = "da" ]; then # Danish
    lang_setup="irfanview_lang_dansk.exe"
    DLL="DANSK.DLL"
    Lang="Dansk"
elif [ "$POL_LANG" = "et" ]; then # Estonian
    lang_setup="irfanview_lang_estonian.exe"
    DLL="ESTONIAN.DLL"
    Lang="Eesti"
elif [ "$POL_LANG" = "fi" ]; then # Finnish
    lang_setup="irfanview_lang_finnish.exe"
    DLL="FINNISH.DLL"
    Lang="Suomi"
elif [ "$POL_LANG" = "el" ]; then # Greek
    lang_setup="irfanview_lang_greek.exe"
    DLL="HELLENIC.DLL"
    Lang="Greek"
elif [ "$POL_LANG" = "he" ]; then # Hebrew
    lang_setup="irfanview_lang_hebrew.exe"
    DLL="HEBREW.DLL"
    Lang="Hebrew"
elif [ "$POL_LANG" = "hu" ]; then # Hungarian
    lang_setup="irfanview_lang_hungarian.exe"
    DLL="MAGYAR.DLL"
    Lang="Magyar"
elif [ "$POL_LANG" = "it" ]; then # Italian
    lang_setup="irfanview_lang_italian.exe"
    DLL="ITALIAN.DLL"
    Lang="Italiano"
elif [ "$POL_LANG" = "ja" ]; then # Japanese
    lang_setup="irfanview_lang_japanese.exe"
    DLL="JAPANESE.DLL"
    Lang="Japanese"
elif [ "$POL_LANG" = "ko" ]; then # Korean
    lang_setup="irfanview_lang_korean.exe"
    DLL="KOREAN.DLL"
    Lang="Korean"
elif [ "$POL_LANG" = "lv" ]; then # Latvian
    lang_setup="irfanview_lang_latvian.exe"
    DLL="LATVIAN.DLL"
    Lang="Latviešu (Latvian)"
elif [ "$POL_LANG" = "lt" ]; then # Lithuanian
    lang_setup="irfanview_lang_lithuanian.exe"
    DLL="LITHUANIAN.DLL"
    Lang="Lithuanian"
elif [ "$POL_LANG" = "nl" ]; then # Nederlands
    lang_setup="irfanview_lang_nederlands.exe"
    DLL="NEDERLANDS.DLL"
    Lang="Nederlands"
elif [ "$POL_LANG" = "pl" ]; then # Polski
    lang_setup="irfanview_lang_polski.exe"
    DLL="POLSKI.DLL"
    Lang="Polski"
elif [ "$POL_LANG" = "pt" ]; then # Portuguese
    lang_setup="irfanview_lang_portuguese.exe"
    DLL="PORTUGUESE.DLL"
    Lang="Portuguese (Portugal)"
elif [ "$POL_LANG" = "ro" ]; then # Romanian
    lang_setup="irfanview_lang_romanian.exe"
    DLL="ROMANIAN.DLL"
    Lang="Romanian"
elif [ "$POL_LANG" = "ru" ]; then # Russian
    lang_setup="irfanview_lang_russian.exe"
    DLL="RUSSIAN.DLL"
    Lang="Russian"
elif [ "$POL_LANG" = "sk" ]; then # Slovak
    lang_setup="irfanview_lang_slovak.exe"
    DLL="SLOVAK.DLL"
    Lang="Slovensky/Slovak"
elif [ "$POL_LANG" = "sl" ]; then # Slovenian
    lang_setup="irfanview_lang_slovenscina.exe"
    DLL="SLOVENSCINA.DLL"
    Lang="Slovenian"
elif [ "$POL_LANG" = "es" ]; then # Spanish
    lang_setup="irfanview_lang_spanish.exe"
    DLL="SPANISH.DLL"
    Lang="Español"
elif [ "$POL_LANG" = "sv" ]; then # Swedish
    lang_setup="irfanview_lang_swedish.exe"
    DLL="SWEDISH.DLL"
    Lang="Svenska"
elif [ "$POL_LANG" = "tr" ]; then # Turkish
    lang_setup="irfanview_lang_turkish.exe"
    DLL="TURKISH.DLL"
    Lang="Türkçe"
elif [ "$POL_LANG" = "uk" ]; then # Ukrainian
    lang_setup="irfanview_lang_ukrainian.exe"
    DLL="UKRAINIAN.DLL"
    Lang="Ukrainian"
elif [ "$POL_LANG" = "uz" ]; then # Uzbek
    lang_setup="irfanview_lang_uzbek.exe"
    DLL="UZBEK.DLL"
    Lang="Uzbek"
else
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
    POL_Browser "https://www.irfanview.com/languages.htm"
fi

if [ "$lang_install" = "true" ]; then
    cd "$POL_System_TmpDir"
    POL_Download "https://www.irfanview.net/lang/$lang_setup"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$POL_System_TmpDir/$lang_setup"
    POL_Wine_WaitExit "$TITLE"
fi

POL_Debug_Message "Selected language. Wine: $POL_LANG; lang_install: $lang_install; DLL: $DLL; Lang: $Lang; lang_setup: $lang_setup;"

cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/$i_ini"
[Language]
DLL=$DLL
Lang=$Lang
[Toolbar]
Skin=Grosberg_32.png
Size=32
EOF

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Wednesday 13 October 2021 at 17:53
Script approved.

Edited by Yaotl

Yaotl Monday 12 April 2021 at 22:56
Yaotl Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,8 +1,8 @@
 #!/usr/bin/env playonlinux-bash
 # Date : (2019-08-02 03-49)
-# Last revision : (2020-09-18 04-16)
-# Wine version used : 5.0.2
-# Distribution used to test : Linux Mint 20 Cinnamon
+# Last revision : (2021-04-12 22-55)
+# Wine version used : 5.0.4
+# Distribution used to test : Linux Mint 20.1 Cinnamon
 # Author : Yaotl
 # PlayOnLinux : 4.3.4
 # Script licence : GPL3
@@ -27,34 +27,35 @@
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "auto"
-POL_Wine_PrefixCreate "5.0.2"
+POL_Wine_PrefixCreate "5.0.4"
 
 POL_Call POL_Install_corefonts
 
-Set_OS "win10"
+#Set_OS "win10"
 
 # Download
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"
 if [ "$POL_ARCH" == "amd64" ]; then
-    SetupFile="iview454_x64_setup.exe"
-    SetupFilePlugins="iview454_plugins_x64_setup.exe"
+    SetupFile="iview457_x64_setup.exe"
+    SetupFilePlugins="iview457_plugins_x64_setup.exe"
     ShortEXE="i_view64.exe"
     i_ini="i_view64.ini"
-    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "9226720b667607960130122721980966"
-    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "f7226de4cd50420f31c2fc1853871bf6"
+    Archive="IrfanView457_64Bit.7z"
+    POL_Download "http://yaotl.heliohost.us/resources/setups/$PREFIX/$Archive" "6f98d28f4d7d3e2727a37cc633ab9ffb"
 else
-    SetupFile="iview454_setup.exe"
-    SetupFilePlugins="iview454_plugins_setup.exe"
+    SetupFile="iview457_setup.exe"
+    SetupFilePlugins="iview457_plugins_setup.exe"
     ShortEXE="i_view32.exe"
     i_ini="i_view32.ini"
-    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "56f61f2fedfad07c4690077e7765c7c2"
-    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "592147a2fff29c3ac985498379b0b9a1"
+    Archive="IrfanView457_32Bit.7z"
+    POL_Download "http://yaotl.heliohost.us/resources/setups/$PREFIX/$Archive" "9e03f7df5a36c6da23f63c2833210364"
 fi
 # toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
 POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"
 
 # Installation
+7z e "$POL_System_TmpDir/$Archive"
 POL_Wine_WaitBefore "$TITLE"
 POL_Wine start /unix "$POL_System_TmpDir/$SetupFile" /silent /folder="C:\Program Files\IrfanView"
 POL_Wine_WaitExit "$TITLE"
@@ -67,7 +68,7 @@
 
 # Automatic language selection
 lang_install="true"
-
+ 
 if [ "$POL_LANG" == "en" ]; then # English
     lang_install="false"
     DLL="ENGLISH"

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-08-02 03-49)
# Last revision : (2021-04-12 22-55)
# Wine version used : 5.0.4
# Distribution used to test : Linux Mint 20.1 Cinnamon
# Author : Yaotl
# PlayOnLinux : 4.3.4
# Script licence : GPL3


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

TITLE="IrfanView"
PREFIX="IrfanView"

# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 3581
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.com/" "Yaotl" "$PREFIX"

POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "5.0.4"

POL_Call POL_Install_corefonts

#Set_OS "win10"

# Download
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
if [ "$POL_ARCH" == "amd64" ]; then
    SetupFile="iview457_x64_setup.exe"
    SetupFilePlugins="iview457_plugins_x64_setup.exe"
    ShortEXE="i_view64.exe"
    i_ini="i_view64.ini"
    Archive="IrfanView457_64Bit.7z"
    POL_Download "http://yaotl.heliohost.us/resources/setups/$PREFIX/$Archive" "6f98d28f4d7d3e2727a37cc633ab9ffb"
else
    SetupFile="iview457_setup.exe"
    SetupFilePlugins="iview457_plugins_setup.exe"
    ShortEXE="i_view32.exe"
    i_ini="i_view32.ini"
    Archive="IrfanView457_32Bit.7z"
    POL_Download "http://yaotl.heliohost.us/resources/setups/$PREFIX/$Archive" "9e03f7df5a36c6da23f63c2833210364"
fi
# toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"

# Installation
7z e "$POL_System_TmpDir/$Archive"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFile" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFilePlugins" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
unzip "$POL_System_TmpDir/irfanview_skin_grosberg.zip" -d "$WINEPREFIX/drive_c/Program Files/IrfanView/Toolbars"

# Create Shortcut
POL_Shortcut "$ShortEXE" "$TITLE" "" "" "Graphics;"

# Automatic language selection
lang_install="true"
 
if [ "$POL_LANG" == "en" ]; then # English
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
elif [ "$POL_LANG" == "de" ]; then # German
    lang_install="false"
    DLL="DEUTSCH.DLL"
    Lang="Deutsch"
elif [ "$POL_LANG" == "fr" ]; then # French
    lang_setup="irfanview_lang_french.exe"
    DLL="FRENCH.DLL"
    Lang="Francais"
elif [ "$POL_LANG" == "ar" ]; then # Arabic
    lang_setup="irfanview_lang_arabic.exe"
    DLL="ARABIC.DLL"
    Lang="Arabic"
elif [ "$POL_LANG" == "bg" ]; then # Bulgarian
    lang_setup="irfanview_lang_bulgarian.exe"
    DLL="BULGARIAN.DLL"
    Lang="Bulgarian"
elif [ "$POL_LANG" == "ca" ]; then # Catalan
    lang_setup="irfanview_lang_catalan.exe"
    DLL="CATALAN.DLL"
    Lang="Català"
elif [ "$POL_LANG" == "zh" ]; then # Chinese
    lang_setup="irfanview_lang_chinese.exe"
    DLL="CHINESE_SIMP.DLL"
    Lang="Chinese simple"
elif [ "$POL_LANG" == "hr" ]; then # Croatian
    lang_setup="irfanview_lang_hrvatski.exe"
    DLL="HRVATSKI.DLL"
    Lang="Hrvatski"
elif [ "$POL_LANG" == "cs" ]; then # Czech
    lang_setup="irfanview_lang_czech.exe"
    DLL="CZECH.DLL"
    Lang="Czech"
elif [ "$POL_LANG" == "da" ]; then # Danish
    lang_setup="irfanview_lang_dansk.exe"
    DLL="DANSK.DLL"
    Lang="Dansk"
elif [ "$POL_LANG" == "et" ]; then # Estonian
    lang_setup="irfanview_lang_estonian.exe"
    DLL="ESTONIAN.DLL"
    Lang="Eesti"
elif [ "$POL_LANG" == "fi" ]; then # Finnish
    lang_setup="irfanview_lang_finnish.exe"
    DLL="FINNISH.DLL"
    Lang="Suomi"
elif [ "$POL_LANG" == "el" ]; then # Greek
    lang_setup="irfanview_lang_greek.exe"
    DLL="HELLENIC.DLL"
    Lang="Greek"
elif [ "$POL_LANG" == "he" ]; then # Hebrew
    lang_setup="irfanview_lang_hebrew.exe"
    DLL="HEBREW.DLL"
    Lang="Hebrew"
elif [ "$POL_LANG" == "hu" ]; then # Hungarian
    lang_setup="irfanview_lang_hungarian.exe"
    DLL="MAGYAR.DLL"
    Lang="Magyar"
elif [ "$POL_LANG" == "it" ]; then # Italian
    lang_setup="irfanview_lang_italian.exe"
    DLL="ITALIAN.DLL"
    Lang="Italiano"
elif [ "$POL_LANG" == "ja" ]; then # Japanese
    lang_setup="irfanview_lang_japanese.exe"
    DLL="JAPANESE.DLL"
    Lang="Japanese"
elif [ "$POL_LANG" == "ko" ]; then # Korean
    lang_setup="irfanview_lang_korean.exe"
    DLL="KOREAN.DLL"
    Lang="Korean"
elif [ "$POL_LANG" == "lv" ]; then # Latvian
    lang_setup="irfanview_lang_latvian.exe"
    DLL="LATVIAN.DLL"
    Lang="Latviešu (Latvian)"
elif [ "$POL_LANG" == "lt" ]; then # Lithuanian
    lang_setup="irfanview_lang_lithuanian.exe"
    DLL="LITHUANIAN.DLL"
    Lang="Lithuanian"
elif [ "$POL_LANG" == "nl" ]; then # Nederlands
    lang_setup="irfanview_lang_nederlands.exe"
    DLL="NEDERLANDS.DLL"
    Lang="Nederlands"
elif [ "$POL_LANG" == "pl" ]; then # Polski
    lang_setup="irfanview_lang_polski.exe"
    DLL="POLSKI.DLL"
    Lang="Polski"
elif [ "$POL_LANG" == "pt" ]; then # Portuguese
    lang_setup="irfanview_lang_portuguese.exe"
    DLL="PORTUGUESE.DLL"
    Lang="Portuguese (Portugal)"
elif [ "$POL_LANG" == "ro" ]; then # Romanian
    lang_setup="irfanview_lang_romanian.exe"
    DLL="ROMANIAN.DLL"
    Lang="Romanian"
elif [ "$POL_LANG" == "ru" ]; then # Russian
    lang_setup="irfanview_lang_russian.exe"
    DLL="RUSSIAN.DLL"
    Lang="Russian"
elif [ "$POL_LANG" == "sk" ]; then # Slovak
    lang_setup="irfanview_lang_slovak.exe"
    DLL="SLOVAK.DLL"
    Lang="Slovensky/Slovak"
elif [ "$POL_LANG" == "sl" ]; then # Slovenian
    lang_setup="irfanview_lang_slovenscina.exe"
    DLL="SLOVENSCINA.DLL"
    Lang="Slovenian"
elif [ "$POL_LANG" == "es" ]; then # Spanish
    lang_setup="irfanview_lang_spanish.exe"
    DLL="SPANISH.DLL"
    Lang="Español"
elif [ "$POL_LANG" == "sv" ]; then # Swedish
    lang_setup="irfanview_lang_swedish.exe"
    DLL="SWEDISH.DLL"
    Lang="Svenska"
elif [ "$POL_LANG" == "tr" ]; then # Turkish
    lang_setup="irfanview_lang_turkish.exe"
    DLL="TURKISH.DLL"
    Lang="Türkçe"
elif [ "$POL_LANG" == "uk" ]; then # Ukrainian
    lang_setup="irfanview_lang_ukrainian.exe"
    DLL="UKRAINIAN.DLL"
    Lang="Ukrainian"
elif [ "$POL_LANG" == "uz" ]; then # Uzbek
    lang_setup="irfanview_lang_uzbek.exe"
    DLL="UZBEK.DLL"
    Lang="Uzbek"
else
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
    POL_Browser "https://www.irfanview.com/languages.htm"
fi

if [ "$lang_install" == "true" ]; then
    cd "$POL_System_TmpDir"
    POL_Download "https://www.irfanview.net/lang/$lang_setup"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$POL_System_TmpDir/$lang_setup"
fi

POL_Debug_Message "Selected language. Wine: $POL_LANG; lang_install: $lang_install; DLL: $DLL; Lang: $Lang; lang_setup: $lang_setup;"

cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/$i_ini"
[Language]
DLL=$DLL
Lang=$Lang
[Toolbar]
Skin=Grosberg_32.png
Size=32
EOF

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Thursday 15 April 2021 at 11:03
Approved.
Anonymous
Saturday 5 June 2021 at 14:48
The download from subdomain yaotl.heliohost.us is not reachable although heliohost.us website is online.
Yaotl Saturday 5 December 2020 at 17:13
Yaotl Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,11 +1,12 @@
 #!/usr/bin/env playonlinux-bash
 # Date : (2019-08-02 03-49)
-# Last revision : (2020-09-18 04-16)
-# Wine version used : 5.0.2
+# Last revision : (2020-12-06 21-04)
+# Wine version used : 5.0.3
 # Distribution used to test : Linux Mint 20 Cinnamon
 # Author : Yaotl
 # PlayOnLinux : 4.3.4
 # Script licence : GPL3
+# Program licence : https://www.irfanview.com/eula.htm
 
 
 [ "$PLAYONLINUX" = "" ] && exit 0
@@ -27,7 +28,7 @@
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "auto"
-POL_Wine_PrefixCreate "5.0.2"
+POL_Wine_PrefixCreate "5.0.3"
 
 POL_Call POL_Install_corefonts
 
@@ -37,19 +38,19 @@
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"
 if [ "$POL_ARCH" == "amd64" ]; then
-    SetupFile="iview454_x64_setup.exe"
-    SetupFilePlugins="iview454_plugins_x64_setup.exe"
+    SetupFile="iview456_x64_setup.exe"
+    SetupFilePlugins="iview456_plugins_x64_setup.exe"
     ShortEXE="i_view64.exe"
     i_ini="i_view64.ini"
-    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "9226720b667607960130122721980966"
-    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "f7226de4cd50420f31c2fc1853871bf6"
+    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "a6c1653bdb69aaf72198794e2000f5f1"
+    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "1f3bbec3b28535138f1848442fa87f7b"
 else
-    SetupFile="iview454_setup.exe"
-    SetupFilePlugins="iview454_plugins_setup.exe"
+    SetupFile="iview456_setup.exe"
+    SetupFilePlugins="iview456_plugins_setup.exe"
     ShortEXE="i_view32.exe"
     i_ini="i_view32.ini"
-    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "56f61f2fedfad07c4690077e7765c7c2"
-    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "592147a2fff29c3ac985498379b0b9a1"
+    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "9b711b1c3766a74c5bb4cdfbef2a2a99"
+    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "b82f5055bd17fdeb6cdaca9cf31a666f"
 fi
 # toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
 POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-08-02 03-49)
# Last revision : (2020-12-06 21-04)
# Wine version used : 5.0.3
# Distribution used to test : Linux Mint 20 Cinnamon
# Author : Yaotl
# PlayOnLinux : 4.3.4
# Script licence : GPL3
# Program licence : https://www.irfanview.com/eula.htm


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

TITLE="IrfanView"
PREFIX="IrfanView"

# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 3581
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.com/" "Yaotl" "$PREFIX"

POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "5.0.3"

POL_Call POL_Install_corefonts

Set_OS "win10"

# Download
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
if [ "$POL_ARCH" == "amd64" ]; then
    SetupFile="iview456_x64_setup.exe"
    SetupFilePlugins="iview456_plugins_x64_setup.exe"
    ShortEXE="i_view64.exe"
    i_ini="i_view64.ini"
    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "a6c1653bdb69aaf72198794e2000f5f1"
    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "1f3bbec3b28535138f1848442fa87f7b"
else
    SetupFile="iview456_setup.exe"
    SetupFilePlugins="iview456_plugins_setup.exe"
    ShortEXE="i_view32.exe"
    i_ini="i_view32.ini"
    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "9b711b1c3766a74c5bb4cdfbef2a2a99"
    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "b82f5055bd17fdeb6cdaca9cf31a666f"
fi
# toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"

# Installation
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFile" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFilePlugins" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
unzip "$POL_System_TmpDir/irfanview_skin_grosberg.zip" -d "$WINEPREFIX/drive_c/Program Files/IrfanView/Toolbars"

# Create Shortcut
POL_Shortcut "$ShortEXE" "$TITLE" "" "" "Graphics;"

# Automatic language selection
lang_install="true"

if [ "$POL_LANG" == "en" ]; then # English
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
elif [ "$POL_LANG" == "de" ]; then # German
    lang_install="false"
    DLL="DEUTSCH.DLL"
    Lang="Deutsch"
elif [ "$POL_LANG" == "fr" ]; then # French
    lang_setup="irfanview_lang_french.exe"
    DLL="FRENCH.DLL"
    Lang="Francais"
elif [ "$POL_LANG" == "ar" ]; then # Arabic
    lang_setup="irfanview_lang_arabic.exe"
    DLL="ARABIC.DLL"
    Lang="Arabic"
elif [ "$POL_LANG" == "bg" ]; then # Bulgarian
    lang_setup="irfanview_lang_bulgarian.exe"
    DLL="BULGARIAN.DLL"
    Lang="Bulgarian"
elif [ "$POL_LANG" == "ca" ]; then # Catalan
    lang_setup="irfanview_lang_catalan.exe"
    DLL="CATALAN.DLL"
    Lang="Català"
elif [ "$POL_LANG" == "zh" ]; then # Chinese
    lang_setup="irfanview_lang_chinese.exe"
    DLL="CHINESE_SIMP.DLL"
    Lang="Chinese simple"
elif [ "$POL_LANG" == "hr" ]; then # Croatian
    lang_setup="irfanview_lang_hrvatski.exe"
    DLL="HRVATSKI.DLL"
    Lang="Hrvatski"
elif [ "$POL_LANG" == "cs" ]; then # Czech
    lang_setup="irfanview_lang_czech.exe"
    DLL="CZECH.DLL"
    Lang="Czech"
elif [ "$POL_LANG" == "da" ]; then # Danish
    lang_setup="irfanview_lang_dansk.exe"
    DLL="DANSK.DLL"
    Lang="Dansk"
elif [ "$POL_LANG" == "et" ]; then # Estonian
    lang_setup="irfanview_lang_estonian.exe"
    DLL="ESTONIAN.DLL"
    Lang="Eesti"
elif [ "$POL_LANG" == "fi" ]; then # Finnish
    lang_setup="irfanview_lang_finnish.exe"
    DLL="FINNISH.DLL"
    Lang="Suomi"
elif [ "$POL_LANG" == "el" ]; then # Greek
    lang_setup="irfanview_lang_greek.exe"
    DLL="HELLENIC.DLL"
    Lang="Greek"
elif [ "$POL_LANG" == "he" ]; then # Hebrew
    lang_setup="irfanview_lang_hebrew.exe"
    DLL="HEBREW.DLL"
    Lang="Hebrew"
elif [ "$POL_LANG" == "hu" ]; then # Hungarian
    lang_setup="irfanview_lang_hungarian.exe"
    DLL="MAGYAR.DLL"
    Lang="Magyar"
elif [ "$POL_LANG" == "it" ]; then # Italian
    lang_setup="irfanview_lang_italian.exe"
    DLL="ITALIAN.DLL"
    Lang="Italiano"
elif [ "$POL_LANG" == "ja" ]; then # Japanese
    lang_setup="irfanview_lang_japanese.exe"
    DLL="JAPANESE.DLL"
    Lang="Japanese"
elif [ "$POL_LANG" == "ko" ]; then # Korean
    lang_setup="irfanview_lang_korean.exe"
    DLL="KOREAN.DLL"
    Lang="Korean"
elif [ "$POL_LANG" == "lv" ]; then # Latvian
    lang_setup="irfanview_lang_latvian.exe"
    DLL="LATVIAN.DLL"
    Lang="Latviešu (Latvian)"
elif [ "$POL_LANG" == "lt" ]; then # Lithuanian
    lang_setup="irfanview_lang_lithuanian.exe"
    DLL="LITHUANIAN.DLL"
    Lang="Lithuanian"
elif [ "$POL_LANG" == "nl" ]; then # Nederlands
    lang_setup="irfanview_lang_nederlands.exe"
    DLL="NEDERLANDS.DLL"
    Lang="Nederlands"
elif [ "$POL_LANG" == "pl" ]; then # Polski
    lang_setup="irfanview_lang_polski.exe"
    DLL="POLSKI.DLL"
    Lang="Polski"
elif [ "$POL_LANG" == "pt" ]; then # Portuguese
    lang_setup="irfanview_lang_portuguese.exe"
    DLL="PORTUGUESE.DLL"
    Lang="Portuguese (Portugal)"
elif [ "$POL_LANG" == "ro" ]; then # Romanian
    lang_setup="irfanview_lang_romanian.exe"
    DLL="ROMANIAN.DLL"
    Lang="Romanian"
elif [ "$POL_LANG" == "ru" ]; then # Russian
    lang_setup="irfanview_lang_russian.exe"
    DLL="RUSSIAN.DLL"
    Lang="Russian"
elif [ "$POL_LANG" == "sk" ]; then # Slovak
    lang_setup="irfanview_lang_slovak.exe"
    DLL="SLOVAK.DLL"
    Lang="Slovensky/Slovak"
elif [ "$POL_LANG" == "sl" ]; then # Slovenian
    lang_setup="irfanview_lang_slovenscina.exe"
    DLL="SLOVENSCINA.DLL"
    Lang="Slovenian"
elif [ "$POL_LANG" == "es" ]; then # Spanish
    lang_setup="irfanview_lang_spanish.exe"
    DLL="SPANISH.DLL"
    Lang="Español"
elif [ "$POL_LANG" == "sv" ]; then # Swedish
    lang_setup="irfanview_lang_swedish.exe"
    DLL="SWEDISH.DLL"
    Lang="Svenska"
elif [ "$POL_LANG" == "tr" ]; then # Turkish
    lang_setup="irfanview_lang_turkish.exe"
    DLL="TURKISH.DLL"
    Lang="Türkçe"
elif [ "$POL_LANG" == "uk" ]; then # Ukrainian
    lang_setup="irfanview_lang_ukrainian.exe"
    DLL="UKRAINIAN.DLL"
    Lang="Ukrainian"
elif [ "$POL_LANG" == "uz" ]; then # Uzbek
    lang_setup="irfanview_lang_uzbek.exe"
    DLL="UZBEK.DLL"
    Lang="Uzbek"
else
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
    POL_Browser "https://www.irfanview.com/languages.htm"
fi

if [ "$lang_install" == "true" ]; then
    cd "$POL_System_TmpDir"
    POL_Download "https://www.irfanview.net/lang/$lang_setup"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$POL_System_TmpDir/$lang_setup"
fi

POL_Debug_Message "Selected language. Wine: $POL_LANG; lang_install: $lang_install; DLL: $DLL; Lang: $Lang; lang_setup: $lang_setup;"

cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/$i_ini"
[Language]
DLL=$DLL
Lang=$Lang
[Toolbar]
Skin=Grosberg_32.png
Size=32
EOF

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Edited by Yaotl

Yaotl Thursday 17 September 2020 at 4:33
Yaotl Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,8 +1,8 @@
 #!/usr/bin/env playonlinux-bash
 # Date : (2019-08-02 03-49)
-# Last revision : (2020-01-09 06-34)
-# Wine version used : 4.0.3
-# Distribution used to test : Linux Mint 19.3 Cinnamon
+# Last revision : (2020-09-18 04-16)
+# Wine version used : 5.0.2
+# Distribution used to test : Linux Mint 20 Cinnamon
 # Author : Yaotl
 # PlayOnLinux : 4.3.4
 # Script licence : GPL3
@@ -24,57 +24,201 @@
 
 POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."
 
-# Download
-POL_System_TmpCreate "$PREFIX"
-cd "$POL_System_TmpDir"
-POL_Download "http://download.betanews.com/download/967963863-1/iview454_setup.exe" "56f61f2fedfad07c4690077e7765c7c2"
-POL_Download "http://download.betanews.com/download/1099412658-1/iview454_plugins_setup.exe" "592147a2fff29c3ac985498379b0b9a1"
-
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "4.0.3"
+POL_System_SetArch "auto"
+POL_Wine_PrefixCreate "5.0.2"
 
 POL_Call POL_Install_corefonts
 
 Set_OS "win10"
 
-# Installation
+# Download
+POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"
+if [ "$POL_ARCH" == "amd64" ]; then
+    SetupFile="iview454_x64_setup.exe"
+    SetupFilePlugins="iview454_plugins_x64_setup.exe"
+    ShortEXE="i_view64.exe"
+    i_ini="i_view64.ini"
+    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "9226720b667607960130122721980966"
+    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "f7226de4cd50420f31c2fc1853871bf6"
+else
+    SetupFile="iview454_setup.exe"
+    SetupFilePlugins="iview454_plugins_setup.exe"
+    ShortEXE="i_view32.exe"
+    i_ini="i_view32.ini"
+    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "56f61f2fedfad07c4690077e7765c7c2"
+    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "592147a2fff29c3ac985498379b0b9a1"
+fi
+# toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
+POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"
+
+# Installation
 POL_Wine_WaitBefore "$TITLE"
-POL_Wine start /unix iview454_setup.exe /silent /folder='C:\Program Files\IrfanView'
+POL_Wine start /unix "$POL_System_TmpDir/$SetupFile" /silent /folder="C:\Program Files\IrfanView"
 POL_Wine_WaitExit "$TITLE"
-POL_Wine start /unix iview454_plugins_setup.exe /silent /folder='C:\Program Files\IrfanView'
+POL_Wine start /unix "$POL_System_TmpDir/$SetupFilePlugins" /silent /folder="C:\Program Files\IrfanView"
 POL_Wine_WaitExit "$TITLE"
+unzip "$POL_System_TmpDir/irfanview_skin_grosberg.zip" -d "$WINEPREFIX/drive_c/Program Files/IrfanView/Toolbars"
 
 # Create Shortcut
-POL_Shortcut "i_view32.exe" "$TITLE" "" "" "Graphics;"
+POL_Shortcut "$ShortEXE" "$TITLE" "" "" "Graphics;"
 
 # Automatic language selection
-if [ "$POL_LANG" = "en" ]; then
+lang_install="true"
+
+if [ "$POL_LANG" == "en" ]; then # English
+    lang_install="false"
     DLL="ENGLISH"
     Lang="English"
-elif [ "$POL_LANG" = "de" ]; then
+elif [ "$POL_LANG" == "de" ]; then # German
+    lang_install="false"
     DLL="DEUTSCH.DLL"
     Lang="Deutsch"
-elif [ "$POL_LANG" = "fr" ]; then
-    cd "$WINEPREFIX/drive_c/Program Files/IrfanView/Languages"
-    POL_Download "https://www.irfanview.net/lang/irfanview_lang_french.zip"
-    unzip irfanview_lang_french.zip; rm -r irfanview_lang_french.zip;
+elif [ "$POL_LANG" == "fr" ]; then # French
+    lang_setup="irfanview_lang_french.exe"
     DLL="FRENCH.DLL"
     Lang="Francais"
+elif [ "$POL_LANG" == "ar" ]; then # Arabic
+    lang_setup="irfanview_lang_arabic.exe"
+    DLL="ARABIC.DLL"
+    Lang="Arabic"
+elif [ "$POL_LANG" == "bg" ]; then # Bulgarian
+    lang_setup="irfanview_lang_bulgarian.exe"
+    DLL="BULGARIAN.DLL"
+    Lang="Bulgarian"
+elif [ "$POL_LANG" == "ca" ]; then # Catalan
+    lang_setup="irfanview_lang_catalan.exe"
+    DLL="CATALAN.DLL"
+    Lang="Català"
+elif [ "$POL_LANG" == "zh" ]; then # Chinese
+    lang_setup="irfanview_lang_chinese.exe"
+    DLL="CHINESE_SIMP.DLL"
+    Lang="Chinese simple"
+elif [ "$POL_LANG" == "hr" ]; then # Croatian
+    lang_setup="irfanview_lang_hrvatski.exe"
+    DLL="HRVATSKI.DLL"
+    Lang="Hrvatski"
+elif [ "$POL_LANG" == "cs" ]; then # Czech
+    lang_setup="irfanview_lang_czech.exe"
+    DLL="CZECH.DLL"
+    Lang="Czech"
+elif [ "$POL_LANG" == "da" ]; then # Danish
+    lang_setup="irfanview_lang_dansk.exe"
+    DLL="DANSK.DLL"
+    Lang="Dansk"
+elif [ "$POL_LANG" == "et" ]; then # Estonian
+    lang_setup="irfanview_lang_estonian.exe"
+    DLL="ESTONIAN.DLL"
+    Lang="Eesti"
+elif [ "$POL_LANG" == "fi" ]; then # Finnish
+    lang_setup="irfanview_lang_finnish.exe"
+    DLL="FINNISH.DLL"
+    Lang="Suomi"
+elif [ "$POL_LANG" == "el" ]; then # Greek
+    lang_setup="irfanview_lang_greek.exe"
+    DLL="HELLENIC.DLL"
+    Lang="Greek"
+elif [ "$POL_LANG" == "he" ]; then # Hebrew
+    lang_setup="irfanview_lang_hebrew.exe"
+    DLL="HEBREW.DLL"
+    Lang="Hebrew"
+elif [ "$POL_LANG" == "hu" ]; then # Hungarian
+    lang_setup="irfanview_lang_hungarian.exe"
+    DLL="MAGYAR.DLL"
+    Lang="Magyar"
+elif [ "$POL_LANG" == "it" ]; then # Italian
+    lang_setup="irfanview_lang_italian.exe"
+    DLL="ITALIAN.DLL"
+    Lang="Italiano"
+elif [ "$POL_LANG" == "ja" ]; then # Japanese
+    lang_setup="irfanview_lang_japanese.exe"
+    DLL="JAPANESE.DLL"
+    Lang="Japanese"
+elif [ "$POL_LANG" == "ko" ]; then # Korean
+    lang_setup="irfanview_lang_korean.exe"
+    DLL="KOREAN.DLL"
+    Lang="Korean"
+elif [ "$POL_LANG" == "lv" ]; then # Latvian
+    lang_setup="irfanview_lang_latvian.exe"
+    DLL="LATVIAN.DLL"
+    Lang="Latviešu (Latvian)"
+elif [ "$POL_LANG" == "lt" ]; then # Lithuanian
+    lang_setup="irfanview_lang_lithuanian.exe"
+    DLL="LITHUANIAN.DLL"
+    Lang="Lithuanian"
+elif [ "$POL_LANG" == "nl" ]; then # Nederlands
+    lang_setup="irfanview_lang_nederlands.exe"
+    DLL="NEDERLANDS.DLL"
+    Lang="Nederlands"
+elif [ "$POL_LANG" == "pl" ]; then # Polski
+    lang_setup="irfanview_lang_polski.exe"
+    DLL="POLSKI.DLL"
+    Lang="Polski"
+elif [ "$POL_LANG" == "pt" ]; then # Portuguese
+    lang_setup="irfanview_lang_portuguese.exe"
+    DLL="PORTUGUESE.DLL"
+    Lang="Portuguese (Portugal)"
+elif [ "$POL_LANG" == "ro" ]; then # Romanian
+    lang_setup="irfanview_lang_romanian.exe"
+    DLL="ROMANIAN.DLL"
+    Lang="Romanian"
+elif [ "$POL_LANG" == "ru" ]; then # Russian
+    lang_setup="irfanview_lang_russian.exe"
+    DLL="RUSSIAN.DLL"
+    Lang="Russian"
+elif [ "$POL_LANG" == "sk" ]; then # Slovak
+    lang_setup="irfanview_lang_slovak.exe"
+    DLL="SLOVAK.DLL"
+    Lang="Slovensky/Slovak"
+elif [ "$POL_LANG" == "sl" ]; then # Slovenian
+    lang_setup="irfanview_lang_slovenscina.exe"
+    DLL="SLOVENSCINA.DLL"
+    Lang="Slovenian"
+elif [ "$POL_LANG" == "es" ]; then # Spanish
+    lang_setup="irfanview_lang_spanish.exe"
+    DLL="SPANISH.DLL"
+    Lang="Español"
+elif [ "$POL_LANG" == "sv" ]; then # Swedish
+    lang_setup="irfanview_lang_swedish.exe"
+    DLL="SWEDISH.DLL"
+    Lang="Svenska"
+elif [ "$POL_LANG" == "tr" ]; then # Turkish
+    lang_setup="irfanview_lang_turkish.exe"
+    DLL="TURKISH.DLL"
+    Lang="Türkçe"
+elif [ "$POL_LANG" == "uk" ]; then # Ukrainian
+    lang_setup="irfanview_lang_ukrainian.exe"
+    DLL="UKRAINIAN.DLL"
+    Lang="Ukrainian"
+elif [ "$POL_LANG" == "uz" ]; then # Uzbek
+    lang_setup="irfanview_lang_uzbek.exe"
+    DLL="UZBEK.DLL"
+    Lang="Uzbek"
 else
+    lang_install="false"
     DLL="ENGLISH"
     Lang="English"
     POL_Browser "https://www.irfanview.com/languages.htm"
 fi
 
-cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/i_view32.ini"
+if [ "$lang_install" == "true" ]; then
+    cd "$POL_System_TmpDir"
+    POL_Download "https://www.irfanview.net/lang/$lang_setup"
+    POL_Wine_WaitBefore "$TITLE"
+    POL_Wine start /unix "$POL_System_TmpDir/$lang_setup"
+fi
+
+POL_Debug_Message "Selected language. Wine: $POL_LANG; lang_install: $lang_install; DLL: $DLL; Lang: $Lang; lang_setup: $lang_setup;"
+
+cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/$i_ini"
 [Language]
 DLL=$DLL
 Lang=$Lang
 [Toolbar]
-Skin=Grosberg_24.png
-Size=24
+Skin=Grosberg_32.png
+Size=32
 EOF
 
 # Cleanup

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-08-02 03-49)
# Last revision : (2020-09-18 04-16)
# Wine version used : 5.0.2
# Distribution used to test : Linux Mint 20 Cinnamon
# Author : Yaotl
# PlayOnLinux : 4.3.4
# Script licence : GPL3


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

TITLE="IrfanView"
PREFIX="IrfanView"

# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 3581
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.com/" "Yaotl" "$PREFIX"

POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "5.0.2"

POL_Call POL_Install_corefonts

Set_OS "win10"

# Download
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
if [ "$POL_ARCH" == "amd64" ]; then
    SetupFile="iview454_x64_setup.exe"
    SetupFilePlugins="iview454_plugins_x64_setup.exe"
    ShortEXE="i_view64.exe"
    i_ini="i_view64.ini"
    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "9226720b667607960130122721980966"
    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "f7226de4cd50420f31c2fc1853871bf6"
else
    SetupFile="iview454_setup.exe"
    SetupFilePlugins="iview454_plugins_setup.exe"
    ShortEXE="i_view32.exe"
    i_ini="i_view32.ini"
    POL_Download "http://download.betanews.com/download/967963863-1/$SetupFile" "56f61f2fedfad07c4690077e7765c7c2"
    POL_Download "http://download.betanews.com/download/1099412658-1/$SetupFilePlugins" "592147a2fff29c3ac985498379b0b9a1"
fi
# toolbar skin: Michael Grosberg, Button sizes: 16, 24, 32
POL_Download "https://www.irfanview.com/skins/irfanview_skin_grosberg.zip" "4f9da947262e03be8afb545391453931"

# Installation
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFile" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
POL_Wine start /unix "$POL_System_TmpDir/$SetupFilePlugins" /silent /folder="C:\Program Files\IrfanView"
POL_Wine_WaitExit "$TITLE"
unzip "$POL_System_TmpDir/irfanview_skin_grosberg.zip" -d "$WINEPREFIX/drive_c/Program Files/IrfanView/Toolbars"

# Create Shortcut
POL_Shortcut "$ShortEXE" "$TITLE" "" "" "Graphics;"

# Automatic language selection
lang_install="true"

if [ "$POL_LANG" == "en" ]; then # English
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
elif [ "$POL_LANG" == "de" ]; then # German
    lang_install="false"
    DLL="DEUTSCH.DLL"
    Lang="Deutsch"
elif [ "$POL_LANG" == "fr" ]; then # French
    lang_setup="irfanview_lang_french.exe"
    DLL="FRENCH.DLL"
    Lang="Francais"
elif [ "$POL_LANG" == "ar" ]; then # Arabic
    lang_setup="irfanview_lang_arabic.exe"
    DLL="ARABIC.DLL"
    Lang="Arabic"
elif [ "$POL_LANG" == "bg" ]; then # Bulgarian
    lang_setup="irfanview_lang_bulgarian.exe"
    DLL="BULGARIAN.DLL"
    Lang="Bulgarian"
elif [ "$POL_LANG" == "ca" ]; then # Catalan
    lang_setup="irfanview_lang_catalan.exe"
    DLL="CATALAN.DLL"
    Lang="Català"
elif [ "$POL_LANG" == "zh" ]; then # Chinese
    lang_setup="irfanview_lang_chinese.exe"
    DLL="CHINESE_SIMP.DLL"
    Lang="Chinese simple"
elif [ "$POL_LANG" == "hr" ]; then # Croatian
    lang_setup="irfanview_lang_hrvatski.exe"
    DLL="HRVATSKI.DLL"
    Lang="Hrvatski"
elif [ "$POL_LANG" == "cs" ]; then # Czech
    lang_setup="irfanview_lang_czech.exe"
    DLL="CZECH.DLL"
    Lang="Czech"
elif [ "$POL_LANG" == "da" ]; then # Danish
    lang_setup="irfanview_lang_dansk.exe"
    DLL="DANSK.DLL"
    Lang="Dansk"
elif [ "$POL_LANG" == "et" ]; then # Estonian
    lang_setup="irfanview_lang_estonian.exe"
    DLL="ESTONIAN.DLL"
    Lang="Eesti"
elif [ "$POL_LANG" == "fi" ]; then # Finnish
    lang_setup="irfanview_lang_finnish.exe"
    DLL="FINNISH.DLL"
    Lang="Suomi"
elif [ "$POL_LANG" == "el" ]; then # Greek
    lang_setup="irfanview_lang_greek.exe"
    DLL="HELLENIC.DLL"
    Lang="Greek"
elif [ "$POL_LANG" == "he" ]; then # Hebrew
    lang_setup="irfanview_lang_hebrew.exe"
    DLL="HEBREW.DLL"
    Lang="Hebrew"
elif [ "$POL_LANG" == "hu" ]; then # Hungarian
    lang_setup="irfanview_lang_hungarian.exe"
    DLL="MAGYAR.DLL"
    Lang="Magyar"
elif [ "$POL_LANG" == "it" ]; then # Italian
    lang_setup="irfanview_lang_italian.exe"
    DLL="ITALIAN.DLL"
    Lang="Italiano"
elif [ "$POL_LANG" == "ja" ]; then # Japanese
    lang_setup="irfanview_lang_japanese.exe"
    DLL="JAPANESE.DLL"
    Lang="Japanese"
elif [ "$POL_LANG" == "ko" ]; then # Korean
    lang_setup="irfanview_lang_korean.exe"
    DLL="KOREAN.DLL"
    Lang="Korean"
elif [ "$POL_LANG" == "lv" ]; then # Latvian
    lang_setup="irfanview_lang_latvian.exe"
    DLL="LATVIAN.DLL"
    Lang="Latviešu (Latvian)"
elif [ "$POL_LANG" == "lt" ]; then # Lithuanian
    lang_setup="irfanview_lang_lithuanian.exe"
    DLL="LITHUANIAN.DLL"
    Lang="Lithuanian"
elif [ "$POL_LANG" == "nl" ]; then # Nederlands
    lang_setup="irfanview_lang_nederlands.exe"
    DLL="NEDERLANDS.DLL"
    Lang="Nederlands"
elif [ "$POL_LANG" == "pl" ]; then # Polski
    lang_setup="irfanview_lang_polski.exe"
    DLL="POLSKI.DLL"
    Lang="Polski"
elif [ "$POL_LANG" == "pt" ]; then # Portuguese
    lang_setup="irfanview_lang_portuguese.exe"
    DLL="PORTUGUESE.DLL"
    Lang="Portuguese (Portugal)"
elif [ "$POL_LANG" == "ro" ]; then # Romanian
    lang_setup="irfanview_lang_romanian.exe"
    DLL="ROMANIAN.DLL"
    Lang="Romanian"
elif [ "$POL_LANG" == "ru" ]; then # Russian
    lang_setup="irfanview_lang_russian.exe"
    DLL="RUSSIAN.DLL"
    Lang="Russian"
elif [ "$POL_LANG" == "sk" ]; then # Slovak
    lang_setup="irfanview_lang_slovak.exe"
    DLL="SLOVAK.DLL"
    Lang="Slovensky/Slovak"
elif [ "$POL_LANG" == "sl" ]; then # Slovenian
    lang_setup="irfanview_lang_slovenscina.exe"
    DLL="SLOVENSCINA.DLL"
    Lang="Slovenian"
elif [ "$POL_LANG" == "es" ]; then # Spanish
    lang_setup="irfanview_lang_spanish.exe"
    DLL="SPANISH.DLL"
    Lang="Español"
elif [ "$POL_LANG" == "sv" ]; then # Swedish
    lang_setup="irfanview_lang_swedish.exe"
    DLL="SWEDISH.DLL"
    Lang="Svenska"
elif [ "$POL_LANG" == "tr" ]; then # Turkish
    lang_setup="irfanview_lang_turkish.exe"
    DLL="TURKISH.DLL"
    Lang="Türkçe"
elif [ "$POL_LANG" == "uk" ]; then # Ukrainian
    lang_setup="irfanview_lang_ukrainian.exe"
    DLL="UKRAINIAN.DLL"
    Lang="Ukrainian"
elif [ "$POL_LANG" == "uz" ]; then # Uzbek
    lang_setup="irfanview_lang_uzbek.exe"
    DLL="UZBEK.DLL"
    Lang="Uzbek"
else
    lang_install="false"
    DLL="ENGLISH"
    Lang="English"
    POL_Browser "https://www.irfanview.com/languages.htm"
fi

if [ "$lang_install" == "true" ]; then
    cd "$POL_System_TmpDir"
    POL_Download "https://www.irfanview.net/lang/$lang_setup"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$POL_System_TmpDir/$lang_setup"
fi

POL_Debug_Message "Selected language. Wine: $POL_LANG; lang_install: $lang_install; DLL: $DLL; Lang: $Lang; lang_setup: $lang_setup;"

cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/$i_ini"
[Language]
DLL=$DLL
Lang=$Lang
[Toolbar]
Skin=Grosberg_32.png
Size=32
EOF

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Saturday 19 September 2020 at 20:16
Script approved.

Edited by Yaotl

Yaotl Thursday 9 January 2020 at 5:10
Yaotl Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,8 +1,8 @@
 #!/usr/bin/env playonlinux-bash
 # Date : (2019-08-02 03-49)
-# Last revision : (2019-09-27 08-45)
-# Wine version used : 4.0.2
-# Distribution used to test : Linux Mint 19.2 Cinnamon
+# Last revision : (2020-01-09 06-34)
+# Wine version used : 4.0.3
+# Distribution used to test : Linux Mint 19.3 Cinnamon
 # Author : Yaotl
 # PlayOnLinux : 4.3.4
 # Script licence : GPL3
@@ -27,22 +27,23 @@
 # Download
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"
-POL_Download "http://download.betanews.com/download/967963863-1/iview453_setup.exe" "bca517c1ce593cf26037ef2f51faa853"
-POL_Download "http://download.betanews.com/download/1099412658-1/iview453_plugins_setup.exe" "fdf1175e658927a7e15129bf35964e7d"
+POL_Download "http://download.betanews.com/download/967963863-1/iview454_setup.exe" "56f61f2fedfad07c4690077e7765c7c2"
+POL_Download "http://download.betanews.com/download/1099412658-1/iview454_plugins_setup.exe" "592147a2fff29c3ac985498379b0b9a1"
 
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
-POL_System_SetArch "x86"
-POL_Wine_PrefixCreate "4.0.2"
+POL_Wine_PrefixCreate "4.0.3"
+
+POL_Call POL_Install_corefonts
 
 Set_OS "win10"
 
 # Installation
 cd "$POL_System_TmpDir"
 POL_Wine_WaitBefore "$TITLE"
-POL_Wine start /unix iview453_setup.exe /silent /folder='C:\Program Files\IrfanView'
+POL_Wine start /unix iview454_setup.exe /silent /folder='C:\Program Files\IrfanView'
 POL_Wine_WaitExit "$TITLE"
-POL_Wine start /unix iview453_plugins_setup.exe /silent /folder='C:\Program Files\IrfanView'
+POL_Wine start /unix iview454_plugins_setup.exe /silent /folder='C:\Program Files\IrfanView'
 POL_Wine_WaitExit "$TITLE"
 
 # Create Shortcut
@@ -68,8 +69,6 @@
 fi
 
 cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/i_view32.ini"
-; UNICODE FILE - edit with care ;-)
-
 [Language]
 DLL=$DLL
 Lang=$Lang

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-08-02 03-49)
# Last revision : (2020-01-09 06-34)
# Wine version used : 4.0.3
# Distribution used to test : Linux Mint 19.3 Cinnamon
# Author : Yaotl
# PlayOnLinux : 4.3.4
# Script licence : GPL3


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

TITLE="IrfanView"
PREFIX="IrfanView"

# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 3581
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.com/" "Yaotl" "$PREFIX"

POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

# Download
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://download.betanews.com/download/967963863-1/iview454_setup.exe" "56f61f2fedfad07c4690077e7765c7c2"
POL_Download "http://download.betanews.com/download/1099412658-1/iview454_plugins_setup.exe" "592147a2fff29c3ac985498379b0b9a1"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "4.0.3"

POL_Call POL_Install_corefonts

Set_OS "win10"

# Installation
cd "$POL_System_TmpDir"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix iview454_setup.exe /silent /folder='C:\Program Files\IrfanView'
POL_Wine_WaitExit "$TITLE"
POL_Wine start /unix iview454_plugins_setup.exe /silent /folder='C:\Program Files\IrfanView'
POL_Wine_WaitExit "$TITLE"

# Create Shortcut
POL_Shortcut "i_view32.exe" "$TITLE" "" "" "Graphics;"

# Automatic language selection
if [ "$POL_LANG" = "en" ]; then
    DLL="ENGLISH"
    Lang="English"
elif [ "$POL_LANG" = "de" ]; then
    DLL="DEUTSCH.DLL"
    Lang="Deutsch"
elif [ "$POL_LANG" = "fr" ]; then
    cd "$WINEPREFIX/drive_c/Program Files/IrfanView/Languages"
    POL_Download "https://www.irfanview.net/lang/irfanview_lang_french.zip"
    unzip irfanview_lang_french.zip; rm -r irfanview_lang_french.zip;
    DLL="FRENCH.DLL"
    Lang="Francais"
else
    DLL="ENGLISH"
    Lang="English"
    POL_Browser "https://www.irfanview.com/languages.htm"
fi

cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/i_view32.ini"
[Language]
DLL=$DLL
Lang=$Lang
[Toolbar]
Skin=Grosberg_24.png
Size=24
EOF

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Thursday 9 January 2020 at 9:59
script approved.

Edited by Yaotl

Yaotl Friday 27 September 2019 at 8:48
Yaotl Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,7 +1,7 @@
 #!/usr/bin/env playonlinux-bash
 # Date : (2019-08-02 03-49)
-# Last revision : (2019-08-06 15-04)
-# Wine version used : 4.0.1
+# Last revision : (2019-09-27 08-45)
+# Wine version used : 4.0.2
 # Distribution used to test : Linux Mint 19.2 Cinnamon
 # Author : Yaotl
 # PlayOnLinux : 4.3.4
@@ -33,7 +33,7 @@
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
-POL_Wine_PrefixCreate "4.0.1"
+POL_Wine_PrefixCreate "4.0.2"
 
 Set_OS "win10"
 
@@ -48,6 +48,36 @@
 # Create Shortcut
 POL_Shortcut "i_view32.exe" "$TITLE" "" "" "Graphics;"
 
+# Automatic language selection
+if [ "$POL_LANG" = "en" ]; then
+    DLL="ENGLISH"
+    Lang="English"
+elif [ "$POL_LANG" = "de" ]; then
+    DLL="DEUTSCH.DLL"
+    Lang="Deutsch"
+elif [ "$POL_LANG" = "fr" ]; then
+    cd "$WINEPREFIX/drive_c/Program Files/IrfanView/Languages"
+    POL_Download "https://www.irfanview.net/lang/irfanview_lang_french.zip"
+    unzip irfanview_lang_french.zip; rm -r irfanview_lang_french.zip;
+    DLL="FRENCH.DLL"
+    Lang="Francais"
+else
+    DLL="ENGLISH"
+    Lang="English"
+    POL_Browser "https://www.irfanview.com/languages.htm"
+fi
+
+cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/i_view32.ini"
+; UNICODE FILE - edit with care ;-)
+
+[Language]
+DLL=$DLL
+Lang=$Lang
+[Toolbar]
+Skin=Grosberg_24.png
+Size=24
+EOF
+
 # Cleanup
 POL_System_TmpDelete
 POL_SetupWindow_Close

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-08-02 03-49)
# Last revision : (2019-09-27 08-45)
# Wine version used : 4.0.2
# Distribution used to test : Linux Mint 19.2 Cinnamon
# Author : Yaotl
# PlayOnLinux : 4.3.4
# Script licence : GPL3


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

TITLE="IrfanView"
PREFIX="IrfanView"

# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 3581
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.com/" "Yaotl" "$PREFIX"

POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

# Download
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://download.betanews.com/download/967963863-1/iview453_setup.exe" "bca517c1ce593cf26037ef2f51faa853"
POL_Download "http://download.betanews.com/download/1099412658-1/iview453_plugins_setup.exe" "fdf1175e658927a7e15129bf35964e7d"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "4.0.2"

Set_OS "win10"

# Installation
cd "$POL_System_TmpDir"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix iview453_setup.exe /silent /folder='C:\Program Files\IrfanView'
POL_Wine_WaitExit "$TITLE"
POL_Wine start /unix iview453_plugins_setup.exe /silent /folder='C:\Program Files\IrfanView'
POL_Wine_WaitExit "$TITLE"

# Create Shortcut
POL_Shortcut "i_view32.exe" "$TITLE" "" "" "Graphics;"

# Automatic language selection
if [ "$POL_LANG" = "en" ]; then
    DLL="ENGLISH"
    Lang="English"
elif [ "$POL_LANG" = "de" ]; then
    DLL="DEUTSCH.DLL"
    Lang="Deutsch"
elif [ "$POL_LANG" = "fr" ]; then
    cd "$WINEPREFIX/drive_c/Program Files/IrfanView/Languages"
    POL_Download "https://www.irfanview.net/lang/irfanview_lang_french.zip"
    unzip irfanview_lang_french.zip; rm -r irfanview_lang_french.zip;
    DLL="FRENCH.DLL"
    Lang="Francais"
else
    DLL="ENGLISH"
    Lang="English"
    POL_Browser "https://www.irfanview.com/languages.htm"
fi

cat << EOF > "$WINEPREFIX/drive_c/Program Files/IrfanView/i_view32.ini"
; UNICODE FILE - edit with care ;-)

[Language]
DLL=$DLL
Lang=$Lang
[Toolbar]
Skin=Grosberg_24.png
Size=24
EOF

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Friday 27 September 2019 at 8:53
Approved

Edited by Yaotl

Yaotl Tuesday 6 August 2019 at 15:23
Yaotl Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,54 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2019-08-02 03-49)
+# Last revision : (2019-08-06 15-04)
+# Wine version used : 4.0.1
+# Distribution used to test : Linux Mint 19.2 Cinnamon
+# Author : Yaotl
+# PlayOnLinux : 4.3.4
+# Script licence : GPL3
+
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="IrfanView"
+PREFIX="IrfanView"
+
+# Initialization
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 3581
+POL_Debug_Init
+
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.com/" "Yaotl" "$PREFIX"
+
+POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."
+
+# Download
+POL_System_TmpCreate "$PREFIX"
+cd "$POL_System_TmpDir"
+POL_Download "http://download.betanews.com/download/967963863-1/iview453_setup.exe" "bca517c1ce593cf26037ef2f51faa853"
+POL_Download "http://download.betanews.com/download/1099412658-1/iview453_plugins_setup.exe" "fdf1175e658927a7e15129bf35964e7d"
+
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "4.0.1"
+
+Set_OS "win10"
+
+# Installation
+cd "$POL_System_TmpDir"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start /unix iview453_setup.exe /silent /folder='C:\Program Files\IrfanView'
+POL_Wine_WaitExit "$TITLE"
+POL_Wine start /unix iview453_plugins_setup.exe /silent /folder='C:\Program Files\IrfanView'
+POL_Wine_WaitExit "$TITLE"
+
+# Create Shortcut
+POL_Shortcut "i_view32.exe" "$TITLE" "" "" "Graphics;"
+
+# Cleanup
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-08-02 03-49)
# Last revision : (2019-08-06 15-04)
# Wine version used : 4.0.1
# Distribution used to test : Linux Mint 19.2 Cinnamon
# Author : Yaotl
# PlayOnLinux : 4.3.4
# Script licence : GPL3


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

TITLE="IrfanView"
PREFIX="IrfanView"

# Initialization
POL_SetupWindow_Init
POL_SetupWindow_SetID 3581
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "Irfan Škiljan" "https://www.irfanview.com/" "Yaotl" "$PREFIX"

POL_RequiredVersion 4.3.4 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

# Download
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://download.betanews.com/download/967963863-1/iview453_setup.exe" "bca517c1ce593cf26037ef2f51faa853"
POL_Download "http://download.betanews.com/download/1099412658-1/iview453_plugins_setup.exe" "fdf1175e658927a7e15129bf35964e7d"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "4.0.1"

Set_OS "win10"

# Installation
cd "$POL_System_TmpDir"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix iview453_setup.exe /silent /folder='C:\Program Files\IrfanView'
POL_Wine_WaitExit "$TITLE"
POL_Wine start /unix iview453_plugins_setup.exe /silent /folder='C:\Program Files\IrfanView'
POL_Wine_WaitExit "$TITLE"

# Create Shortcut
POL_Shortcut "i_view32.exe" "$TITLE" "" "" "Graphics;"

# Cleanup
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Tuesday 6 August 2019 at 19:47
Approved.

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