POL_Install_icodecs

Informations

Creator Message
danber Anonymous

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

Installs intel/indeo video codecs. Reimplemented from winetricks.

Work in progress

Source code

                

Contributions

Filters:

Contribute
Member Message
danber Friday 24 May 2019 at 17:44
danber Anonymous

Warning

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

Differences

@@ -0,0 +1,91 @@
+#!/bin/bash
+# PlayOnLinux Function
+ 
+# Date : (2019-05-24 17:23)
+# Last revision : (2019-05-24 17:23)
+# Author : bergmn
+
+# Working but needs some comments and user messages
+
+mkdir "$POL_USER_ROOT/ressources/icodecs"
+cd "$WINEPREFIX/drive_c/windows/temp/"
+
+POL_Download_Resource "http://www.cucusoft.com/codecdownload/codinstl.exe" "5246de4769298d1625cced70af6c7ac7" "icodecs"
+cabextract -d "codinstl" "$POL_USER_ROOT/ressources/icodecs/codinstl.exe"
+POL_Wine codinstl/setup.exe /s
+
+# Workaround for bug in codec's installer?
+POL_Wine regsvr32 /s ir50_32.dll
+
+
+POL_Download_Resource "https://s3.amazonaws.com/moviecodec/files/iv5setup.exe" "359afe192360a11e6bd94611a473687c"  "icodecs"
+cabextract -d "iv5setup" "$POL_USER_ROOT/ressources/icodecs/iv5setup.exe"
+
+cat > "iv5setup/setup.iss" <<_EOF_
+[InstallShield Silent]
+Version=v5.00.000
+File=Response File
+[File Transfer]
+OverwriteReadOnly=NoToAll
+[DlgOrder]
+Dlg0=SdWelcome-0
+Count=8
+Dlg1=SdLicense-0
+Dlg2=SdAskDestPath-0
+Dlg3=SdSetupTypeEx-0
+Dlg4=SdComponentDialog2-0
+Dlg5=AskYesNo-0
+Dlg6=SdStartCopy-0
+Dlg7=SdFinish-0
+[SdWelcome-0]
+Result=1
+[SdLicense-0]
+Result=1
+[SdAskDestPath-0]
+szDir=C:\Program Files\Ligos\Indeo
+Result=1
+[SdSetupTypeEx-0]
+Result=Custom
+[SdComponentDialog2-0]
+Indeo Audio Codec-type=string
+Indeo Audio Codec-count=1
+Indeo Audio Codec-0=Indeo Audio Codec\Indeo Audio Encoder
+Component-type=string
+Component-count=12
+Component-0=Indeo Video 5 Quick Compressors
+Component-1=Indeo® Video 5 Codec
+Component-2=Indeo Video 4 Codec
+Component-3=Indeo Video 3.2 Codec
+Component-4=Indeo Audio Codec
+Component-5=Indeo Video Raw (YVU9) Codec
+Component-6=Indeo Video 4 Quick Compressors
+Component-7=Indeo Video 5 Compressor Help Files
+Component-8=Indeo Video 4 Compressor Help Files
+Component-9=Indeo Software Release Notes
+Component-10=Indeo Software Installation Source Code
+Component-11=Indeo Software Uninstallation
+Result=1
+[AskYesNo-0]
+Result=0
+[SdStartCopy-0]
+Result=1
+[Application]
+Name=Indeo® Software
+Version=1.00.000
+Company=Ligos
+Lang=0009
+[SdFinish-0]
+Result=1
+bOpt1=0
+bOpt2=0
+_EOF_
+
+POL_Wine iv5setup/setup.exe /s
+
+# Note, this leaves a dangling explorer window.
+# Wait for it to appear and kill it
+while ! inode_pid=$(pgrep -f "explorer.exe.*Indeo")
+do
+    sleep 1
+done
+kill -HUP "$inode_pid"

New source code

#!/bin/bash
# PlayOnLinux Function
 
# Date : (2019-05-24 17:23)
# Last revision : (2019-05-24 17:23)
# Author : bergmn

# Working but needs some comments and user messages

mkdir "$POL_USER_ROOT/ressources/icodecs"
cd "$WINEPREFIX/drive_c/windows/temp/"

POL_Download_Resource "http://www.cucusoft.com/codecdownload/codinstl.exe" "5246de4769298d1625cced70af6c7ac7" "icodecs"
cabextract -d "codinstl" "$POL_USER_ROOT/ressources/icodecs/codinstl.exe"
POL_Wine codinstl/setup.exe /s

# Workaround for bug in codec's installer?
POL_Wine regsvr32 /s ir50_32.dll


POL_Download_Resource "https://s3.amazonaws.com/moviecodec/files/iv5setup.exe" "359afe192360a11e6bd94611a473687c"  "icodecs"
cabextract -d "iv5setup" "$POL_USER_ROOT/ressources/icodecs/iv5setup.exe"

cat > "iv5setup/setup.iss" <<_EOF_
[InstallShield Silent]
Version=v5.00.000
File=Response File
[File Transfer]
OverwriteReadOnly=NoToAll
[DlgOrder]
Dlg0=SdWelcome-0
Count=8
Dlg1=SdLicense-0
Dlg2=SdAskDestPath-0
Dlg3=SdSetupTypeEx-0
Dlg4=SdComponentDialog2-0
Dlg5=AskYesNo-0
Dlg6=SdStartCopy-0
Dlg7=SdFinish-0
[SdWelcome-0]
Result=1
[SdLicense-0]
Result=1
[SdAskDestPath-0]
szDir=C:\Program Files\Ligos\Indeo
Result=1
[SdSetupTypeEx-0]
Result=Custom
[SdComponentDialog2-0]
Indeo Audio Codec-type=string
Indeo Audio Codec-count=1
Indeo Audio Codec-0=Indeo Audio Codec\Indeo Audio Encoder
Component-type=string
Component-count=12
Component-0=Indeo Video 5 Quick Compressors
Component-1=Indeo® Video 5 Codec
Component-2=Indeo Video 4 Codec
Component-3=Indeo Video 3.2 Codec
Component-4=Indeo Audio Codec
Component-5=Indeo Video Raw (YVU9) Codec
Component-6=Indeo Video 4 Quick Compressors
Component-7=Indeo Video 5 Compressor Help Files
Component-8=Indeo Video 4 Compressor Help Files
Component-9=Indeo Software Release Notes
Component-10=Indeo Software Installation Source Code
Component-11=Indeo Software Uninstallation
Result=1
[AskYesNo-0]
Result=0
[SdStartCopy-0]
Result=1
[Application]
Name=Indeo® Software
Version=1.00.000
Company=Ligos
Lang=0009
[SdFinish-0]
Result=1
bOpt1=0
bOpt2=0
_EOF_

POL_Wine iv5setup/setup.exe /s

# Note, this leaves a dangling explorer window.
# Wait for it to appear and kill it
while ! inode_pid=$(pgrep -f "explorer.exe.*Indeo")
do
    sleep 1
done
kill -HUP "$inode_pid"

Replies

Monday 16 September 2019 at 18:23
Hello, if you finish the script, i'll be happy to approve it.