Jesteś tutaj

IrfanView

Informations

Creator Wiadmości
Yaotl Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 1409
Wine: 4.0.2

Feedbacks

Description

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

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

Contributions

Filters:

Contribute
Member Wiadmości
Yaotl Friday 27 September 2019 at 8:48
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 : (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

Odpowiedzi

Friday 27 September 2019 at 8:53
Approved

Edytowane przez 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

Odpowiedzi

Tuesday 6 August 2019 at 19:47
Approved.