| 1 | #!/bin/sh |
|---|
| 2 | # Filename: PBI.SetupScript.sh |
|---|
| 3 | # Place any custom installation code here. |
|---|
| 4 | # This script will be run after your program is extracted into |
|---|
| 5 | # /Programs/<ProgNameVer>/ |
|---|
| 6 | # Available variables: |
|---|
| 7 | # $PROGDIR - Directory where the files will be extracted to. |
|---|
| 8 | # $USERNAME - Username of who started the installation. |
|---|
| 9 | # $INSTALLMODE - Set to 'TEXT' or 'GUI', depending on which installer is running. |
|---|
| 10 | # |
|---|
| 11 | # TIP: 'kdialog' should be used for user interaction. |
|---|
| 12 | # To interact with the progress dialog echo these flags: |
|---|
| 13 | # echo 'TOTALSTEPS: <num>' # Set the total steps of the progress bar |
|---|
| 14 | # echo 'SETSTEPS: <num>' # Set the current progress of the progress bar |
|---|
| 15 | # echo 'MSG: <text>' # Display this text above progress bar |
|---|
| 16 | ######################################### |
|---|
| 17 | ln -s /Programs/${PROGDIR}/.sbin/iexplorer55 /usr/local/bin/iexplorer55 |
|---|
| 18 | cd /Programs/${PROGDIR}/msttf/ |
|---|
| 19 | #CABEXTRACT MSFONTS |
|---|
| 20 | /Programs/${PROGDIR}/bin/cabextract arial32.exe |
|---|
| 21 | #ARIAL.EXE |
|---|
| 22 | mv /Programs/${PROGDIR}/msttf/Arial.TTF Arialn.ttf |
|---|
| 23 | mv /Programs/${PROGDIR}/msttf/Ariali.TTF Arialni.ttf |
|---|
| 24 | mv /Programs/${PROGDIR}/msttf/Arialbd.TTF Arialnbd.ttf |
|---|
| 25 | mv /Programs/${PROGDIR}/msttf/Arialbi.TTF Arialnbi.ttf |
|---|
| 26 | /Programs/${PROGDIR}/bin/cabextract courie32.exe |
|---|
| 27 | #COURIER.EXE |
|---|
| 28 | mv /Programs/${PROGDIR}/msttf/cour.ttf cour.ttf |
|---|
| 29 | mv /Programs/${PROGDIR}/msttf/courbd.ttf courbd.ttf |
|---|
| 30 | mv /Programs/${PROGDIR}/msttf/courbi.ttf courbi.ttf |
|---|
| 31 | mv /Programs/${PROGDIR}/msttf/couri.ttf couri.ttf |
|---|
| 32 | /Programs/${PROGDIR}/bin/cabextract comic32.exe |
|---|
| 33 | #COMIC.EXE |
|---|
| 34 | mv /Programs/${PROGDIR}/msttf/Comic.TTF comic.ttf |
|---|
| 35 | mv /Programs/${PROGDIR}/msttf/Comicbd.TTF comicbd.ttf |
|---|
| 36 | /Programs/${PROGDIR}/bin/cabextract georgi32.exe |
|---|
| 37 | #GEORGIA.EXE |
|---|
| 38 | mv /Programs/${PROGDIR}/msttf/Georgia.TTF georgia.ttf |
|---|
| 39 | mv /Programs/${PROGDIR}/msttf/Georgiaz.TTF georgiaz.ttf |
|---|
| 40 | mv /Programs/${PROGDIR}/msttf/Georgiab.TTF georgiab.ttf |
|---|
| 41 | mv /Programs/${PROGDIR}/msttf/Georgiai.TTF georgiai.ttf |
|---|
| 42 | /Programs/${PROGDIR}/bin/cabextract times32.exe |
|---|
| 43 | #TIMES NEW ROMAN.EXE |
|---|
| 44 | mv /Programs/${PROGDIR}/msttf/Times.TTF times.ttf |
|---|
| 45 | mv /Programs/${PROGDIR}/msttf/Timesbd.TTF timesbd.ttf |
|---|
| 46 | mv /Programs/${PROGDIR}/msttf/Timesbi.TTF timesbi.ttf |
|---|
| 47 | mv /Programs/${PROGDIR}/msttf/Timesi.TTF timesi.ttf |
|---|
| 48 | /Programs/${PROGDIR}/bin/cabextract trebuc32.exe |
|---|
| 49 | #TREBUCHET.EXE |
|---|
| 50 | mv /Programs/${PROGDIR}/msttf/trebuc.ttf trebuc.ttf |
|---|
| 51 | mv /Programs/${PROGDIR}/msttf/trebucit.ttf trebucit.ttf |
|---|
| 52 | mv /Programs/${PROGDIR}/msttf/trebucbi.ttf trebucbi.ttf |
|---|
| 53 | mv /Programs/${PROGDIR}/msttf/Trebucbd.ttf trebucbd.ttf |
|---|
| 54 | /Programs/${PROGDIR}/bin/cabextract verdan32.exe |
|---|
| 55 | #VERDANA.EXE |
|---|
| 56 | mv /Programs/${PROGDIR}/msttf/Verdana.TTF verdana.ttf |
|---|
| 57 | mv /Programs/${PROGDIR}/msttf/Verdanab.TTF verdanab.ttf |
|---|
| 58 | mv /Programs/${PROGDIR}/msttf/Verdanai.TTF verdanai.ttf |
|---|
| 59 | mv /Programs/${PROGDIR}/msttf/Verdanaz.TTF verdanaz.ttf |
|---|
| 60 | /Programs/${PROGDIR}/bin/cabextract wd97vwr32.exe |
|---|
| 61 | /Programs/${PROGDIR}/bin/cabextract webdin32.exe |
|---|
| 62 | #WEBDINGS.EXE |
|---|
| 63 | mv /Programs/${PROGDIR}/msttf/Webdings.TTF webdings.ttf |
|---|
| 64 | #COPY ALL TO WINDOWS/FONT |
|---|
| 65 | mv /Programs/${PROGDIR}/msttf/*.TTF /Programs/${PROGDIR}/ie55/drive_c/windows/fonts/ |
|---|
| 66 | mv /Programs/${PROGDIR}/msttf/*.ttf /Programs/${PROGDIR}/ie55/drive_c/windows/fonts/ |
|---|
| 67 | rm -fR /Programs/${PROGDIR}/msttf |
|---|
| 68 | rm -fR /Programs/${PROGDIR}/bin/cabextract |
|---|
| 69 | chmod -R 777 /Programs/${PROGDIR}/ie55 |
|---|
| 70 | chmod +x /Programs/${PROGDIR}/bin/iexplorer55 |
|---|
| 71 | USER=`who | grep :0 | cut -f 1 -d " "` |
|---|
| 72 | chown ${USER} /Programs/${PROGDIR}/ie55 |
|---|
| 73 | echo "LAUNCHCLOSE: /usr/local/bin/iexplorer55" |
|---|