From d0e7f91e2b499fd210fa4ca17e4a1c0fdfcd5a95 Mon Sep 17 00:00:00 2001 From: pedro ubuntu Date: Sun, 8 Dec 2019 03:54:21 +0000 Subject: [PATCH] Update backdoorppt.sh --- backdoorppt.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/backdoorppt.sh b/backdoorppt.sh index 194c00b..e3c2322 100755 --- a/backdoorppt.sh +++ b/backdoorppt.sh @@ -52,14 +52,17 @@ ByPa=`cat $IPATH/settings | egrep -m 1 "RESOURCEHACKER_BYPASS" | cut -d '=' -f2` # # configuring correct arch # -if [ "$ArCh" = "i686" ]; then +if [ "$ArCh" = "i386" ] || [ "$ArCh" = "i686" ]; then dEd="x86" arch="wine" PgFi="Program Files" +elif [ "$ArCh" = "x86_64" ] || [ "ArCh" = "amd64" ]; then + dEd="x64" + arch="wine64" + PgFi="Program Files (x86)" # default value else dEd="x64" arch="wine64" - # bug? PgFi="Program Files (x86)" PgFi="Program Files" fi # @@ -241,7 +244,7 @@ fi cat << ! Installing ResourceHacker under .wine directorys... - Version:windows7 Arch:$dEd Path:drive_c/$PgFi + Version:windows7 Arch:$ArCh Path:drive_c/$PgFi $HoME/.wine/drive_c/$PgFi/Resource Hacker/ResourceHacker.exe !