Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- [ "$PLAYONLINUX" = "" ] && exit 0
- source "$PLAYONLINUX/lib/sources"
- #i just change this number now...
- VERSION="17.0"
- #language variables
- WAITSILVERLIGHT="Wait for silverlight installation to finish before presing next button..."
- WAITFIREFOX="Wait for firefox installation to finish before presing next button..."
- PLEASESELECTFILE="Please select the installation file to run."
- MOZILAINSTALATION="Mozilla Firefox installation"
- SILVERLIGHTINSTALATION="Silverlight installation"
- TITLE="Netflix for Mozilla"
- MOZILAINPROGRESS="Mozilla Firefox installation in progress."
- SILVERLIGHTINPROGRESS="Silverlight installation in progress."
- DONE="Instalation is done!"
- POL_SetupWindow_Init
- POL_SetupWindow_presentation "$TITLE" "Mozilla & Microsoft " "http://how-to.wikia.com/wiki/How_to_watch_Netflix_%28Watch_Instantly%29_in_Linux" "none" "$TITLE"
- POL_Wine_SelectPrefix "MozillaFirefox"
- POL_Wine_PrefixCreate "1.5.18"
- POL_System_TmpCreate "MozillaFirefox"
- POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
- if [ "$INSTALL_METHOD" = "LOCAL" ]
- then
- POL_SetupWindow_browse "$PLEASESELECTFILE" "$MOZILAINSTALATION"
- POL_SetupWindow_wait "$MOZILAINPROGRESS" "$MOZILAINSTALATION"
- POL_Wine start /unix "$APP_ANSWER"
- elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
- then
- cd "$POL_System_TmpDir"
- #i don't want to use "latest" version because that way i have to update my script every freaking time new version comes out :P
- POL_Download "http://mirror3.mirrors.tds.net/pub/mozilla.org/firefox/releases/$VERSION/win32/en-US/Firefox Setup $VERSION.exe"
- POL_SetupWindow_wait "$MOZILAINPROGRESS" "$MOZILAINSTALATION"
- POL_Wine start /unix "$POL_System_TmpDir/Firefox Setup $VERSION.exe"
- fi
- POL_SetupWindow_message "$WAITFIREFOX"
- cd "$POL_System_TmpDir"
- POL_Download "http://silverlight.dlservice.microsoft.com/download/6/A/1/6A13C54D-3F35-4082-977A-27F30ECE0F34/10329.00/runtime/Silverlight.exe"
- POL_SetupWindow_wait "$SILVERLIGHTINPROGRESS" "$SILVERLIGHTINSTALATION"
- POL_Wine start /unix "$POL_System_TmpDir/Silverlight.exe"
- POL_SetupWindow_message "$WAITSILVERLIGHT"
- POL_System_TmpDelete
- POL_Shortcut "firefox.exe" "Mozilla Firefox"
- POL_SetupWindow_message "$DONE"
- POL_SetupWindow_Close
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement