IrfanView

Informations

Creator Message
Yaotl Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 8620
Wine: 5.0.2

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 : (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

Contributions

Filters:

Contribute
Member Message
Yaotl Thursday 17 September 2020 at 4:33
Yaotl Anonymous

Information

This update has been approved by the team.

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.