OBDwiz OBDII vehicle diagnostic program

Informations

Creator Message
kukulo Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 6171
Wine: 1.6.2

Feedbacks

Description

The OBDwiz is OBDII vehicle diagnostic program from scantool.net.

After the installation please create a com port in your virtual drive according the guide here: https://www.scantool.net/forum/index.php?topic=12001.0

Source code

#!/usr/bin/env playonlinux-bash

[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
WINE_VERSION="1.6.2"
TITLE="OBDwiz OBDII vehicle diagnostic program"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "OBDwiz installation" "Kukulo" "OBDwiz"

POL_Wine_SelectPrefix "OBDwiz2"
POL_Wine_PrefixCreate "$WINE_VERSION"
POL_System_TmpCreate "OBDwiz2"
POL_Call POL_Install_dotnet35
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
        cd "$POL_System_TmpDir"
        POL_Download "https://www.obdsoftware.net/downloads/obdwiz/current" 
        POL_Wine_WaitBefore "$TITLE"
        mv "$POL_System_TmpDir/current" "$POL_System_TmpDir/OBDwizSetup.exe"
        POL_Wine "$POL_System_TmpDir/OBDwizSetup.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
        SETUP_PATH="$APP_ANSWER"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "$SETUP_PATH"
fi

POL_Wine_WaitExit "$TITLE"

POL_Shortcut "OBDwiz.exe" "OBDwiz"
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
petch Wednesday 28 October 2015 at 22:02
petch
Developer

Information

This update has been approved by the team.

Message

Fix typo

Differences

@@ -18,7 +18,7 @@
         cd "$POL_System_TmpDir"
         POL_Download "https://www.obdsoftware.net/downloads/obdwiz/current" 
         POL_Wine_WaitBefore "$TITLE"
-        mv "$POL_System_TmpDir/current" "$POL_System_Tmpdir/OBDwizSetup.exe"
+        mv "$POL_System_TmpDir/current" "$POL_System_TmpDir/OBDwizSetup.exe"
         POL_Wine "$POL_System_TmpDir/OBDwizSetup.exe"
 elif [ "$INSTALL_METHOD" = "LOCAL" ]
 then

New source code

#!/usr/bin/env playonlinux-bash

[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
WINE_VERSION="1.6.2"
TITLE="OBDwiz OBDII vehicle diagnostic program"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "OBDwiz installation" "Kukulo" "OBDwiz"

POL_Wine_SelectPrefix "OBDwiz2"
POL_Wine_PrefixCreate "$WINE_VERSION"
POL_System_TmpCreate "OBDwiz2"
POL_Call POL_Install_dotnet35
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
        cd "$POL_System_TmpDir"
        POL_Download "https://www.obdsoftware.net/downloads/obdwiz/current" 
        POL_Wine_WaitBefore "$TITLE"
        mv "$POL_System_TmpDir/current" "$POL_System_TmpDir/OBDwizSetup.exe"
        POL_Wine "$POL_System_TmpDir/OBDwizSetup.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
        SETUP_PATH="$APP_ANSWER"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "$SETUP_PATH"
fi

POL_Wine_WaitExit "$TITLE"

POL_Shortcut "OBDwiz.exe" "OBDwiz"
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

kukulo Wednesday 28 October 2015 at 22:00
kukulo Anonymous

Warning

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

Message

The move command does not work well. The installer crashes. The downloaded file was ok, but the mv command did not succeed.

Differences

@@ -18,8 +18,7 @@
         cd "$POL_System_TmpDir"
         POL_Download "https://www.obdsoftware.net/downloads/obdwiz/current" 
         POL_Wine_WaitBefore "$TITLE"
-        mv "$POL_System_TmpDir/current" "$POL_System_Tmpdir/OBDwizSetup.exe"
-        POL_Wine "$POL_System_TmpDir/OBDwizSetup.exe"
+        POL_Wine "$POL_System_TmpDir/current"
 elif [ "$INSTALL_METHOD" = "LOCAL" ]
 then
         POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"

New source code

#!/usr/bin/env playonlinux-bash

[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
WINE_VERSION="1.6.2"
TITLE="OBDwiz OBDII vehicle diagnostic program"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "OBDwiz installation" "Kukulo" "OBDwiz"

POL_Wine_SelectPrefix "OBDwiz2"
POL_Wine_PrefixCreate "$WINE_VERSION"
POL_System_TmpCreate "OBDwiz2"
POL_Call POL_Install_dotnet35
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
        cd "$POL_System_TmpDir"
        POL_Download "https://www.obdsoftware.net/downloads/obdwiz/current" 
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "$POL_System_TmpDir/current"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
        SETUP_PATH="$APP_ANSWER"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "$SETUP_PATH"
fi

POL_Wine_WaitExit "$TITLE"

POL_Shortcut "OBDwiz.exe" "OBDwiz"
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Anonymous
Wednesday 28 October 2015 at 22:01
petch, the move command did not work for some reason, here is the code which works.
petch Wednesday 28 October 2015 at 20:28
petch
Developer

Warning

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

Message

$TITLE must match script name in the repository

POL_Call POL_Install_dotnet35 already checks and warns about ptrace_scope

Give correct name to downloaded installer

Differences

@@ -1,15 +1,13 @@
-#!/usr/bin/env bash
- 
+#!/usr/bin/env playonlinux-bash
+
 [ "$PLAYONLINUX" = "" ] && exit
 source "$PLAYONLINUX/lib/sources"
 WINE_VERSION="1.6.2"
-TITLE="OBDwiz installation"
+TITLE="OBDwiz OBDII vehicle diagnostic program"
 POL_SetupWindow_Init
 POL_Debug_Init
 POL_SetupWindow_presentation "OBDwiz installation" "Kukulo" "OBDwiz"
-POL_SetupWindow_textbox_multiline "The .net installation will need to execute this in terminal:" "OBDwiz" "echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope       
 
-Reference: https://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
 POL_Wine_SelectPrefix "OBDwiz2"
 POL_Wine_PrefixCreate "$WINE_VERSION"
 POL_System_TmpCreate "OBDwiz2"
@@ -20,16 +18,18 @@
         cd "$POL_System_TmpDir"
         POL_Download "https://www.obdsoftware.net/downloads/obdwiz/current" 
         POL_Wine_WaitBefore "$TITLE"
-        POL_Wine "$POL_System_TmpDir/current"
+        mv "$POL_System_TmpDir/current" "$POL_System_Tmpdir/OBDwizSetup.exe"
+        POL_Wine "$POL_System_TmpDir/OBDwizSetup.exe"
 elif [ "$INSTALL_METHOD" = "LOCAL" ]
 then
-          POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
         SETUP_PATH="$APP_ANSWER"
-         POL_Wine_WaitBefore "$TITLE"
+        POL_Wine_WaitBefore "$TITLE"
         POL_Wine "$SETUP_PATH"
 fi
- 
+
 POL_Wine_WaitExit "$TITLE"
+
 POL_Shortcut "OBDwiz.exe" "OBDwiz"
 POL_System_TmpDelete
 POL_SetupWindow_Close

New source code

#!/usr/bin/env playonlinux-bash

[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
WINE_VERSION="1.6.2"
TITLE="OBDwiz OBDII vehicle diagnostic program"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "OBDwiz installation" "Kukulo" "OBDwiz"

POL_Wine_SelectPrefix "OBDwiz2"
POL_Wine_PrefixCreate "$WINE_VERSION"
POL_System_TmpCreate "OBDwiz2"
POL_Call POL_Install_dotnet35
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
        cd "$POL_System_TmpDir"
        POL_Download "https://www.obdsoftware.net/downloads/obdwiz/current" 
        POL_Wine_WaitBefore "$TITLE"
        mv "$POL_System_TmpDir/current" "$POL_System_Tmpdir/OBDwizSetup.exe"
        POL_Wine "$POL_System_TmpDir/OBDwizSetup.exe"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
        SETUP_PATH="$APP_ANSWER"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "$SETUP_PATH"
fi

POL_Wine_WaitExit "$TITLE"

POL_Shortcut "OBDwiz.exe" "OBDwiz"
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

kukulo Wednesday 28 October 2015 at 20:13
kukulo Anonymous

Warning

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

Differences

@@ -0,0 +1,36 @@
+#!/usr/bin/env bash
+ 
+[ "$PLAYONLINUX" = "" ] && exit
+source "$PLAYONLINUX/lib/sources"
+WINE_VERSION="1.6.2"
+TITLE="OBDwiz installation"
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_SetupWindow_presentation "OBDwiz installation" "Kukulo" "OBDwiz"
+POL_SetupWindow_textbox_multiline "The .net installation will need to execute this in terminal:" "OBDwiz" "echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope       
+
+Reference: https://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
+POL_Wine_SelectPrefix "OBDwiz2"
+POL_Wine_PrefixCreate "$WINE_VERSION"
+POL_System_TmpCreate "OBDwiz2"
+POL_Call POL_Install_dotnet35
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+        cd "$POL_System_TmpDir"
+        POL_Download "https://www.obdsoftware.net/downloads/obdwiz/current" 
+        POL_Wine_WaitBefore "$TITLE"
+        POL_Wine "$POL_System_TmpDir/current"
+elif [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+          POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
+        SETUP_PATH="$APP_ANSWER"
+         POL_Wine_WaitBefore "$TITLE"
+        POL_Wine "$SETUP_PATH"
+fi
+ 
+POL_Wine_WaitExit "$TITLE"
+POL_Shortcut "OBDwiz.exe" "OBDwiz"
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env bash
 
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
WINE_VERSION="1.6.2"
TITLE="OBDwiz installation"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "OBDwiz installation" "Kukulo" "OBDwiz"
POL_SetupWindow_textbox_multiline "The .net installation will need to execute this in terminal:" "OBDwiz" "echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope       

Reference: https://www.playonlinux.com/en/topic-10534-Regarding_ptrace_scope_fatal_error.html"
POL_Wine_SelectPrefix "OBDwiz2"
POL_Wine_PrefixCreate "$WINE_VERSION"
POL_System_TmpCreate "OBDwiz2"
POL_Call POL_Install_dotnet35
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
        cd "$POL_System_TmpDir"
        POL_Download "https://www.obdsoftware.net/downloads/obdwiz/current" 
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "$POL_System_TmpDir/current"
elif [ "$INSTALL_METHOD" = "LOCAL" ]
then
          POL_SetupWindow_browse "$(eval_gettext 'Please select the install file.')" "$TITLE"
        SETUP_PATH="$APP_ANSWER"
         POL_Wine_WaitBefore "$TITLE"
        POL_Wine "$SETUP_PATH"
fi
 
POL_Wine_WaitExit "$TITLE"
POL_Shortcut "OBDwiz.exe" "OBDwiz"
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Anonymous
Wednesday 28 October 2015 at 20:14
Here is the source code of the script.